Skip to content

minimal demo of using the @carbonplan/maps library

License

Notifications You must be signed in to change notification settings

abarciauskas-bgse/simple-zarr-demos

 
 

Repository files navigation

Simple IMERG Zarr Demo

Built from https://github.com/carbonplan/simple-map-demo demo of using the @carbonplan/maps library.

Prequisites: nvm, npm, pip

Steps

  1. Create the Zarr and ndpyramid using notebooks/create-zarr-with-pangeo-forge.ipynb
  2. Run an http server for the Zarr (assuming local storage)
  3. Run the next.js app to visualize the Zarr

IMERG Zarr

Step 3: Run an http server for the Zarr (assuming local storage)

cd data
# if you haven't installed the server already
# $ npm install http-server -g
http-server -p 8000 --cors

Step 4: Run the next.js app to visualize the Zarr

Open a new terminal.

nvm use 12
npm i
npm run dev

Deployment

Deployment has been automated using AWS Amplify Web Hosting: https://main.d36v6mb9ch6nge.amplifyapp.com/

Experimental: Visualizing COGs with @carbonplan/maps

It was of interest to visualize COGs using the same library as visualizing Zarr, to see datasets of both underlying format in one map viewer.

To do this, I generated a COG using veda-data-pipelines: GPM IMERG example and changes to @carbonplan/maps detailed here: carbonplan/maps#41

About

minimal demo of using the @carbonplan/maps library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 97.9%
  • JavaScript 2.1%