Strange result for ocean_time variable in avg file. My parameters for output files:
Code: Select all
1440 ntimes Number of timesteps for 3-D equations.
60.000 dt Timestep size (s) for 3-D equations.
60 ndtfast Number of timesteps for 2-D equations between
each 3D timestep.
1 ERstr Starting ensemble/perturbation run number.
1 ERend Ending ensemble/perturbation run number.
-1 nrrec Number of restart records to read from disk.
T LcycleRST Switch to recycle time-records in restart file.
720 nRST Number of timesteps between the writing of data
into restart fields.
1 ninfo Number of timesteps between print of information
to standard output.
T ldefout Switch to create a new output NetCDF file(s).
120 nHIS Number of timesteps between the writing fields
into history file.
0 ntsAVG Starting timestep for the accumulation of output
time-averaged data.
60 nAVG Number of timesteps between the writing of
Code: Select all
0 55743 00:00:00 1.536418E-03 2.813502E+03 2.813503E+03 7.912394E+13
(165,320,20) 1.305355E-02 9.021873E-03 0.000000E+00 5.440225E-01
DEF_HIS - creating history file: data/out/2011/m07/01/casp_his_20110701.nc
WRT_HIS - wrote history fields (Index=1,1) into time record = 0000001
DEF_AVG - creating average file: data/out/2011/m07/01/casp_avg_20110701.nc
DEF_DIAGS - creating diagnostics file: data/out/2011/m07/01/casp_dia_20110701.nc
1 55743 00:01:00 1.539989E-03 2.819604E+03 2.819605E+03 7.895267E+13
………………………………………………………………………………………………..
60 55743 01:00:00 1.559580E-03 2.819596E+03 2.819597E+03 7.895267E+13
(028,125,20) 0.000000E+00 0.000000E+00 1.299111E+00 5.628528E-01
WRT_AVG - wrote averaged fields into time record = 0000001
61 55743 01:01:00 1.559583E-03 2.819596E+03 2.819597E+03 7.895267E+13
………………………………………………………………………………………………..
120 55743 02:00:00 1.562745E-03 2.819585E+03 2.819587E+03 7.895268E+13
(028,125,20) 0.000000E+00 0.000000E+00 1.297757E+00 6.247683E-01
WRT_HIS - wrote history fields (Index=1,1) into time record = 0000002
WRT_AVG - wrote averaged fields into time record = 0000002
121 55743 02:01:00 1.562846E-03 2.819585E+03 2.819587E+03 7.895268E+13
(028,125,20) 0.000000E+00 0.000000E+00 1.297735E+00 6.255495E-01
122 55743 02:02:00 1.562947E-03 2.819585E+03 2.819586E+03 7.895268E+13
Problem :ncdump –v ocean_time casp_avg_20110701 > ocean_time_avg.txt
netcdf casp_avg_20110701 {
dimensions:
xi_rho = 200 ;
xi_u = 199 ;
xi_v = 200 ;
xi_psi = 199 ;
eta_rho = 500 ;
eta_u = 500 ;
eta_v = 499 ;
eta_psi = 499 ;
s_rho = 20 ;
s_w = 21 ;
tracer = 2 ;
boundary = 4 ;
ocean_time = UNLIMITED ; // (24 currently)
…………………………………………………………………………………………..
double ocean_time(ocean_time) ;
ocean_time:long_name = "averaged time since initialization" ;
ocean_time:units = "seconds since 1968-05-23 00:00:00 GMT" ;
ocean_time:calendar = "gregorian" ;
ocean_time:field = "time, scalar, series" ;
…………………………………………………………………………………………….
data:
ocean_time = 4816200600, 4816207800, 4816215000, 4816222200, 4816229400,
4816236600, 4816243800, 4816251000, 4816258200, 4816265400, 4816272600,
4816279800, 4816287000, 4816294200, 4816301400, 4816308600, 4816315800,
4816323000, 4816330200, 4816337400, 4816344600, 4816351800, 4816359000,
4816366200 ;
ocean_time (n+1) - ocean_time (n) = 7200 (2 hours). Must be 3600 (1 hour)
For history file there isn't this problem
ocean_time (n+1) - ocean_time (n) = 7200 (2 hours). That is ok.ncdump –v ocean_time casp_his_20110701 > ocean_time_his.txt
netcdf casp_his_20110701 {
dimensions:
xi_rho = 200 ;
xi_u = 199 ;
xi_v = 200 ;
xi_psi = 199 ;
eta_rho = 500 ;
eta_u = 500 ;
eta_v = 499 ;
eta_psi = 499 ;
N = 20 ;
s_rho = 20 ;
s_w = 21 ;
tracer = 2 ;
boundary = 4 ;
ocean_time = UNLIMITED ; // (13 currently)
………………………………………………………………………………………………….
double ocean_time(ocean_time) ;
ocean_time:long_name = "time since initialization" ;
ocean_time:units = "seconds since 1968-05-23 00:00:00 GMT" ;
ocean_time:calendar = "gregorian" ;
ocean_time:field = "time, scalar, series" ;
…………………………………………………………………………………………………
data:
ocean_time = 4816195200, 4816202400, 4816209600, 4816216800, 4816224000,
4816231200, 4816238400, 4816245600, 4816252800, 4816260000, 4816267200,
4816274400, 4816281600 ;
May be it is due to new file set_avg.F recently modified. I can't catch this bug (if it is bug).
If it is not only my problem, can anybody help me with it?
Thanks.