Wildcard on Single netCDF based on OpenDAP #41
-
Hi I am trying to share GFS wind forecast, i.e. daily it will source for Is there a way to specify date commands so the auto update can work? Or is there a better way to have the latest forecast on LAS? |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 6 replies
-
The short answer is no, this is not possible. There are many tools (like ERDDAP, Hyrax and TDS) which can dynamically read a collection of data files and serve them as an aggregation. Then configure LAS to see the aggregation and set up the automatic updates in LAS to check for new data periodically. Unfortunately since NCEP is using a tool that is decades old (GDS) and has not aggregated these data, your only hope is to download the data (maybe via ftp) and set up your own server to serve the data to LAS. |
Beta Was this translation helpful? Give feedback.
-
The auto update feature in LAS is designed specifically to examine the data source, extract the time and update the UI. If it's not working something is probably not configured correctly. Check the logs to see if the update is firing as you expect, Use https://crontab.guru/ to check your cron expression. I admit, I've never run it where it was reading the same file over and over again, but I don't see any reason why it wouldn't work. |
Beta Was this translation helpful? Give feedback.
-
Hi Roland, understood. I did verify that the cron scripts fired correctly. Actually an easy way to check is to put a file that is totally out of the range of the previous file. i.e. current file 21 - 25 sep, replaced with a file with the same filename consisting of data from 13 - 17 sep. The dates will still remain as 21 - 25. I'm still figuring out why but it might have something to do with the jnl files in content/las/scripts not being updated correctly as they are still showing the previous date. |
Beta Was this translation helpful? Give feedback.
-
It's possible that we are talking past each other. I'm sure your process to update your file is working fine. But, unless and until you enter the admin interface on your LAS and direct LAS to use its internal facilities to automatically update the data set, the end dates in the UI will never change regardless of what's in the file. Have you visited the pictured page for this data set and set up and update? |
Beta Was this translation helpful? Give feedback.
-
Are you reading the file directly in LAS (by entering in the absolute path to the file in LAS) or are you looking at the file via a server like THREDDS. If it's the latter the the issue might be that the dates are being cached by TDS. |
Beta Was this translation helpful? Give feedback.
-
Great. Seems like you have everything set up correctly. The hash should be the same if the file "url" is the same. History value won't affect the automatic update. The time axis is the only thing being examined. Try resetting the trigger for the update. Use the automatic update page and send a blank cron spec. Verify in the log you see a: Then set it again and verify in the log you see a message: Then when the update fires, look at the log output for updating the data set. There should be plenty of messages, especially if you logback.xml is set to debug for the las packages. Post all that output, and I'll see if I can figure out what's going wrong. |
Beta Was this translation helpful? Give feedback.
-
Thanks for this information. From this output we know that you can ingest the initial file into LAS (assuming you tested it after you did the initial ingest), but when the update runs it fails. So either there is a bug in LAS, or there is something different about the initial file and the once being updated. (The failure to remove the cron spec is probably another bug which I'll tackle separately). I'd like set up the same scenario locally and watch the update in the debugger. I looking around for GFS output, but it be easier if you could give me the specifics of the files you're using (or links to similar or whatever). Thanks! |
Beta Was this translation helpful? Give feedback.
-
Anyway you can give me a link or an ftp of two of the converted netCDF files? Otherwise, I have to install/build wgrib2 or set up a TDS for the grib. |
Beta Was this translation helpful? Give feedback.
-
Thanks. It's a bug, obviously. I'm working on a fix. |
Beta Was this translation helpful? Give feedback.
-
The strategy which haze1986 adopted was to use a single file with the latest forecast configured into LAS. Then an external process would replace that file (using the same file name) with the latest forecast and then configured LAS to automatically update the time axis in LAS using the auto update feature. This should have worked, but there was a bug which is now fixed and this method of replacing the file and automatically updating should now work. I believe this is fixed with the 9.7.6 release. Thank you for opening the discussion and helping me track down the bug. Edited: for missing word and fuller explanation of the issue and resolution. |
Beta Was this translation helpful? Give feedback.
-
Thanks Roland, will update the version and test it |
Beta Was this translation helpful? Give feedback.
The strategy which haze1986 adopted was to use a single file with the latest forecast configured into LAS. Then an external process would replace that file (using the same file name) with the latest forecast and then configured LAS to automatically update the time axis in LAS using the auto update feature. This should have worked, but there was a bug which is now fixed and this method of replacing the file and automatically updating should now work.
I believe this is fixed with the 9.7.6 release. Thank you for opening the discussion and helping me track down the bug.
Edited: for missing word and fuller explanation of the issue and resolution.