Skip to content

Instantly share code, notes, and snippets.

@aaronspring
Created July 18, 2020 21:25
Show Gist options
  • Select an option

  • Save aaronspring/667266118a1986258af293e937bc82e9 to your computer and use it in GitHub Desktop.

Select an option

Save aaronspring/667266118a1986258af293e937bc82e9 to your computer and use it in GitHub Desktop.
intake xarray observations remote cache
plugins:
source:
- module: intake_xarray
sources:
gistemp:
description: GISTEMP
driver: netcdf
args:
urlpath: https://data.giss.nasa.gov/pub/gistemp/gistemp1200_GHCNv4_ERSSTv5.nc.gz
chunks: {'time':'auto'}
xarray_kwargs:
combine: nested
cache:
- type: compressed
decomp: gz
argkey: urlpath
HadCRUT4:
description: HadCRUT
driver: netcdf
cache:
- type: file
argkey: urlpath
args:
urlpath: https://crudata.uea.ac.uk/cru/data/temperature/HadCRUT.4.6.0.0.median.nc
HadISST:
description: HadISST
driver: netcdf
cache:
- type: compressed
decomp: gz
argkey: urlpath
args:
urlpath: https://www.metoffice.gov.uk/hadobs/hadisst/data/HadISST_sst.nc.gz
chunks: {'time': 'auto'}
xarray_kwargs:
combine: nested
HadSST:
description: HadSST
driver: netcdf
cache:
- type: compressed
decomp: zip
argkey: urlpath
args:
urlpath: https://www.metoffice.gov.uk/hadobs/hadsst3/data/HadSST.3.1.1.0/netcdf/HadSST.3.1.1.0.median_netcdf.zip
chunks: {'time':'auto'}
xarray_kwargs:
combine: nested
CSIR-ML6:
description: CSIR
driver: netcdf
cache:
- type: file
argkey: urlpath
args:
urlpath: https://ndownloader.figshare.com/files/23875943
chunks: {'time':'auto'}
SOM_FFN:
description: Observational time series data
driver: netcdf
cache:
- type: file
argkey: urlpath
parameters:
version:
description: version release in year
type: int
default: 2020
allowed: [2017,2018,2020]
metadata:
plots:
fgco2_over_time:
title: SOM-FFN fgco2 over time
kind: contourf
x: lon
y: lat
z: fgco2_smoothed
groupby: time
width: 800
height: 400
cmap: RdBu_r
levels: 20
fgco2_timeseries_location:
title: fgco2 timeseries at (lon,lat) location
kind: line
x: time
y: fgco2_smoothed
groupby: ['lon','lat']
fgco2_timeseries_latitude:
title: fgco2 timeseries at latitude
kind: contourf
y: time
x: lon
z: fgco2_smoothed
groupby: lat
levels: 20
args:
urlpath: https://data.nodc.noaa.gov/ncei/ocads/data/0160558/MPI_SOM-FFN_v{{version}}/spco2_MPI-SOM_FFN_v{{version}}.nc
chunks: {'time':'120'}
xarray_kwargs:
drop_variables: date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment