Skip to content

Commit

Permalink
Merge pull request #347 from justin-richling/aod-plot-fix
Browse files Browse the repository at this point in the history
Add check for aod panel obs
  • Loading branch information
justin-richling authored Dec 9, 2024
2 parents 8adaef4 + fe60683 commit f28e669
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/plotting/global_latlon_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,10 @@ def aod_latlon(adfobj):
file_merra2 = os.path.join(obs_dir, 'MERRA2_192x288_AOD_2001-2020_climo.nc')
file_mod08_m3 = os.path.join(obs_dir, 'MOD08_M3_192x288_AOD_2001-2020_climo.nc')

if (not Path(file_merra2).is_file()) or (not Path(file_mod08_m3).is_file()):
print("\t ** AOD Panel plots not made, missing MERRA2 and/or MODIS file")
return

ds_merra2 = xr.open_dataset(file_merra2)
ds_merra2 = ds_merra2['TOTEXTTAU']
ds_merra2['lon'] = ds_merra2['lon'].round(5)
Expand Down

0 comments on commit f28e669

Please sign in to comment.