Skip to content

Commit

Permalink
Convert obs time to timestamp.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwfncar committed Jul 14, 2024
1 parent 1c67cd5 commit c621b5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions melodies_monet/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,12 @@ def update_obs_grid(self):
for obs in self.obs:
for obs_time in self.obs[obs].obj:
print('updating obs time: ', obs, obs_time)
obs_timestamp = pd.to_datetime(
obs_time, format='%Y%j%H%M').timestamp()
print(obs_timestamp)
print(self.obs[obs].obj[obs_time])
for var in self.obs[obs].obj[obs_time]:
print(var)
"""
self.obs_gridded_data[obs + '_' + var]
self.obs_gridded_count[obs + '_' + var]
Expand Down

0 comments on commit c621b5a

Please sign in to comment.