how to produce ascii and netcdf results simultaneously?

For questions about setting up the basic hydrodynamics. Bathymetry inclusion, tidal boundary conditions, river inclusion and so on..

Moderator: Saheedpp

Post Reply
Sou
Posts: 51
Joined: Wed Sep 03, 2014 7:46 pm
Full name: Soudeh Afsharian

how to produce ascii and netcdf results simultaneously?

Post by Sou »

Hi all,
Is there anyway to ask the model to produce 'A' and 'N' output formats in one run? seems we can't....
Regards,
Sue
Katrijn
Posts: 87
Joined: Fri Nov 29, 2013 3:04 pm
Full name: Katrijn Baetens

Re: how to produce ascii and netcdf results simultaneously?

Post by Katrijn »

Hi Sue,

You will have to create two sets of output data for that. One in ascii and one in netcdf.

Your code van look something like this (off course, adjust it to your own situation)
In Usrdef_Model.f90:
nosetstsr = 2
novarstsr = 6

in Usrdef_Time_Series.f90:


tsrvars%ivarid = (/iarr_zeta,iarr_temp,iarr_uvel,iarr_vvel,iarr_sal,&
& iarr_wphys/)
tsrvars%nrank = (/2,3,3,3,3,3/)

ivarstsr(1:2,:) = (/1,2,3,4,5,6/)
tsr2d(1:2)%defined = .TRUE.
tsr3d(1:2)%defined = .TRUE.

tsrgpars(1:2)%tlims = (/0,nstep,1/)
Sou
Posts: 51
Joined: Wed Sep 03, 2014 7:46 pm
Full name: Soudeh Afsharian

Re: how to produce ascii and netcdf results simultaneously?

Post by Sou »

Dear Katrijin,
Didn't you miss something like : tsr2d(2)%form = 'A' and tsr2d(2)%form = 'N'? or we don't need it in version 2.7...?
Thank you,
Sue
Katrijn
Posts: 87
Joined: Fri Nov 29, 2013 3:04 pm
Full name: Katrijn Baetens

Re: how to produce ascii and netcdf results simultaneously?

Post by Katrijn »

Yes, I forgot to add that, oops. But you're addition is good. Thanks! Did it work out well?
Post Reply