How to setup the variable names of input Forcing files ?

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
tara
Posts: 26
Joined: Mon Aug 11, 2014 5:05 pm
Location: Indian Institute of Technology

How to setup the variable names of input Forcing files ?

#1 Unread post by tara »

Hello ROMS Community,

Can anyone tell how ROMS model is reading the input variables from the forcing files?
I am providing observed forcing files to the model and I want to know whether these files and their variable names are need to be defined in any place of model?

NFFILES == 9
FRCNAME == roms_frc.nc \
vwind.nc \
uwind.nc \
surface_pres.nc \
specific_hum.nc \
shortwave.nc \
precip.nc \
longwave.nc \
airtemp.nc

How these files are recognised and thier variables are read by the model?
For example, surface_pres.nc has "spressure" variable name.

then how this spressure variable is assigned to model's pressure variable?

Regards
Tara

User avatar
kate
Posts: 4089
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: How to setup the variable names of input Forcing files ?

#2 Unread post by kate »

ROMS does the mapping between your Netcdf variable names and its fields through the varinfo.dat file. The default name for surface air pressure is Pair, so you should search for that in the varinfo file and change it for your needs. ROMS uses the tag idPair - please don't change that.

tara
Posts: 26
Joined: Mon Aug 11, 2014 5:05 pm
Location: Indian Institute of Technology

Re: How to setup the variable names of input Forcing files ?

#3 Unread post by tara »

Dear Kate,

Thanks for the kind information and sorry for the late reply. But one more doubt I have regarding the name of the addition forcing files and I want to know whether I can keep any name of files or it should be decided by some specific rule to set the name of forcing files. If I am setting my own name (eg. surface_pres.nc,specific_hum.nc, precip.nc etc.) of a forcing file then how the model will recognize or take information of variable from those forcing files and whether it is needed to define the name and variables of files in program or file in the model.


With Regards-
Tara

User avatar
kate
Posts: 4089
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: How to setup the variable names of input Forcing files ?

#4 Unread post by kate »

You can name the files anything you like. Just list the names in the ocean.in file. ROMS doesn't pay any more attention to the file name than knowing which file to open. It can query the files for the names of the NetCDF variables within them.

tara
Posts: 26
Joined: Mon Aug 11, 2014 5:05 pm
Location: Indian Institute of Technology

Re: How to setup the variable names of input Forcing files ?

#5 Unread post by tara »

Dear Kate,

I am very thankful for your quick and useful suggestions.

Post Reply