Reading-eScience-Centre / edal-java

Environmental Data Abstraction Layer libraries
Other
39 stars 30 forks source link

Godiva3 calendar does not limit temporal bounds #167

Open pacioos opened 6 months ago

pacioos commented 6 months ago

I have noticed in Godiva3 (via TDS5) that the calendar utility does not limit the selectable temporal bounds to those of the dataset being viewed, like was done in TDS4/Godiva2. For example, our "tide_mhi" Hawaii tide model dataset is only available from 2023-12-01T00:00:00Z through 2024-12-31T23:00:00Z:

The Godiva3 viewer, however, will allow you to select years and months before and after this time range. For a new user, it becomes a fishing expedition trying to figure out how far back a dataset goes (how far in the future a forecast goes). Unavailable dates are only signaled by the grayed-out and italicized calendar dates.

In contrast, the Godiva2 viewer (via TDS4) was smarter about limiting the year, month, and hour pull-down menus to within the dataset's available temporal coverage:

This made it much simpler for a user to explore the available time range. Could these smarts be added back into Godiva3, I wonder? Thanks for giving this some thought!

guygriffiths commented 5 months ago

I don't think so, no. The toolkit we used to build Godiva3 did not have that ability, otherwise we would have used it, and looking at the docs, it still doesn't (unsurprisingly - it was discontinued a while ago).

Really what's needed is a full rewrite of a UI for ncWMS in modern Javascript, but unfortunately I don't have time for this at the moment.

I've never used the calendar selector anyway, I always click to the left of it to enable date selection from a drop-down list.

pacioos commented 5 months ago

OK, thanks anyways, Guy. Maybe someday down the line...

Also, did not know that about clicking to the left of the calendar to enable a drop-down list. That's a handy hidden feature to know about, but few are likely to discover this on their own.