Skip to content

Commit 2002831

Browse files
committed
Merge branch 'cloudsat_bugfix' of https://github.com/jshaw35/COSPv2.0 into cloudsat_bugfix
Catching up with origin.
2 parents b1fd01f + 76a626c commit 2002831

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

driver/plot_test_outputs.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ def collapse_dimensions_for_plotting(longitude, latitude, vname, vx, vd, dims):
101101
xticks_labels = None
102102
xticks = np.arange(-90,91,30)
103103
xlabel = 'Latitude (deg)'
104+
if vd['xaxis_type'] == 'CFODD_NDBZE':
105+
x = np.arange(-30,21,2)
106+
xticks = x
107+
xticks_labels = None
108+
xlabel = 'CloudSat equivalent reflectivity factor (dBZ)'
104109
if vd['yaxis_type'] == 'pres7':
105110
yticks_labels = ('1000', '800', '680', '560', '440', '310', '180','')
106111
yticks = y
@@ -119,6 +124,11 @@ def collapse_dimensions_for_plotting(longitude, latitude, vname, vx, vd, dims):
119124
yticks_labels = ('0','4', '8', '10', '12.5', '15', '20', '30', '10000')
120125
yticks = y
121126
ylabel = 'Liquid particle size (micron)'
127+
if vd['yaxis_type'] == 'CFODD_NICOD':
128+
y = np.arange(0,61,2)
129+
yticks_labels = None
130+
yticks = y
131+
ylabel = 'MODIS in-cloud optical depth'
122132
if vd['yaxis_type'] == 'levStat':
123133
if not dims['levStat'].any():
124134
# For diagnostics on model levels, all elements in levStat
@@ -298,7 +308,8 @@ def variable2D_metadata(var_list, fname):
298308
('hgt16', 'tau7', 'loc'),
299309
('REICE_MODIS', 'tau7', 'loc'),
300310
('RELIQ_MODIS', 'tau7', 'loc'),
301-
('levStat', 'SR_BINS', 'loc'))
311+
('levStat', 'SR_BINS', 'loc'),
312+
('CFODD_NICOD', 'CFODD_NDBZE', 'loc'))
302313
zcs_dims = (('levStat','loc'), ('lev','loc'))
303314
f_id = netCDF4.Dataset(fname, 'r')
304315
vmeta = {}
@@ -352,11 +363,15 @@ def variable2D_metadata(var_list, fname):
352363
'albisccp', 'misr_meanztop', 'misr_cldarea', 'cltmodis', 'clwmodis', 'climodis', 'clhmodis',
353364
'clmmodis', 'cllmodis', 'tautmodis', 'tauwmodis', 'tauimodis', 'tautlogmodis', 'tauwlogmodis',
354365
'tauilogmodis', 'reffclwmodis', 'reffclimodis', 'pctmodis', 'lwpmodis', 'iwpmodis',
355-
'cltlidarradar', 'cloudsat_tcc', 'cloudsat_tcc2','parasolGrid_refl']
366+
'cltlidarradar', 'cloudsat_tcc', 'cloudsat_tcc2','parasolGrid_refl',
367+
'ptcloudsatflag0', 'ptcloudsatflag1', 'ptcloudsatflag2', 'ptcloudsatflag3', 'ptcloudsatflag4',
368+
'ptcloudsatflag5', 'ptcloudsatflag6', 'ptcloudsatflag7', 'ptcloudsatflag8', 'ptcloudsatflag9',
369+
'cloudsatpia', 'npdfcld', 'npdfdrz', 'npdfrain']
356370
v2D_hists_names = ['clisccp', 'clmodis', 'cfadDbze94', 'clMISR',
357371
'modis_Optical_Thickness_vs_ReffICE',
358372
'modis_Optical_Thickness_vs_ReffLIQ',
359-
'cfadLidarsr532', 'cfadLidarsr532gr', 'cfadLidarsr355']
373+
'cfadLidarsr532', 'cfadLidarsr532gr', 'cfadLidarsr355',
374+
'ncfodd1', 'ncfodd2', 'ncfodd3']
360375
v2D_zcs_names = ['clcalipsoice','clcalipsoliq','clcalipsoun','clcalipsotmp','clcalipsotmpice','clcalipsotmpliq',
361376
'clcalipsotmpun','clcalipso','clcalipsoopaque','clcalipsothin','clcalipsozopaque',
362377
'clcalipsoopacity','clgrLidar532','clatlid','clcalipso2',

0 commit comments

Comments
 (0)