Hi,
Originally, the naming convention for ROMS average files always included four digits, such as ocean_avg_0001.nc. However, when the number of output files exceeds 9999, the average files should have five digits in their filenames. I anticipated the filenames to be like ocean_avg_10001.nc, but instead, they appear as ocean_avg_****.nc, where **** represents unknown characters.
To address this issue, I attempted to modify the code in the ROMS/Nonlinear/output.F file.
original:
IF (Master) THEN
WRITE (AVG(ng)%name,20) TRIM(AVG(ng)%base), ifile
20 FORMAT (a,'_',i4.4,'.nc')
END IF
new:
IF (Master) THEN
WRITE (AVG(ng)%name,20) TRIM(AVG(ng)%base), ifile
20 FORMAT (a,'_',i5.5,'.nc')
END IF
But it seems that my modifications did not work, as the ROMS average files are still named like ocean_avg_****.nc.
Can anyone help me? Thanks a lot.
ROMS average files are named like ocean_avg_****.nc
-
- Posts: 3
- Joined: Wed Jun 19, 2019 3:31 pm
- Location: second institude oceanography
Re: ROMS average files are named like ocean_avg_****.nc
the newest code version should have 5 digits there.
-
- Posts: 3
- Joined: Wed Jun 19, 2019 3:31 pm
- Location: second institude oceanography