alexander-petkov / wfas

A placeholder for the WFAS project.
4 stars 1 forks source link

Calculate local time for weatherstream data #25

Closed alexander-petkov closed 3 years ago

alexander-petkov commented 4 years ago

Observed, as well as forecast data from RTMA, NDFD, and GFS archives carries UTC timestamps.

Convert timestamps from UTC to local time. This is required by Flammap, which is used to ingest Weatherstream (wxs) data.

alexander-petkov commented 4 years ago

Weather stream data is extracted based on user input geographic coordinates. These coordinates will be used for time zone lookup, and convert UTC timestamps to the appropriate time zone .

alexander-petkov commented 4 years ago

Timezone lookup will be based on the latest released time zone boundaries from this project:

https://github.com/evansiroky/timezone-boundary-builder/releases/tag/2019b

Thankfully, the data is, for the most part, static.

alexander-petkov commented 4 years ago

This commit has the above changes required above.

The lookup is based on determining the appropriate time zone from the user input coordinates.

Right now the timezone is configured as a vector layer in Geoserver--I may inlcude the shapefile in the JAR archive, in effort to reduce the requirement for the layer to be configured in Geoserver.

The code for the weather stream WPS also went some restructuring changes, so it is easier to read.

wmjolly commented 4 years ago

Very cool solution Alex. Strong work.

On Tue, Apr 14, 2020 at 1:12 PM alexander-petkov notifications@github.com wrote:

This commit https://github.com/alexander-petkov/wfas/commit/986b1b2b643e222d19969d83b3a9b7fdfd49a262 has the above changes required above.

The lookup is based on determining the appropriate time zone from the user input coordinates.

Right now the timezone is configured as a vector layer in Geoserver--I may inlcude the shapefile in the JAR archive, in effort to reduce the requirement for the layer to be configured in Geoserver.

The code for the weather stream WPS also went some restructuring changes, so it is easier to read.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alexander-petkov/wfas/issues/25#issuecomment-613630222, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4G3D6A6SPIB4ZWZSVDS2LRMSYTRANCNFSM4ME6I6NQ .