unable to find variable: sand in input NetCDF

Sediment modeling collaborators: issues, applications, information exchange

Moderators: arango, robertson, rsignell

Post Reply
Message
Author
IMRAN5379
Posts: 12
Joined: Fri Sep 08, 2017 11:59 pm
Location: Indian Institute of Technology Kharagpur

unable to find variable: sand in input NetCDF

#1 Post by IMRAN5379 » Thu May 09, 2019 9:24 am

Hi
I am a new user of ROMS, working on sediment transport modelling in Odisha coast of Northern Bay of Bengal. I have made all the initial file including grid, forcing, bulk, clim, boundary files. when I am running the model by giving command ./roms roms.in I am getting the error in roms_ini.nc file. my query is about to provide user defined values for sand,silt,bed_thick,bed_poros,bed_frac_sand,bed_frac_silt.
GET_INITIAL - unable to find variable: sand
in input NetCDF file: ROMS_FILES/roms_ini.nc -> analytical value

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

Re: unable to find variable: sand in input NetCDF

#2 Post by jcwarner » Wed May 15, 2019 1:08 pm

have you been able to work on this?
If you activate SEDIMENT, then the model needs some initial fields of bed thickness, porosity, etc.
you can provide this information in ANA_SEDIMENT, or you need to include that information in the roms init nc file. we have some m files to create roms init with sediment if you would like.

IMRAN5379
Posts: 12
Joined: Fri Sep 08, 2017 11:59 pm
Location: Indian Institute of Technology Kharagpur

Re: unable to find variable: sand in input NetCDF

#3 Post by IMRAN5379 » Thu May 16, 2019 6:17 am

Thank you so much for your vital response, I am new in sediment transport modelling using ROMS.

IMRAN5379
Posts: 12
Joined: Fri Sep 08, 2017 11:59 pm
Location: Indian Institute of Technology Kharagpur

Re: unable to find variable: sand in input NetCDF

#4 Post by IMRAN5379 » Thu Nov 07, 2019 1:42 pm

After adding the required variables in roms_ini.nc (ie. sand, silt, bed_thick, bed_poros..........etc) I am getting this error.

Maximum grid stiffness ratios: rx0 =0.2368669301 rx1 = 2.3216424860

GET_INITIAL -- Processing data for time = 0.000 record = 1

NF_FREAD ERROR: nf_get_vara netCDF error code = -57

GET_INITIAL - error while reading variable: bed_thick at time record = 1
in input NetCDF file: ROMS_FILES/roms_ini.nc


MAIN - number of records written into history file(s): 0
number of records written into restart file(s): 0
number of records written into averages file(s): 0


ERROR: Abnormal termination: netCDF INPUT

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

Re: unable to find variable: sand in input NetCDF

#5 Post by jcwarner » Thu Nov 07, 2019 1:56 pm

not sure. if you ncview the ini file, does bed thick look ok? do you have bed_thick defined with the correct dimensions
bed_thickness(1:xi_rho,1:eta_rho,1:Nbed,1:length(init_time))
-j

IMRAN5379
Posts: 12
Joined: Fri Sep 08, 2017 11:59 pm
Location: Indian Institute of Technology Kharagpur

Re: unable to find variable: sand in input NetCDF

#6 Post by IMRAN5379 » Fri Nov 08, 2019 6:28 am

thank you sir for your valuable and quick response.
I checked the dimension of bed_thick which is ok but did not chek the NLAY = 2 (default in the model package) in param.h. I have defined Nbed=1 in nc file and I changed it to NLAY=1 in param.h file, after that the model is running properly.

Post Reply