Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add model selection feature to all hydrology charts #175

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

cstephen
Copy link
Contributor

Closes #146.

This PR adds the same model selection feature we have for other ARDAC's items to all hydrology charts.

To test, first uncomment the hydrology slugs in slugs.d.ts so the corresponding items are accessible:

| 'hydrology-evap'
| 'hydrology-glacier-melt'
| 'hydrology-iswe'
| 'hydrology-runoff'
| 'hydrology-sm'
| 'hydrology-snow-melt'

Then run ARDAC Explorer against the development API:

export SNAP_API_URL=https://development.earthmaps.io
npm run dev

Then enter a location (e.g, "Fairbanks") into any of these hydrology data x-ray items to load the charts, then experiment with selecting different models to verify that the charts react accordingly:

http://localhost:3000/item/hydrology-evap
http://localhost:3000/item/hydrology-glacier-melt
http://localhost:3000/item/hydrology-iswe
http://localhost:3000/item/hydrology-runoff
http://localhost:3000/item/hydrology-sm
http://localhost:3000/item/hydrology-snow-melt

@brucecrevensten brucecrevensten merged commit 2d65118 into main Jan 15, 2025
@brucecrevensten brucecrevensten deleted the hydrology_model_select branch January 15, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add model input to hydrology charts and remove hard-coded CanESM2 model
2 participants