pnwairfire / bluesky

BlueSky Framework rearchitected as a pipeable collection of standalone modules.
GNU General Public License v3.0
19 stars 11 forks source link

Look up utc_offset if not provided in input data #264

Open jdubowy opened 2 years ago

jdubowy commented 2 years ago

e.g with pytz and timezonefinder

sp = aa['specified_points'][0]
tz_name = tf.timezone_at(lat=sp['lat'], lng=sp['lng'])
tz = pytz.timezone(tz_name).localize(burn_date)
aa['utc_offset'] = tz.strftime('%z')