From 048f5f08cd083c2e8741c2b2a2a8227652fa33aa Mon Sep 17 00:00:00 2001 From: David Fillmore Date: Tue, 1 Oct 2024 15:40:59 -0600 Subject: [PATCH] Added comments. --- melodies_monet/driver.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/melodies_monet/driver.py b/melodies_monet/driver.py index aaae20c3..ca7d7920 100644 --- a/melodies_monet/driver.py +++ b/melodies_monet/driver.py @@ -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'] @@ -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: @@ -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()