NOAA-PMEL / las9

This is the home of LAS v9.x
1 stars 0 forks source link

Directly accessing hour data from URLs #53

Closed haze1986 closed 1 year ago

haze1986 commented 1 year ago

Hi Devs,

I have a use case where I will access a specific data set based on the current date and time and pass this information to the URL of LAS to access the dataset. While by default it works accessing the date, the time seems to not work and automatically goes to 0000hours of the specified date.

sharing a snippet of the URL with the date and time info below for example if I set 02-Mar-2023, 16:00 hours, it will loads the LAS product page with 02-Mar-2023 00:00 hours instead. May I know if this can be improved? ... %22:%2202-Mar-2023%2016:00%22,%20%22thi%22:%2202-Mar-2023%2016:00%22% ...

Also would like to share that, at times it will return with an error when accessing an exact date. I have not been able to figure out when it works and when it doesnt. It is fine when I add a new dataset but just fails probably after an auto update, for only some datasets. I will keep u informed if I figure out. Data set ingested with unknown status. May not display correctly.

Thank you very much.

noaaroland commented 1 year ago

Does the UI, show a menu for choosing the hour? In general the code is able to figure out when a data set requires a selector on the time axis for choosing the hour. This data set for example is every six hours.

If there are no hour selectors in the UI, then LAS may choose to ignore the hour part of the date/time input. If the data source is public or you can supply a sample I can look at it in the debugger to see if I can figure out why LAS is having trouble determining that the time axis needs the hour menu.

haze1986 commented 1 year ago

Hi Roland, thanks again for looking into this. There is hour selector for the dataset and the example you shared could be used to show what I meant. To replicate:

  1. Access the data set and change the tine to 0600, click update
  2. Copy the url and paste it on another browser (tested on incognito), the url can be seen to register the new time of 0600
  3. When the dataset loads on new browser, it always goes back to 0000hours

Hope this helps, and if it can be implemented to allow setting the time from the url.

haze1986 commented 1 year ago

Hi Roland, may I know if this can be fixed or is a limitation?

noaaroland commented 1 year ago

It's most certainly a bug, but no timeline for when I can fix it.

noaaroland commented 1 year ago

This is fixed with LAS v9.8.1 release. This link should open the data set above with hour 12 selected.

I'm closing this. If it still does not work for your particular data set you can reopen the issue and provide details.