supermanzer / NDBC

Repository for housing Python code for fetching, parsing, and loading NDBC data into a local Python object for analysis.
MIT License
13 stars 4 forks source link

Add explicit timezone (UTC) to datetime objets #41

Open supermanzer opened 1 year ago

supermanzer commented 1 year ago

Update the date/time parsing and creation code to explicitly add a timezone of UTC to the datetime objects returned.

Motivation:

  I'm Sunni, and I use NDBC data for model validation.

I'm writing because I want to verify the time zone of the data I'm pulling.

I read on the NDBC Measurement Descriptions and Units page: https://www.ndbc.noaa.gov/measdes.shtml that both Realtime and Historical files show times in UTC only.

I took a look at the NDBC.py code, and it looks like the data I'm pulling (stdmet) is coming from files that are accessed.

If that's the case, I would imagine the remark about Realtime and Historical files (UTC) applies to the data I'm pulling.

I just want to confirm for my own use and for the benefit of others.

Thanks!

Originally posted by @piratepheasant in https://github.com/supermanzer/NDBC/discussions/22#discussioncomment-4100313