Open barronh opened 1 year ago
p.s., you also need to change the loop and date diagnostic lines in the loop later.
Change from:
for chloutpath in sorted(glob(f'chlor_a/{dom}/A2*_{dom}.nc')):
mydate = datetime.strptime(os.path.basename(chloutpath)[1:8], '%Y%j')
Change to:
for chloutpath in sorted(glob(f'chlor_a/{dom}/A*.{dom}.nc')):
mydate = datetime.strptime(os.path.basename(chloutpath)[11:19], '%Y%m%d')
Description When running the Jupyter Notebook in PYTOOLS/dmschlo/CMAQ_DMS_ChlorA.ipynb, the notebook fails when finding climatology files.
Scope and Impact
This causes the notebook to fail and the DMS/CHLO variables cannot be created.
Solution
The error is caused by a server reorganization of the files on the server at the OPBG DAAC.
%j
) of year to month-day (%m%d
).A%Y%j%Y%j.L3m_MC_CHL_chlor_a_9km.nc
AQUA_MODIS.%Y%m%d_%Y%m%d.L3m.MC.CHL.chlor_a.9km.nc
This requires two changes to the notebook. Both are in the cell that starts with “if getlatestchlo”.
First, change dates in the for loop
Second, change the regular expression that finds the files
I have successfully run for a new domain with the latest climatology files.
Additional context
A PR will be forthcoming that also changes the documentation
This type of update is inherent in including download as part of the process.