Closed cbutenhoff closed 3 years ago
@cbutenhoff Recently I've been playing around with configuring HISTORY.rc, so I sympathize with it being tricky.
A couple things I see right away:
GRID_LABELS:
declaration on line 20 is missing your GLOBAL4x5
tag. I think this is the source of your crash.GRID4x5
definition you include LM:72
. I think this might be what's causing the 72 level output. I would recommend omitting LM
and treating the grid labels as horizontal grid definitions only.When I'm writing a custom HISTORY.rc I find the default file a bit overwhelming. I'd recommend stripping out everything you don't need so it's easier to keep track of. Here's a start
EXPID: OutputDir/GEOSChem
EXPDSC: GEOS-Chem_devel
CoresPerNode: 18
VERSION: 1
GRID_LABELS: GLOBAL4x5
::
GLOBAL4x5.GRID_TYPE: LatLon
GLOBAL4x5.IM_WORLD: 72
GLOBAL4x5.JM_WORLD: 46
GLOBAL4x5.POLE: PC
GLOBAL4x5.DATELINE: DC
COLLECTIONS: 'MyEmissionsCollection',
'MySpeciesCollection',
::
# Note: 'Emis*' variables are upside-down relative to everything else (therefore, pick level 72 rather than 1)
MyEmissionsCollection.template: '%y4%m2%d2_%h2%n2z.nc4',
MyEmissionsCollection.format: 'CFIO',
MyEmissionsCollection.frequency: 010000
MyEmissionsCollection.duration: 240000
MyEmissionsCollection.mode: 'time-averaged'
MyEmissionsCollection.grid_label: GLOBAL4x5
MyEmissionsCollection.conservative: 1
MyEmissionsCollection.levels: 72
MyEmissionsCollection.fields: 'EmisC2H6_Total ', 'GCHPchem',
'EmisC2H6_Aircraft ', 'GCHPchem',
'EmisC2H6_Anthro ', 'GCHPchem',
'EmisC2H6_BioBurn ', 'GCHPchem',
'EmisC2H6_Ship ', 'GCHPchem',
::
MySpeciesCollection.template: '%y4%m2%d2_%h2%n2z.nc4',
MySpeciesCollection.format: 'CFIO',
MySpeciesCollection.frequency: 010000
MySpeciesCollection.duration: 240000
MySpeciesCollection.mode: 'time-averaged'
MySpeciesCollection.grid_label: GLOBAL4x5
MySpeciesCollection.conservative: 1
MySpeciesCollection.levels: 1
MySpeciesCollection.fields: 'SpeciesConc_C2H6 ', 'GCHPchem',
::
Note Here I put 010000
for the frequency (hourly output) and 240000
for the duration. This means you'll get 1 file per day with 24 time slices.
Give that a try. Hopefully I don't have any syntax errors in there.
Also, I update this page: https://gchp.readthedocs.io/en/latest/supplement/config-files/HISTORY.html on Friday. If you haven't read the updated version of it, it might be a useful reference.
Let me know how that goes.
Hi @cbutenhoff, regarding the issue of your output file grid size not matching your run grid size, that is indeed bizarre. The log file consistently indicates C24 throughout. I did a test with a dev version of 13.2, but that uses the same MAPL as 13.1.2, where I simply added levels: 1
to a couple collections (Emissions and SpeciesConc) and ran at C24. The output file had Xdim and Ydim values of 24.
Could you try a rerun with a clean run directory to see if you still see this behavior? I'm wondering if maybe you had some old C48 run files hanging around.
Thanks a lot for your help. I used Liam's file and that now works.
You might be right about having old C48 files lying around since I used the same directory for the C24 runs. Do you still want me to run using a clean directory to further diagnose the problem?
No need to further diagnose the grid size problem if you think looking at an old file was a possibility. Just let us know if you see the same thing again. I'll close out this issue now.
I'm clearly not setting some configuration correctly because the changes I make in my HISTORY.rc are not being reflected in the output netcdf files. In particular, when setting the level and fields in both the Emissions and SpecConc collections like this:
data are still written out at all levels and species:
It's also odd that XDIM and YDIM are 48 even though I am running C24 resolutions. Also the global attribute gridspec_file = "C48_gridspec.nc4", when I would expect "C24_gridspec.nc4".
The log file indicates the changes I made to HISTORY.rc are being read in
and the contents of Emissions.rcx in my run directory also indicate this:
An additional unrelated issue with HISTORY.rc is when I set the grid_label in HISTORY.rc:
the job fails with these errors, whether I specify the grid_label name in quotes or not:
GCHP v13.1.2 HISTORY.rc.txt runlog: gchp_5456132.out.txt runConfig.sh.txt