Skip to content

Commit

Permalink
Use subset_MODIS_l2 for file selection in time window.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwfncar committed Jul 14, 2024
1 parent 8f0089d commit 2483fb5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions melodies_monet/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,10 @@ def open_sat_obs(self, time_interval=None, control_dict=None):
# from monetio import modis_l2
print('Reading MODIS L2')
flst = tsub.subset_MODIS_l2(self.file,time_interval)
print(flst)
self.obj = mio.sat._modis_l2_mm.read_mfdataset(
self.file, self.variable_dict, debug=self.debug)
# self.obj = mio.sat._modis_l2_mm.read_mfdataset(
# flst, self.variable_dict, debug=self.debug)
# self.file, self.variable_dict, debug=self.debug)
self.obj = mio.sat._modis_l2_mm.read_mfdataset(
flst, self.variable_dict, debug=self.debug)
# self.obj = granules, an OrderedDict of Datasets, keyed by datetime_str,
# with variables: Latitude, Longitude, Scan_Start_Time, parameters, ...
elif self.sat_type == 'tropomi_l2_no2':
Expand Down Expand Up @@ -1008,8 +1007,6 @@ def update_obs_grid(self):
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 2483fb5

Please sign in to comment.