Re: creating netCDF file - time variable/dimension

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 19 2013 - 11:01:01 MST


[1] Maybe the netCDF operators would be useful

ncecat -O -u time

[2] Attached is a quick and dirty approach via NCL

Happy Holidays

On 12/19/13, 9:03 AM, Greg Thompson wrote:
> Hi all,
> With respect to creating one's own netCDF file using NCL, I am following the advice documented here:
> But, my problem is that I don't have an open existing file with a time variable. I have no idea what to do to "dummy-up" the "time" variable in an appropriate way to create a valid netCDF file. In the documentation, if there was an Example3 including what to do from an even lower level if you don't have a file to copy a bunch of attributes, then it would greatly help. I tried in my script to just set a scalar, integer variable by name time with value=1. Hah, should have known it wasn't that simple. However, if I just skip assigning any value to a variable with that name and skip the writing of this variable, I do get a "time" variable shown in ncview application with a 1.E20 value.
> THANKS!! for any advice others can offer.
> --Greg
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:

Received on Thu Dec 19 11:01:14 2013

This archive was generated by hypermail 2.1.8 : Mon Jan 06 2014 - 13:02:23 MST