Skip to content

Instantly share code, notes, and snippets.

View lbesnard's full-sized avatar

lbesnard (Loz) lbesnard

View GitHub Profile
@lbesnard
lbesnard / srs_mfdataset_issue_showcase.ipynb
Last active June 19, 2024 01:59
Gist showcasing issue with mfdataset with a bad SRS GHRSST file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lbesnard
lbesnard / issue.py
Created June 18, 2024 07:45
mfdataset issue
import s3fs
import xarray as xr
s3 = s3fs.S3FileSystem(anon=True)
# This generates a list of strings with filenames
s3path = 's3://imos-data/IMOS/SRS/SST/ghrsst/L3S-1d/dn/2023/*'
remote_files = s3.glob(s3path)
# create a fileset
@lbesnard
lbesnard / imos_geoserver_access.ipynb
Created May 5, 2021 07:11
DataTas - Access IMOS data via Geoserver
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lbesnard
lbesnard / imos_acorn_torq_dm.ipynb
Last active May 12, 2021 03:28
DataTas - Access IMOS AODN data via THREDDS on Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lbesnard
lbesnard / IMOS_Ocean_Colour_Chl_OC3_access_via_S3.ipynb
Created May 5, 2021 04:21
DataTas - Access IMOS AODN data via S3 on Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lbesnard
lbesnard / imos_sar.ipynb
Last active February 6, 2020 03:31
IMOS - Surface Waves - SAR - Windrose example around Tasmania (Winter 2019)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lbesnard
lbesnard / ocean_color_aqua_download.py
Created September 25, 2019 01:05
Ocean Colour - download data from oceandata.sci.gsfc.nasa.gov
from bs4 import BeautifulSoup
import urllib
import re
from retry import retry
import os
from netCDF4 import Dataset
YEARS_TO_DOWNLOAD = list(range(1999, 2019))
VARS_TO_DOWNLOAD = ['par']
@lbesnard
lbesnard / Argo_float_filtering(WFS).ipynb
Created July 1, 2019 04:27
Argo Float (WFS access)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lbesnard
lbesnard / RLS_STAARS_example.ipynb
Last active June 28, 2019 07:13
Reef Life Survey (via WFS) and STAARS climatology (S3 via Xarray) comparaison
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lbesnard
lbesnard / soop_trv_xarray_zarr.ipynb
Last active May 15, 2019 04:25
SOOP TRV (dask, s3fs, xarray, zarr)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.