Re: readAsciiTable

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Nov 24 2010 - 21:51:09 MST

Hi Mark,

THX. This looks like a bug.

It is off-by-one.

D

On 11/24/10 8:53 PM, mark collier wrote:
> Hi,
> I'm using readAsciiTable to read in a single column of numbers, and
> would like to skip the last 2 values.
>
> My input file has 4802 lines (numbers).
>
> When I do
>
> data=readAsciiTable(ifil,1,"float",(/0,2/))
>
> Variable: data
> Type: float
> Total Size: 19208 bytes
> 4802 values
> Number of Dimensions: 2
> Dimensions and sizes: [4802] x [1]
> Coordinates:
> Number Of Attributes: 1
> _FillValue : -999
>
> and
>
> data=readAsciiTable(ifil,1,"float",(/1,2/))
>
> Variable: data
> Type: float
> Total Size: 19196 bytes
> 4799 values
> Number of Dimensions: 2
> Dimensions and sizes: [4799] x [1]
> Coordinates:
> Number Of Attributes: 1
> _FillValue : -999
>
> sytkus/2010> ncl -V
> 5.2.0
> sytkus/2010> uname -a
> Linux cherax 2.6.16.60-0.42.10-default #1 SMP Tue Apr 27 05:11:27 UTC
> 2010 ia64 ia64 ia64 GNU/Linux
>
> 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 Wed Nov 24 21:51:14 2010

This archive was generated by hypermail 2.1.8 : Tue Nov 30 2010 - 08:26:08 MST