nsidc / snow-today-webapp-server

Serve data the snow-today-webapp depends on
https://snow-today-webapp-server.readthedocs.io/
MIT License
4 stars 0 forks source link

Andes: Determine the correct waterYear depending the date #60

Closed windnagelnsidc closed 8 months ago

windnagelnsidc commented 8 months ago

The start of the waterYear for Andes is set to Apr 1st (based on Chile hydrologists info).

Because of complexity, I won't have time to set different water Years for subregion. So it will be Apr 1st in Ecuador too.

Still, I have this problem that currently, the waterYear is set to the year of the last month of the water Year. For instance, for the States, current end of water Year is sept 30, 2024, then water Year is 2024.

For Andes, the code similarly determines the water year. End of water year March, 2024, so all the dates from Apr, 1st 2023 to March 31st are associated to water year 2024. At some point though, Karl might decides that associating them to water year 2023 would be preferable and then a development on the side of the supercomputer would be necessary.

windnagelnsidc commented 8 months ago

This is handled in the date column of the plot files. We access the first date in the column to know the "as of" date to display.