thoar
New Member
I am creating (vector) history files with variables on a different timescale than those in the restart. Some of the variables are transposed between the two, which complicates the logic of my programming. There is a 'switchdim_flag' on the restart variables to help with the interpretation - I get it. I have searched the documentation and have not been able to find a namelist variable to control how the variables are written out. This seems to be restricted to variables with multiple levels. Historically, the level dimension varied fastest in the restart files, the vector-format history files have the column varying fastest. I do not want to change the order of the restart files - that seems like trouble - but changing the order of the history file variables might be possible. Any help?
For example, in a restart file (as output by 'ncdump):
And in the vector-format history file:
For example, in a restart file (as output by 'ncdump):
Code:
double litr1n_vr(column, levgrnd) ;
litr1n_vr:long_name = "" ;
litr1n_vr:units = "" ;
litr1n_vr:interpinic_flag = 1 ;
litr1n_vr:interpinic_flag_meanings = "1=nearest neighbor, 2=copy directly, 3=skip, 4=area" ;
litr1n_vr:varnames_on_old_files = "litr1n_vr" ;
litr1n_vr:switchdim_flag = 1 ;
litr1n_vr:switchdim_flag_values = 0, 1 ;
litr1n_vr:switchdim_flag_is_0 = "1st and 2nd dims are same as model representation" ;
litr1n_vr:switchdim_flag_is_1 = "1st and 2nd dims are switched from model representation" ;
litr1n_vr:_FillValue = 1.e+36 ;
litr1n_vr:missing_value = 1.e+36 ;
And in the vector-format history file:
Code:
float LITR1N_vr(time, levdcmp, column) ;
LITR1N_vr:long_name = "LITR1 N (vertically resolved)" ;
LITR1N_vr:units = "gN/m^3" ;
LITR1N_vr:cell_methods = "time: mean" ;
LITR1N_vr:_FillValue = 1.e+36f ;
LITR1N_vr:missing_value = 1.e+36f ;