Closed msulprizio closed 1 year ago
Hi @msulprizio! Thanks for bringing this up. I believe this is a syntax error. Try changing
... C xy 1 1 -180/-90/180/90
to
... C xy 1 1 - 180/-90/180/90
leave a space between the - and the mask limits. That should fix it.
@yantosca The syntax appears to be correct. The dash there is meant to be there so lat1=-180
. Also, the correct number of entries are passed in that line, adding a space between the - and 180 causes HEMCO to crash when reading that line because of two many entries.
I suspect the issue is caused by these lines added in #198:
When I print Lct%Dct%Dta%ncFile
there, it returns $METDIR/$CNYR/01/$MET.$CNYR0101.CN.$RES.$NC
for OCEAN_MASK which I think means it is not recognized as a netCDF file.
Thanks @msulprizio, I'll look into this now.
This fixes the issue. I will prep a PR.
! If ncFile is passed as the lon1/lat1/lon2/lat2 instead
! of netCDF file name, then set ncRead to false, so that
! HEMCO won't try to read a file from disk. Also set the
! IsLocTime flag to TRUE. This should fix Github issue
! https://github.com/geoschem/HEMCO/issues/153.
! -- Bob Yantosca (12 Jul 2022)
!
! Also allow for the .$NC replaceable token, see:
! https://github.com/geoschem/HEMCO/issues/204
! -- Melissa Sulprizio & Bob Yantosca (11 Apr 2023)
IF ( INDEX( Lct%Dct%Dta%ncFile, ".nc" ) == 0 ) THEN
IF ( INDEX( Lct%Dct%Dta%ncFile, ".$NC" ) == 0 ) THEN
Lct%Dct%Dta%ncRead = .FALSE.
Lct%Dct%Dta%IsLocTime = .TRUE.
ENDIF
ENDIF
The fix for this issue (PR #205) is now merged into the 3.7.0 development branch.
Name and Institution (Required)
Name: Melissa Sulprizio Institution: Harvard/GCST
Confirm you have reviewed the following documentation
Description of your issue or question
After merging in PR https://github.com/geoschem/HEMCO/pull/198, GCClassic integration tests are failing for the TransportTracer simulations. The simulation is crashing when attempting to read OCEAN_MASK, defined in HEMCO_Config.rc as:
The error from HEMCO is:
Tagging @yantosca