Skip to content

Commit 34bd3e7

Browse files
committed
tg bug fix and typos
1 parent 6293a9f commit 34bd3e7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

GEOSldas_App/util/postproc/ObsFcstAna_stats/Plot_stats_maps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def Main_OmF_maps():
136136

137137
# If obs_fov=0, reset to match model resolution.
138138
if obs_fov == 0:
139-
my_res = np.sqrt( tile_grid['dlat']*tile_grid['dlon'] )
139+
my_res = np.sqrt( tg['dlat']*tg['dlon'] )
140140

141141
# pick a resolution from a sample vector of resolutions
142142

GEOSldas_App/util/postproc/ObsFcstAna_stats/Plot_stats_timeseries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def Main_OmF_timeseries():
5656

5757
if stats_file is not None:
5858
with open(stats_file,'wb') as file:
59-
print(f'saveing stats to {stats_file}')
59+
print(f'saving stats to {stats_file}')
6060
pickle.dump(stats,file)
6161

6262
date_vec = stats['date_vec']

GEOSldas_App/util/postproc/ObsFcstAna_stats/helper/write_nc4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
def write_sums_nc4(file_path, N_data, data_sum, data2_sum, oxf_sum, oxa_sum, fxa_sum, obs_param):
1111

12-
nc = Dataset(file_path,'w',formate='NETCDF4')
12+
nc = Dataset(file_path,'w',format='NETCDF4')
1313

1414
tile = nc.createDimension('tile', N_data.shape[0])
1515
species = nc.createDimension('species', N_data.shape[1])
@@ -46,7 +46,7 @@ def write_sums_nc4(file_path, N_data, data_sum, data2_sum, oxf_sum, oxa_sum, fxa
4646

4747
def write_stats_nc4(file_path, stats):
4848

49-
nc = Dataset(file_path,'w',formate='NETCDF4')
49+
nc = Dataset(file_path,'w',format='NETCDF4')
5050

5151
tile = nc.createDimension('tile', stats['N_data'].shape[0])
5252
species = nc.createDimension('species', stats['N_data'].shape[1])

0 commit comments

Comments
 (0)