Re: Cannot read a normal ascii data file?

From: Rick Grubin <grubin_at_nyahnyahspammersnyahnyah>
Date: Mon, 11 Jun 2007 15:42:18 -0600

Hi Yi,

> Attached is a regular ascii file. I cannot read it with asciiread.
>
> I got this message:
>
> NCAR Command Language Version 4.2.0.a034
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> (0) READING ASCII FILEs
> fatal:An internal error has occurred. The file format requested
> does not
> appear to be supported, could not open (snd20001207.dat)
> fatal:Argument type mismatch on argument (0) of (asciiread) can not
> coerce"
>
> What is wrong? My data? Asciiread? NCL version? Other issues, such
> as dividing spaces?

I downloaded your file, and using the following NCL code:

ncl 0> z = asciiread("snd20001207.dat", (/1033, 6/), "float")

I was able to successfully read your file into the variable 'z'

ncl 1> print(z)
Variable: z
Type: float
Total Size: 24792 bytes
             6198 values
Number of Dimensions: 2
Dimensions and sizes: [1033] x [6]
Coordinates:
Number Of Attributes: 1
   _FillValue : -999
(0,0) 21000
(0,1) 45.8
(0,2) 215.2
(0,3) 0.00434958
(0,4) 1.48265
(0,5) 2.06844
[...]

If this doesn't help, please post a simplified version of your NCL
code and we'll take a look.

-Rick.
----
Rick Grubin NCAR/TDD/CISL/VETS
Visualization + Enabling Technologies
grubin_at_ucar.edu 303.497.1832

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jun 11 2007 - 15:42:18 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 14 2007 - 09:39:54 MDT