Re: Read in Data

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun, 10 May 2009 17:58:54 -0600

>> A09686-6801.pgb.f00
>> A09677-6801.grb2d
>> INPUT=addfile("A09686-6801.pgb.f00","r")

===
You must place a file extension the end of the file name.
The extension is how NCL knows how to treat the file.

    INPUT=addfile("A09686-6801.pgb.f00.grb","r")

another approach

    fname = "A09686-6801.pgb.f00"
    INPUT = addfile(fname+".grb","r")

or
    dname = "./" ; input directory
    fname = "A09686-6801.pgb.f00"
    INPUT = addfile(dname+fname+".grb","r")

NCL will initially look for the file named:
A09686-6801.pgb.f00.grb

If it does not find a file by that name, it will look
for the file A09686-6801.pgb ans remember it has
been tagged as a rib file.

===
For fun, try

%> ncl_filedump A09686-6801.pgb.f00.grb | less

   http://www.ncl.ucar.edu/Document/Tools/ncl_filedump.shtml

Good Luck
D

Andrew Wiebe wrote:
> Any suggestions,
>
>
>
> I am trying to read in the ds090.0 dataset from the NCEP-Reanalysis and
> keep getting a error of “data type not supported”.
>
> The data set comes with two file a *.pgb.f00 and a *.grb2d do the files
> need to be linked before NCL can use them or is there some other
> conversion needed.
>
>
>
> Regards,
>
>
>
> *Andrew Wiebe | Senior Air Quality Consultant*
>
> Katestone Environmental Pty Ltd | ABN 92 097 270 276
>
> Terrace 5, 249 Coronation Drive, PO Box 2217 Milton Queensland, Australia
>
> Ph +61 7 3369 3699 | Fax +61 7 3369 1966 | Mob + 61 450 460 676
>
> AndrewW_at_katestone.com.au <mailto:AndrewW_at_katestone.com.au> |
> *www.katestone.com.au <http://www.katestone.com.au/>*
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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 Sun May 10 2009 - 17:58:54 MDT

This archive was generated by hypermail 2.2.0 : Mon May 11 2009 - 09:43:46 MDT