How to read a 3-d ascii grid data file ?

From: LEO_ARIES <Leo_Aries_at_nyahnyahspammersnyahnyah>
Date: Tue, 16 May 2006 14:07:30 +0800

Hi,

I have an ascii file (GHCN Grid Monthly PRCP) in the form of:
1 1951
 -32768 -32768 -32768 -32768 -32768 -32768 -32768 -32768 -32768 -32768 -32768 -32768
 -32768 -32768 -32768 -32768 -32768 -32768 -32768 -32768 -32768 -32768 -32768 -32768
 1: month 1900: year -32788: missing value
 and I want to read them in NCL.

 Now I plan to use fortran to read these data and restore them in another
 format given below:
" Lon lat data(lon,lat,month1,year1) data(lon,lat,month2,year1) ....... data(lon,lat,monthn,yearn)"
 and read those data into NCL.:(unfortunately I don't know how to write a netcdf file with fortran,so ..)

 As is shown in the example given at
 http://www.ncl.ucar.edu/Applications/ascii_grid.shtml ,
 Ncl can read a 2-d ascii gird data file.But I wonder if NCL can read a
 3d grid data file. The above example is a grid data file on a fixed time
 point, But My grid data has s time span.After reading such file,I want
to get such a data array as X(lon,lat,month,Year).

Thanks!

Lin

 

 

LEO_ARIES
2006-05-16

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue May 16 2006 - 00:07:30 MDT

This archive was generated by hypermail 2.2.0 : Wed May 17 2006 - 09:57:59 MDT