Skip to content

Commit

Permalink
Keep PMID from plotting
Browse files Browse the repository at this point in the history
This is an unnecessary variable to plot, so don't waste time with it
  • Loading branch information
justin-richling committed Dec 19, 2024
1 parent 6ba8b0e commit 82ea271
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 4 deletions.
7 changes: 6 additions & 1 deletion scripts/plotting/global_latlon_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ def global_latlon_map(adfobj):
#
# Use ADF api to get all necessary information
#

#Variable list
var_list = adfobj.diag_var_list
#Remove unneccasry vairbale from plotting
if "PMID" in var_list:
var_list.remove("PMID")
#Special ADF variable which contains the output paths for
#all generated plots and tables for each case:
plot_locations = adfobj.plot_location
Expand Down Expand Up @@ -920,4 +925,4 @@ def regrid_to_obs(adfobj, model_arr, obs_arr):
#######

##############
#END OF SCRIPT
#END OF SCRIPT
7 changes: 6 additions & 1 deletion scripts/plotting/global_latlon_vect_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ def global_latlon_vect_map(adfobj):
#
# Use ADF api to get all necessary information
#
#Variable list
var_list = adfobj.diag_var_list
#Remove unneccasry vairbale from plotting
if "PMID" in var_list:
var_list.remove("PMID")

model_rgrid_loc = adfobj.get_basic_info("cam_regrid_loc", required=True)

#Special ADF variable which contains the output path for
Expand Down Expand Up @@ -484,4 +489,4 @@ def global_latlon_vect_map(adfobj):
print(" ...lat/lon vector maps have been generated successfully.")

##############
#END OF SCRIPT
#END OF SCRIPT
5 changes: 4 additions & 1 deletion scripts/plotting/global_mean_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def global_mean_timeseries(adfobj):

# Loop over variables
for field in adfobj.diag_var_list:
#Remove unneccasry vairbale from plotting
if field == "PMID":
continue

# Check res for any variable specific options that need to be used BEFORE going to the plot:
if field in res:
Expand Down Expand Up @@ -273,4 +276,4 @@ def make_plot(case_ts, lens2, label=None, ref_ts_da=None):


##############
#END OF SCRIPT
#END OF SCRIPT
5 changes: 5 additions & 0 deletions scripts/plotting/meridional_mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ def meridional_mean(adfobj):

#Extract needed quantities from ADF object:
#-----------------------------------------
#Variable list
var_list = adfobj.diag_var_list
#Remove unneccasry vairbale from plotting
if "PMID" in var_list:
var_list.remove("PMID")

model_rgrid_loc = adfobj.get_basic_info("cam_regrid_loc", required=True)

#Special ADF variable which contains the output paths for
Expand Down
7 changes: 6 additions & 1 deletion scripts/plotting/polar_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ def polar_map(adfobj):
#
# Use ADF api to get all necessary information
#
#Variable list
var_list = adfobj.diag_var_list
#Remove unneccasry vairbale from plotting
if "PMID" in var_list:
var_list.remove("PMID")

model_rgrid_loc = adfobj.get_basic_info("cam_regrid_loc", required=True)

#Special ADF variable which contains the output paths for
Expand Down Expand Up @@ -407,4 +412,4 @@ def polar_map(adfobj):
#END OF `polar_map` function

##############
# END OF FILE
# END OF FILE
4 changes: 4 additions & 0 deletions scripts/plotting/zonal_mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ def zonal_mean(adfobj):

print("\n Generating zonal mean plots...")

#Variable list
var_list = adfobj.diag_var_list
#Remove unneccasry vairbale from plotting
if "PMID" in var_list:
var_list.remove("PMID")

#Special ADF variable which contains the output paths for
#all generated plots and tables:
Expand Down

0 comments on commit 82ea271

Please sign in to comment.