This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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