Hello,
I am using CESM1.2.2 with CAM and a NO_LEAP calendar. I would like to configure the h2 history stream so that each NetCDF file contains all daily-average records for exactly one calendar month.
For example, I would like the output structure to be:
case.cam.h2.YYYY-01.nc 31 daily records
case.cam.h2.YYYY-02.nc 28 daily records
case.cam.h2.YYYY-03.nc 31 daily records
case.cam.h2.YYYY-04.nc 30 daily records
...
My current user_nl_cam configuration is similar to:
avgflag_pertape = 'A','I'
nhtfrq = 0,-24
mfilt = 1,30
fincl1 = 'FLDS','FLNS','FLNT','FLUT','FSDS','FSNS','FSNT','LHFLX','OMEGA','PRECC','PRECL','PSL','PS','RELHUM','Q','SHFLX', 'T','TMQ','TS','U','V','Z3'
fincl2 = 'FLDS','FLNS','FLNT','FLUT','FSDS','FSNS','FSNT','LHFLX','OMEGA','PRECC','PRECL','PSL','PS','RELHUM','Q','SHFLX', 'T','TMQ','TS','U','V','Z3'
The problem is that mfilt appears to control only the maximum number of time records in each file. If I set:
mfilt(2) = 30
the file boundaries gradually become misaligned with calendar months because months contain 28, 30, or 31 days. For example, a 30-record file may contain all of February plus the first few days of March.
This is a long simulation covering several decades, so manually changing mfilt every month is not practical. I would also prefer not to stop and restart the model every month solely to force CAM to close the h2 file.
Is there a CAM namelist option that can make an auxiliary history stream such as h2 close its current file automatically at the end of each calendar month, while retaining daily-average records within that file? In other words, is there an equivalent of calendar-month file segmentation for an auxiliary daily history stream, rather than segmentation by a fixed number of records?
Thank you.
I am using CESM1.2.2 with CAM and a NO_LEAP calendar. I would like to configure the h2 history stream so that each NetCDF file contains all daily-average records for exactly one calendar month.
For example, I would like the output structure to be:
case.cam.h2.YYYY-01.nc 31 daily records
case.cam.h2.YYYY-02.nc 28 daily records
case.cam.h2.YYYY-03.nc 31 daily records
case.cam.h2.YYYY-04.nc 30 daily records
...
My current user_nl_cam configuration is similar to:
avgflag_pertape = 'A','I'
nhtfrq = 0,-24
mfilt = 1,30
fincl1 = 'FLDS','FLNS','FLNT','FLUT','FSDS','FSNS','FSNT','LHFLX','OMEGA','PRECC','PRECL','PSL','PS','RELHUM','Q','SHFLX', 'T','TMQ','TS','U','V','Z3'
fincl2 = 'FLDS','FLNS','FLNT','FLUT','FSDS','FSNS','FSNT','LHFLX','OMEGA','PRECC','PRECL','PSL','PS','RELHUM','Q','SHFLX', 'T','TMQ','TS','U','V','Z3'
The problem is that mfilt appears to control only the maximum number of time records in each file. If I set:
mfilt(2) = 30
the file boundaries gradually become misaligned with calendar months because months contain 28, 30, or 31 days. For example, a 30-record file may contain all of February plus the first few days of March.
This is a long simulation covering several decades, so manually changing mfilt every month is not practical. I would also prefer not to stop and restart the model every month solely to force CAM to close the h2 file.
Is there a CAM namelist option that can make an auxiliary history stream such as h2 close its current file automatically at the end of each calendar month, while retaining daily-average records within that file? In other words, is there an equivalent of calendar-month file segmentation for an auxiliary daily history stream, rather than segmentation by a fixed number of records?
Thank you.