Skip to content

Instantly share code, notes, and snippets.

@DPeterK
DPeterK / tiledb_netcdf_end2end.py
Created December 1, 2020 13:35
Demonstrate a simple end-to-end usage example of tiledb-netcdf.
import os
import iris
import tiledb
import tiledb_netcdf
netcdf_path = "/path/to/my/nc-files"
base_nc_name = 'file1.nc'
append_nc_names = ['file2.nc', 'file3.nc', 'file4.nc']
append_files = [os.path.join(netcdf_path, name) for name in append_nc_names]
@DPeterK
DPeterK / cube_regrid_with_iris.ipynb
Last active June 8, 2020 13:43
A jupyter notebook demonstrating using Iris to regrid a dataset when you need to construct the cube that describes the target grid.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DPeterK
DPeterK / iris_cubelist_repr.ipynb
Created May 15, 2019 15:47
Demoing html repr of Iris CubeLists
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DPeterK
DPeterK / a1b_coverage.json
Created May 15, 2018 13:42
Iris sample data exposed as Coverage JSON
This file has been truncated, but you can view the full file.
{
"type": "Coverage",
"domain": {
"domainType": "Grid",
"axes": {
"x": {
"values": [225.0,226.875,228.75,230.625,232.5,234.375,236.25,238.125,240.0,241.875,243.75,245.625,247.5,249.375,251.25,253.125,255.0,256.875,258.75,260.625,262.5,264.375,266.25,268.125,270.0,271.875,273.75,275.625,277.5,279.375,281.25,283.125,285.0,286.875,288.75,290.625,292.5,294.375,296.25,298.125,300.0,301.875,303.75,305.625,307.5,309.375,311.25,313.125,315.0]
},
"y": {
"values": [15.0,16.25,17.5,18.75,20.0,21.25,22.5,23.75,25.0,26.25,27.5,28.75,30.0,31.25,32.5,33.75,35.0,36.25,37.5,38.75,40.0,41.25,42.5,43.75,45.0,46.25,47.5,48.75,50.0,51.25,52.5,53.75,55.0,56.25,57.5,58.75,60.0]
@DPeterK
DPeterK / egu2018_example_code.ipynb
Created March 22, 2018 11:59
EGU2018 presentation full code
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DPeterK
DPeterK / cartopy_crs_api_explore.ipynb
Last active November 17, 2017 12:39
Exploring cartopy CRS subclass API
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.