Re: read AERONET data

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 7 Aug 2007 15:57:52 -0600 (MDT)

Lin Su,

The problem here is that you are reading the file as a 400 x 45
array (400 rows by 45 columns), but your file is not quite this
simple.

For example, the first four rows do not have 45 columns, so you'll
need to skip these.

The other problem is that NCL's asciiread function doesn't
use the comma as a delimiter, but rather any non numeric character.

So, if you try to read the first four numbers from:

01:04:2001,03:04:17,91.127975,N/A

You are going to get 1 (from the "01"), 4, (from "04"), and "2001"
for the first three numbers, rather than (as what I think you were
expecting) 91.127975 for the third number.

I'll see if I can come up with an example for reading your ASCII file,
and I'll post it back here.

--Mary

On Tue, 7 Aug 2007, Lin Su wrote:

> Dear all,
>
> My two previous problems have been resolved by Debasish and Dennis's great help! Now I got one more problem here: I supposed to read AERONET data for 400 values both for the Julian days (column3) and AOT_500 (column13), and by printVarSummary, they look like what I need. However, in my plot, it only shows 10 points up instead of 400 points. Any trick here? Attched please find the ncl code (test.ncl), data (test.txt) and the plot (test.pdf).
>
> BTW, I am preparing my COMPSII exam at the moment, and so sorry to bother all of you that much!
>
> Thanks again,
> -Lin
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Aug 07 2007 - 15:57:52 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 07 2007 - 18:08:19 MDT