Re: Add variable in a NetCDF file. Variable POSITION

Thank you Philippe for the answer and the hint.

I tried all the options i have, and I am starting to think that it is not the 
time that is affecting the CDO merge option, but some other variables in my 
GISS files, because even by changing the date position by running the *.c 
generated code (coming from "ncgen file > file.c") I still obatin a merged 
file that has all the variables, but the time is not there anymore.

In case anyone else had the same problem using CDO mergetime, please, let me 
know!

Regards and thanks

simone

On Tuesday 29 May 2007 17:01, Philippe Poilbarbe wrote:
> Simone Marras a écrit :
> > ...
> > Is there a way to control the position inside the file where the variable
> > value is added?
> > I need to put it in a certain position because when I use CDO to merge
> > several files, the output merged file does not have a date anymore.
> > ...
>
> No there is no way to control the position: they are in
> the order they have been created (with a little exception
> for 'record' vars).
> Anyway no program should take into account the position
> of the variable (in fact linked to the var Id) but only
> the names.
>
> For CDO (I don't know it except its name), it is a bit
> strange that a "generic" program throw away a variable
> due to its position.
> It may be related to some CDO options usage or the way
> it is working (I did have some problems like this
> with the NCO programs): check all options.
>
> To see if it is related to the position, you can try
> to export your NetCDF file with ncdump, then with a
> text editor move the variable (in the header only, it
> is sufficient) where your think it should be and then
> regenerate the file with ncgen. Rerun CDO with this
> new file and it is probable that you will have the
> same result (and normally it should be the same).
>
> If it is not the same result (except, maybe for
> variable positions if the resulting file), it may
> be a CDO bug.

-- 
Simone Marras, Ph.D. Student
BSC & Universitat Politecnica de Catalunya
Jordi Jirona 29
08034 Barcelona
Spain

==============================================================================
To unsubscribe netcdfgroup, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================


  • 2007 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: