Skip to content

Instantly share code, notes, and snippets.

@mpiannucci
Created November 20, 2023 20:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpiannucci/c7148bd53fcc8e6e1a9cb371c6ce964a to your computer and use it in GitHub Desktop.
Save mpiannucci/c7148bd53fcc8e6e1a9cb371c6ce964a to your computer and use it in GitHub Desktop.
XPublish demo

Create virtual environment

python3 -m venv env/

Activate virtual environment

source env/bin/activate

Install dependencies

pip install -r requirements.txt

Run server

python app.py
import xarray as xr
import xpublish
ds = xr.open_dataset('./nos.tbofs.fields.f008.20230920.t00z.nc', chunks={})
ds.rest.serve()
xpublish
git+https://github.com/xpublish-community/xpublish-wms@f64814241f9cf48a733d81526cf7ca580b5b1459
netcdf4
h5py
h5netcdf
xarray
zarr
cftime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment