Generate and serve data supporting the Snow Today Webapp.
Static data is version-controlled in this repository. Daily dynamic data (e.g. Cloud-Optimized GeoTIFFs) are generated by executing code in this repository.
More on data served by Snow Today Webapp Server
NOTE: Because there is a co-dependency between the dynamic data-generation code and the static configuration code, they are intentionally versioned together in this repository.
This repository is not actively supported by NSIDC but we welcome issue submissions and pull requests in order to foster community contribution.
See the LICENSE for details on permissions and warranties. Please contact nsidc@nsidc.org for more information.
This package requires a webserver to host its data, as well as GDAL for creating Cloud-Optimized GeoTIFFs.
docker compose build
Ensure envvars $ENVIRONMENT
and $STORAGE_DIR
are set appropriately, e.g.:
export ENVIRONMENT=dev # default: production
export STORAGE_DIR=/tmp/snow-today-data
STORAGE_DIR
is expected to contain an incoming
subdirectory where daily data will
arrive, and cogs
and plots
directories, where outputs will be written.
docker compose up -d data-server
./scripts/container_cli.sh --help
./scripts/container_cli.sh make-cogs-daily
./scripts/container_cli.sh make-plot-json-daily
403
errorsPermissions on a directory are not set correctly. Need ugo+rx
. In an NSIDC deployment,
an operator can correct this on the storage back-end.
See LICENSE.
See contributing docs.