Re: asciiread

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 10 2011 - 14:32:16 MST

Hi Carl,

This is indeed quirky, and I would go so far to call it a bug. However we'd probably have to give it some thought as to whether fixing this would cause more problems.

This is not an issue specific to 6.0.0-beta. I verified the same problem happens under 5.2.1.

I made a ticket for this (NCL-1044), and for the short-term will be sure to mention it in various documents.

Thanks for pointing it out!

--Mary

On Mar 10, 2011, at 12:21 PM, Carl Schreck wrote:

> I just noticed a slight quirk with asciiread. I don't think this is new to v6, but I just noticed because of the new _FillValues.
>
> If you specify the dimensions that you're reading, e.g.:
>
> z1 = asciiread("data.asc",(/5,3/),"float")
> z2 = asciiread("data.asc",(/4,2/),"float")
>
> then it attaches the _FillValue automatically. But if you don't specify the dimensions:
>
> z3 = asciiread("data.asc",-1,"float")
>
> then it doesn't attach a _FillValue. Very minor inconvenience to manually attach it, but maybe it'd be easy to fix--or at least to document.
>
> Cheers,
> Carl
>
> --
> Carl J. Schreck III, PhD
> Postdoctoral Research Associate
> Cooperative Institute for Climate and Satellites (CICS-NC)
> NOAA's National Climatic Data Center
> 151 Patton Avenue
> Asheville, NC 28801
> Tel: 828-257-3140
> carl.schreck@noaa.gov
> http://www.atmos.albany.edu/student/carl/
> _______________________________________________
> 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 Thu Mar 10 14:32:21 2011

This archive was generated by hypermail 2.1.8 : Thu Mar 10 2011 - 21:44:37 MST