Skip to content

Commit

Permalink
Added comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwfncar committed Oct 1, 2024
1 parent a08acf4 commit 048f5f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions melodies_monet/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,9 @@ def open_obs(self, time_interval=None, load_files=True):
self.obs[o.label] = o

def setup_obs_grid(self):
"""
Setup a uniform observation grid.
"""
from .util import grid_util
ntime = self.control_dict['obs_grid']['ntime']
nlat = self.control_dict['obs_grid']['nlat']
Expand All @@ -1064,6 +1067,8 @@ def setup_obs_grid(self):
def update_obs_gridded_data(self):
from .util import grid_util
"""
Update observation grid cell values and counts,
for all observation datasets and parameters.
"""
for obs in self.obs:
for obs_time in self.obs[obs].obj:
Expand All @@ -1089,6 +1094,8 @@ def update_obs_gridded_data(self):
def normalize_obs_gridded_data(self):
from .util import grid_util
"""
Normalize observation grid cell values where counts is not zero.
Create data arrays for the obs_gridded_dataset dictionary.
"""
self.obs_gridded_dataset = xr.Dataset()

Expand Down

0 comments on commit 048f5f0

Please sign in to comment.