ua-snap / ardac-explorer

ARDAC GUI Explorer
0 stars 0 forks source link

Implement maps + charts/tables for 18 ARDAC items #42

Closed cstephen closed 6 months ago

cstephen commented 7 months ago

This PR implements "first draft" versions of the following map + chart/table ARDAC items:

My understanding is that we will not be using our current set of WRF-based coverages & API endpoints, which impacts the following ARDAC items, but I've kept them in this PR for illustration/discussion purposes:

Some questions we'll need to think about generally in the future:

Also, there is a lot of code duplication in this PR that I haven't gotten around to improving yet. I think we can consolidate a lot of Leaflet configuration / data packaging code to considerable degree in the future, but probably in subsequent PRs.

To test, set the RASDAMAN_URL environment variable to point to Apollo directly. This is prevent WMS caching issues:

export RASDAMAN_URL=https://apollo.snap.uaf.edu/rasdaman/ows

Then:

npm install
npm run dev

Then, visit each of the following URLs!

http://localhost:3000/item/indicator-dw http://localhost:3000/item/indicator-su http://localhost:3000/item/indicator-cd http://localhost:3000/item/indicator-hd http://localhost:3000/item/indicator-wsdi http://localhost:3000/item/indicator-csdi http://localhost:3000/item/indicator-rx1day http://localhost:3000/item/indicator-rx5day http://localhost:3000/item/indicator-cdd http://localhost:3000/item/indicator-cwd http://localhost:3000/item/indicator-r10mm http://localhost:3000/item/wet-days-per-year http://localhost:3000/item/climate-beetle-protection http://localhost:3000/item/landfast-sea-ice http://localhost:3000/item/dd-below-65 http://localhost:3000/item/dd-below-0 http://localhost:3000/item/freezing-index http://localhost:3000/item/thawing-index

Each URL above has multiple map layers to try, and a lat/lon input that generates either a chart or a table. Try all of these! And note that all 18 items listed above also now use the new community + lat/lon place selector component.