Page 1 of 1

how to produce ascii and netcdf results simultaneously?

Posted: Tue Nov 01, 2016 3:46 pm
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

Re: how to produce ascii and netcdf results simultaneously?

Posted: Wed Dec 07, 2016 10:27 am
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/)

Re: how to produce ascii and netcdf results simultaneously?

Posted: Fri Dec 16, 2016 12:58 am
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

Re: how to produce ascii and netcdf results simultaneously?

Posted: Fri Dec 16, 2016 8:26 am
by Katrijn
Yes, I forgot to add that, oops. But you're addition is good. Thanks! Did it work out well?