ROMS average files are named like ocean_avg_****.nc

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
yaozhixiong
Posts: 3
Joined: Wed Jun 19, 2019 3:31 pm
Location: second institude oceanography

ROMS average files are named like ocean_avg_****.nc

#1 Unread post by yaozhixiong »

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.

jcwarner
Posts: 1188
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: ROMS average files are named like ocean_avg_****.nc

#2 Unread post by jcwarner »

the newest code version should have 5 digits there.

yaozhixiong
Posts: 3
Joined: Wed Jun 19, 2019 3:31 pm
Location: second institude oceanography

Re: ROMS average files are named like ocean_avg_****.nc

#3 Unread post by yaozhixiong »

jcwarner wrote: Fri Jun 07, 2024 5:28 pm the newest code version should have 5 digits there.
Thank you. I will attempt to use the latest version.

Post Reply