Files with a *.Z extension have been compressed by the UNIX "compress"
program. Those files can be handled with the Unix "uncompress" program.
They nothing to do with NCL.
%> uncompress ST4.2004092016.01h.Z
===
Also, please see the 'get_file_suffix' function
http://www.ncl.ucar.edu/Document/Functions/Contributed/get_file_suffix.shtml
A slight variation of Ezample 2
fName = "ST4.2004092016.01h.Z"
suffix = get_file_suffix(fName, 0) ; ".Z"
if (suffix.eq.".Z") then
system("uncompress "+fName)
fileName = suffix@fBase ; ST4.2004092016.01h
else
fileName = fName
end if
f = addfile(fileName, "r")
On 02/17/2010 09:51 AM, Xiaoming Sun wrote:
>
> Dear All,
>
> I have a question on reading NCEP Stage IV data.
>
> The data was downloaded from the following link
> http://data.eol.ucar.edu/codiac/dss/id=21.093
>
> Please find an example data, attached to this E-mail.
>
> These data have an extension name as .Z, does anybody know how to read
> it in NCL?
>
> Any input will be appreciated,
>
> Thanks,
>
> Best Regards,
>
> Xiaoming
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- ====================================================== Dennis J. Shea tel: 303-497-1361 | P.O. Box 3000 fax: 303-497-1333 | Climate Analysis Section | Climate & Global Dynamics Div. | National Center for Atmospheric Research | Boulder, CO 80307 | USA email: shea 'at' ucar.edu | ====================================================== _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Wed Feb 17 13:05:22 2010
This archive was generated by hypermail 2.1.8 : Thu Feb 18 2010 - 10:33:29 MST