Skip to content

Instantly share code, notes, and snippets.

View mrayson's full-sized avatar

Matt Rayson mrayson

View GitHub Profile
@mrayson
mrayson / unsteady_wind_model.ipynb
Created August 2, 2022 05:06
Solve the Pollard-Millard (1970) slab layer ocean model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrayson
mrayson / test_toeplitz.ipynb
Created August 1, 2022 13:05
gptide toeplitz example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrayson
mrayson / extract_imos_aodn_adcp_example.ipynb
Created June 8, 2022 23:42
Download and analyse ADCP current meter data from the Australian Ocean Data Network (AODN) s3 bucket
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrayson
mrayson / animate_BRAN2020.ipynb
Created November 19, 2021 07:19
Download the Bluelink Reanalysis 2020 surface currents and animate
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrayson
mrayson / convert_himawari_nc_to_zarr.py
Created October 29, 2020 01:58
# Snippet of python code for converting a bunch of netcdf files to zarr
# Example
sorted(glob.glob('/home/mrayson/scratch/HIMAWARI/raw/*.nc'))%%time
# Convert the dataset to zarr (to this once only)
compressor = zarr.Blosc(cname='zstd', clevel=3, shuffle=2)
outpath = '/home/mrayson/scratch/HIMAWARI/raw_zarr'
mode='w'
append_dim=None
encoding = {'sea_surface_temperature': {'compressor': compressor}}
# mode = 'a'
# append_dim='time'
@mrayson
mrayson / plot_himawari_nci.ipynb
Created September 9, 2020 09:44
Load Himawari-8 infrared imagery from NCI
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrayson
mrayson / aodn_s3_imos_glider_eg.ipynb
Created May 7, 2020 06:42
Interaction with IMOS glider data on the AODN s3 bucket
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrayson
mrayson / aodn_s3_imos_mooring_eg.ipynb
Last active November 23, 2021 07:40
Interaction with IMOS mooring data on the AODN s3 bucket
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.