question follows after splitting bry and wind force file

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
xwbin
Posts: 20
Joined: Tue Aug 19, 2014 4:35 pm
Location: xiamen university

question follows after splitting bry and wind force file

#1 Unread post by xwbin »

Dear all

My bry file and wind force file are larger than 2G,so I split them according time records.
I split bry file into 2 nc files and wind forcing file into 4 nc files.

I do not know why the model couldn't read the 'scs_bry2.nc'.
When I check the output.dat ,I also could not find 'scs_bry2.nc' 'wind_frc2.nc' 'wind_frc3.nc' 'wind_frc4.nc' in input files.
Is there something I missing?
You can see detals in the attachments which is about the .in file and ouput.nc file.

Plese guide me to the answer.Any comments or suggestions are really helpful to me.
Thank you!
Attachments
windfile.png
inputfile.png
inputfile.png (10.73 KiB) Viewed 6960 times
bryfile2.png
bryfile2.png (8.71 KiB) Viewed 6960 times
bryfile.png

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

Re: question follows after splitting bry and wind force file

#2 Unread post by jcwarner »

there was just a recent update for this. is your code up to date?

flcastej
Posts: 68
Joined: Tue Nov 10, 2009 6:42 pm
Location: Technical University of Cartagena,Murcia, Spain

Re: question follows after splitting bry and wind force file

#3 Unread post by flcastej »

Dear all,

I am obtaining the same error as xwbin. I am trying to run a simulation forced with wind, tides and a sea level imposed at the boundaries. If I force the model only with tides and wind, it run without problems, but when I add the bry file, it give me the error:

CHECK_MULTIFILE - Error while processing Lateral Boundary multi-files:
data does not include initialization time = ***** 00:00:00

***** 00:00:00 ***** 00:00:00 INPUT/mysimulation_bry.nc

CHECK_MULTIFILE - Error while checking input Lateral Boundary file:
INPUT/mysimulation_bry.nc
last data time record available is for day: ***** 00:00:00
but data is needed to finish run until day: ***** 00:00:00


I have tried to use different name for the time variable in my boundary file: ocean_time,bry_time, time, ... without results. I have been reviewing the check_multifle.F file but it hasn´t help me and the code has been updated to the last version using svn, but I get the same error.

Below you will find my configuration files:

mysimulation.in

! Input NetCDF file names, [1:Ngrids].

GRDNAME == INPUT/mysimulation_grd.nc
ININAME == INPUT/mysimulation_ini.nc
# ITLNAME == ocean_itl.nc
# IRPNAME == ocean_irp.nc
# IADNAME == ocean_iad.nc
# CLMNAME == ocean_clm.nc
BRYNAME == INPUT/mysimulation_bry.nc
# FWDNAME == ocean_fwd.nc
# ADSNAME == ocean_ads.nc


NFFILES == 2 ! number of forcing file

FRCNAME == INPUT/mysimulation_tide.nc \
INPUT/mysimulation_frz.nc


mysimulation.h

#undef STATIONS
#undef FLOATS
#undef DIAGNOSTICS_UV
#define MASKING
#define SOLVE3D

#define UV_ADV
#define UV_COR
#define UV_VIS2
#define UV_QDRAG
#define DJ_GRADPS

#define CURVGRID
#define MIX_S_UV

#define TS_U3HADVECTION
#define TS_C4VADVECTION
#define SALINITY
#define NONLIN_EOS


#define ANA_BTFLUX
#define ANA_BSFLUX

#define SSH_TIDES
#define UV_TIDES
#define ADD_FSOBC
#define ADD_M2OBC


mysimulatin_bry.nc


netcdf mysimulation_bry {
dimensions:
xi_rho = 500 ;
xi_u = 499 ;
xi_v = 500 ;
xi_psi = 499 ;
eta_rho = 350 ;
eta_u = 350 ;
eta_v = 349 ;
eta_psi = 349 ;
s_rho = 10 ;
ocean_time = 2 ;
variables:
double ocean_time(ocean_time) ;
ocean_time:long_name = "open boundary conditions time" ;
ocean_time:units = "second since 0001-01-01 00:00:00" ;
ocean_time:field = "ocean_time, scalar, series" ;
float zeta_west(ocean_time, eta_rho) ;
zeta_west:long_name = "free-surface western boundary condition" ;
zeta_west:units = "meter" ;
zeta_west:field = "zeta_west, scalar, series" ;
zeta_west:time = "ocean_time" ;
float zeta_east(ocean_time, eta_rho) ;
zeta_east:long_name = "free-surface eastern boundary condition" ;
zeta_east:units = "meter" ;
zeta_east:field = "zeta_east, scalar, series" ;
zeta_east:time = "ocean_time" ;
float zeta_south(ocean_time, xi_rho) ;
zeta_south:long_name = "free-surface southern boundary condition" ;
zeta_south:units = "meter" ;
zeta_south:field = "zeta_south, scalar, series" ;
zeta_south:time = "ocean_time" ;
float zeta_north(ocean_time, xi_rho) ;
zeta_north:long_name = "free-surface northern boundary condition" ;
zeta_north:units = "meter" ;
zeta_north:field = "zeta_north, scalar, series" ;
zeta_north:time = "ocean_time" ;
float ubar_west(ocean_time, eta_rho) ;
ubar_west:long_name = "2D u-momentum western boundary condition" ;
ubar_west:units = "meter second-1" ;
ubar_west:field = "ubar_west, scalar, series" ;
ubar_west:time = "ocean_time" ;
float ubar_east(ocean_time, eta_rho) ;
ubar_east:long_name = "2D u-momentum eastern boundary condition" ;
ubar_east:units = "meter second-1" ;
ubar_east:field = "ubar_east, scalar, series" ;
ubar_east:time = "ocean_time" ;
float ubar_south(ocean_time, xi_rho) ;
ubar_south:long_name = "2D u-momentum southern boundary condition" ;
ubar_south:units = "meter second-1" ;
ubar_south:field = "ubar_south, scalar, series" ;
ubar_south:time = "ocean_time" ;
float ubar_north(ocean_time, xi_rho) ;
ubar_north:long_name = "2D u-momentum northern boundary condition" ;
ubar_north:units = "meter second-1" ;
ubar_north:field = "ubar_north, scalar, series" ;
ubar_north:time = "ocean_time" ;
float vbar_west(ocean_time, eta_rho) ;
vbar_west:long_name = "2D v-momentum western boundary condition" ;
vbar_west:units = "meter second-1" ;
vbar_west:field = "vbar_west, scalar, series" ;
vbar_west:time = "ocean_time" ;
float vbar_east(ocean_time, eta_rho) ;
vbar_east:long_name = "2D v-momentum eastern boundary condition" ;
vbar_east:units = "meter second-1" ;
vbar_east:field = "vbar_east, scalar, series" ;
vbar_east:time = "ocean_time" ;
float vbar_south(ocean_time, xi_rho) ;
vbar_south:long_name = "2D v-momentum southern boundary condition" ;
vbar_south:units = "meter second-1" ;
vbar_south:field = "vbar_south, scalar, series" ;
vbar_south:time = "ocean_time" ;
float vbar_north(ocean_time, xi_rho) ;
vbar_north:long_name = "2D v-momentum northern boundary condition" ;
vbar_north:units = "meter second-1" ;
vbar_north:field = "vbar_north, scalar, series" ;
vbar_north:time = "ocean_time" ;
}


Any comment or suggestion will be really welcome. :)

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

Re: question follows after splitting bry and wind force file

#4 Unread post by jcwarner »

does "data include initialization time = ***** 00:00:00"?
what are the actual values of ocean_time in your mysimulatin_bry.nc

flcastej
Posts: 68
Joined: Tue Nov 10, 2009 6:42 pm
Location: Technical University of Cartagena,Murcia, Spain

Re: question follows after splitting bry and wind force file

#5 Unread post by flcastej »

Dear John,

Thanks a lot for your help, this error is the same that I obtained running the model force with tides. In that case the error was fixed adding to my *.h file:

#define ANA_FSOBC
#define ANA_M2OBC

I have been reviewing the time variable for all my files and I have some doubt about it. I am going to open a new topic to ask them. Once I have it cleared I will answer your question about times.

Thanks a lot.

flcastej
Posts: 68
Joined: Tue Nov 10, 2009 6:42 pm
Location: Technical University of Cartagena,Murcia, Spain

Re: question follows after splitting bry and wind force file

#6 Unread post by flcastej »

Dear all,

I have been reviewing my boundary forcing file and I realized that I set the time reversed (the end time was the start time) and the my simulation runs longer than my boundary file. Once I fixed it, my model runs without problems.

xwbin
Posts: 20
Joined: Tue Aug 19, 2014 4:35 pm
Location: xiamen university

Re: question follows after splitting bry and wind force file

#7 Unread post by xwbin »

Dear all
After checking your answers,I still could not solve my problem,why the model did not read the bry2.nc and frc2.nc.Is the update really helpful for my question and where can I get the update?
Thanks for your guys' help!

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

Re: question follows after splitting bry and wind force file

#8 Unread post by kate »

ROMS is quite picky about the format of the file. Do you have tabs in the ocean.in? I suggest getting rid of the comment on the line of your first forcing file too. ROMS will ignore comments where the "!" is at the start of the line.

xwbin
Posts: 20
Joined: Tue Aug 19, 2014 4:35 pm
Location: xiamen university

Re: question follows after splitting bry and wind force file

#9 Unread post by xwbin »

kate wrote:ROMS is quite picky about the format of the file. Do you have tabs in the ocean.in? I suggest getting rid of the comment on the line of your first forcing file too. ROMS will ignore comments where the "!" is at the start of the line.
Thanks for your help,there are no tabs or any comments as attachments showing.I only modify .in file,are there any other files i need to modify?
Attachments
frc.png
frc.png (10.23 KiB) Viewed 6782 times
bry.png
bry.png (12.92 KiB) Viewed 6782 times

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

Re: question follows after splitting bry and wind force file

#10 Unread post by kate »

Not unless you have a stations file or something. Did you try it? What happened?

xwbin
Posts: 20
Joined: Tue Aug 19, 2014 4:35 pm
Location: xiamen university

Re: question follows after splitting bry and wind force file

#11 Unread post by xwbin »

kate wrote:Not unless you have a stations file or something. Did you try it? What happened?
Hi Kate,
Really thank you for your patience!I find the answer with your help.You remind me that the format is important.It works after I checking the bryname format as well as frcnameformat and deleting a blank line as the attachments showing.
Attachments
after deleting
after deleting
bryfixed.png (4.05 KiB) Viewed 6763 times
before deleting
before deleting
bry.png (12.92 KiB) Viewed 6763 times

pjvidya
Posts: 4
Joined: Mon Aug 03, 2015 10:39 pm
Location: CSIR-National Institute of Oceanography

Re: question follows after splitting bry and wind force file

#12 Unread post by pjvidya »

Did you solve the problem?
I'm facing the same.
Kindly help

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

Re: question follows after splitting bry and wind force file

#13 Unread post by kate »

Was it a space or a tab that caused problems? I'd get rid of any tabs if you have them.

Post Reply