Multiple NetCDF files input problem

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
zhang_1988
Posts: 5
Joined: Mon Oct 20, 2014 6:26 pm
Location: institute of oceanology,chinese academy of science

Multiple NetCDF files input problem

#1 Unread post by zhang_1988 »

i get a problem with Multiple NetCDF files input:

here is my setting up in my **.in file
!**************************************************************************
NFFILES == 3 ! number of unique forcing files

FRCNAME == frc_3mouth.nc \ ! forcing file 1, grid 1
shflux.nc \
swflux.nc

the output is as follow
!***************************************************************************
Output/Input Files:

Output Restart File: ocean_rst.nc
Prefix for History Files: ocean_his
Prefix for Averages Files: ocean_avg
Prefix for Diagnostics Files: ocean_dia
Input Grid File: test_one.nc
Input Nonlinear Initial File: ini_1.8_30.nc
Input Forcing File 01: frc_3mouth.nc
Input Forcing File 02: shflux.nc

READ_PHYPAR - could not find input file: swflux.nc
!****************************************************************************
i am sure that all the input filenames are correct. and when i change the order of swflux.nc and shflux.nc
it happened to the output like below


!**************************************************************************
NFFILES == 3 ! number of unique forcing files

FRCNAME == frc_3mouth.nc \ ! forcing file 1, grid 1
swflux.nc \
shflux.nc
!***************************************************************************
Output/Input Files:

Output Restart File: ocean_rst.nc
Prefix for History Files: ocean_his
Prefix for Averages Files: ocean_avg
Prefix for Diagnostics Files: ocean_dia
Input Grid File: test_one.nc
Input Nonlinear Initial File: ini_1.8_30.nc
Input Forcing File 01: frc_3mouth.nc
Input Forcing File 02: swflux.nc

READ_PHYPAR - could not find input file: shflux.nc
!****************************************************************************

i am confused about that
Looking forward of somebody to helping me

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

Re: Multiple NetCDF files input problem

#2 Unread post by jcwarner »

not sure but maybe you could try it without the comments.
also make sure there are no tabs anywhere in your input file.

FRCNAME == frc_3mouth.nc \
shflux.nc \
swflux.nc

zhang_1988
Posts: 5
Joined: Mon Oct 20, 2014 6:26 pm
Location: institute of oceanology,chinese academy of science

Re: Multiple NetCDF files input problem

#3 Unread post by zhang_1988 »

jcwarner wrote:not sure but maybe you could try it without the comments.
also make sure there are no tabs anywhere in your input file.

FRCNAME == frc_3mouth.nc \
shflux.nc \
swflux.nc


I really appreciate your help , it work as i delete the comments . thanks a lot

barack99
Posts: 17
Joined: Thu Aug 31, 2017 4:33 pm

Re: Multiple NetCDF files input problem

#4 Unread post by barack99 »

Hi,

Could anyone suggest why ROMS only read 8 out of 9 files?

NFFILES == 9
FRCNAME == out55866.nc \
cloud_era.nc \
Pair_era.nc \
rain_era.nc \
sms_era.nc \
Tair_era.nc \
wind_era.nc \
shflux_era.nc \
swflux_era.nc
....................................................

then I got error here:


Input Nonlinear Initial File: initial_conditions.nc
Input Forcing File 01: out55866.nc
Input Forcing File 02: cloud_era.nc
Input Forcing File 03: Pair_era.nc
Input Forcing File 04: rain_era.nc
Input Forcing File 05: sms_era.nc
Input Forcing File 06: Tair_era.nc
Input Forcing File 07: wind_era.nc
Input Forcing File 08: shflux_era.nc

READ_PHYPAR - could not find input file:
Elapsed CPU time (seconds):

Many thanks
Barack

Post Reply