[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

appending grids to a pre-existing netcdf file



Hi- I'm having problems appending new grids to an existing netcdf file.
The grids get appended correctly but the values for the time dimension
are not added correctly.  The only way i've been able to get around it
is to recompute the time values for the previous grids.  Now I'm writing
code that won't know those values so i can't do it this way.

The way i'm trying to do i now (but failing) is as follows:
when i create my file, I calculate xtimval(1) and set ltstart(1)=1

      call ncvpt(ncid,itimdim,ltstart,lc ,xtimval(1),iret)            

when I try to append one grid to the file, I set ltstart(1)=2
and lc(1)=1 and put the 2nd timevalue into xtimval(1).  This results
in the first time value being correct but the second one being
infinity (I have checked xtimval(1) and it is not infinity when I call
ncvpt).

I imagine I am misunderstanding how the count and start arrays work
in this case though I did ask someone else more familiar with netcdf
than me and he didn't know how to solve the problem.

I can be reasched at address@hidden
or 492-3840

>From address@hidden Thu Feb 24 09:40:03 1994
Hi again- 
There's nothing like asking someone else about your code to make finding the 
errors
possible.  Anyway, I found that the method I had for appending time series was
fine and that I had an incorrect variable id.  At least I know how to do
this in the future.

Cathy Smith

thanks
Cathy Smith