Re: Changing the time units attribute

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 30 2013 - 12:26:36 MDT

Hi Marston,
I don't understand your comment. It doesn't matter how many elements a variable in NCL contains you can always add attributes to it:

ncl 0> time = fspan(0,17517,5840)
ncl 1> time@units = "days since 1995-01-01 00:00:0.0"
ncl 2> printVarSummary(time)

Variable: time
Type: float
Total Size: 23360 bytes
            5840 values
Number of Dimensions: 1
Dimensions and sizes: [5840]
Coordinates:
Number Of Attributes: 1
  units : days since 1995-01-01 00:00:0.0

Isn't this what you want to do?

 -dave

On Apr 30, 2013, at 10:41 AM, Marston Johnston <shejo284@gmail.com> wrote:

> Hi,
> I want to change the time attributes in my NETCDF file in a manner similar to this:
> time = (/3356, 3356.083, 3356.333, 3356.917, 3357.042, 3358.208/)
> time@units = "days since 1995-01-01 00:00:0.0",
> only I would like to use fspan(0,17517,5840).
> The problem is that I cannot add the attributes. It is not possible to use the "@" with an array created using fspan since I have 5840 time steps.
> How can I do this in ncl?
> /Marston
>
>
> --
> Only the fruitful thing is true!
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 30 12:26:48 2013

This archive was generated by hypermail 2.1.8 : Thu May 02 2013 - 11:16:45 MDT