Re: a coordinate made up from an array of strings

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Jun 08 2010 - 05:49:07 MDT

Mark

By (Unidata/netCDF) definition, a coordinate array
must be a monotonically {in/de}creasing one-dimensional array.

D

On 6/8/10 1:30 AM, mark collier wrote:
> Hi,
> I'm wondering why I cannot write out a coordinate which is made up
> from an array of strings like in the following?
>
> load "/home/599/mac599/marsland/all_scripts.ncl"
>
> begin
>
> txtlabel = (/"bering_strait","denmark_strait","canadian_archipelago"/)
>
> time = (/1.0,2.0,3.0/)
>
> transports=new((/dimsizes(time),dimsizes(txtlabel)/),float)
>
> transports!0 = "time"
> transports!1 = "transport"
>
> transports&time = time
> transports&transport = txtlabel
>
> output = addfile("test_coo.nc","c")
> output->transports=transports
>
> end
>
> Regards,
> Mark.
> _______________________________________________
> 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 Jun 8 05:49:12 2010

This archive was generated by hypermail 2.1.8 : Fri Jun 11 2010 - 09:33:24 MDT