Re: Problem in reading ascii file

From: Wei Huang <huangwei_at_nyahnyahspammersnyahnyah>
Date: Thu Apr 26 2012 - 10:55:27 MDT

Soumik,

try:

 var = asciiread("eape_fall_raw_ens11986.txt", (/128, 256/), "float")

 printVarSummary(var)

Wei

huangwei@ucar.edu
VETS/CISL
National Center for Atmospheric Research
P.O. Box 3000 (1850 Table Mesa Dr.)
Boulder, CO 80307-3000 USA
(303) 497-8924

On Apr 26, 2012, at 10:45 AM, Soumik Basu wrote:

> Hi,
>
> I am trying to read my data from a simple ascii file of dimension 128x256. But somehow I am getting the warning that my data is missing. I am sure that there is no missing values in the file it's just somehow NCL is skipping some values while reading. I used the format statement 256f11.5 to create the ascii file. I am attaching two sample ascii file that I am trying to read. Can anybody please help me pointing out where is it going wrong.
>
> Thanks,
>
> --
> "Numbing the pain for a while will make it worse when you finally feel it.
> ~J.K. Rowling"
> *****************************************
> Soumik Basu
> Graduate Student, Research Assistant
> International Arctic Research Center
> University of Alaska Fairbanks
> Fairbanks,Alaska,USA
> *****************************************<eape_fall_raw_ens11986.txt><eape_fall_raw_ens12003.txt>_______________________________________________
> 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 Apr 26 10:55:35 2012

This archive was generated by hypermail 2.1.8 : Mon Apr 30 2012 - 09:21:12 MDT