Skip to content

Commit

Permalink
Update doc strings for AOD plots
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-richling committed Oct 22, 2024
1 parent b55c851 commit 45d11c9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions scripts/plotting/global_latlon_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,20 @@ def plot_file_op(adfobj, plot_name, var, case_name, season, web_category, redo_p


def aod_latlon(adfobj):
"""
Function to gather data and plot parameters to plot a panel plot of model vs observation
difference and percent difference.
Calculate the seasonal means for DJF, MAM, JJA, SON for model and obs datasets
NOTE: The model lat/lons must be on the same grid as the observations. If they are not, they need to be
regridded to match both the MERRA and MODIS observation dataset!
For details about spatial coordiantes of obs datasets, see /glade/campaign/cgd/amp/amwg/ADF_obs/:
- MERRA2_192x288_AOD_2001-2020_climo.nc
- MOD08_M3_192x288_AOD_2001-2020_climo.nc
"""

var = "AODVISdn"
season_abbr = ['Dec-Jan-Feb', 'Mar-Apr-May', 'Jun-Jul-Aug', 'Sep-Oct-Nov']
# Define a list of season labels
Expand Down Expand Up @@ -643,7 +657,22 @@ def monthly_to_seasonal(ds,obs=False):


def aod_panel_latlon(adfobj, plot_titles, plot_params, data, season, obs_name, case_name, case_num, types, symmetric=False):
"""
Function to plot a panel plot of model vs observation difference and percent difference
This will be a 4-panel plot if model vs model run:
- Top left is test model minus obs
- Top right is baseline model minus obs
- Bottom left is test model minus obs percent difference
- Bottom right is baseline model minus obs percent difference
This will be a 2-panel plot if model vs obs run:
- Top is test model minus obs
- Bottom is test model minus obs percent difference
NOTE: Individual plots of the panel plots will be created and saved to plotting location(s)
but will not be published to the webpage (if enabled)
"""
#Set plot details:
# -- this should be set in basic_info_dict, but is not required
# -- So check for it, and default to png
Expand Down

0 comments on commit 45d11c9

Please sign in to comment.