Re: file format inquiry

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Aug 05 2010 - 09:49:06 MDT

This was answered offline; there is currently no way (from NCL) to query a NetCDF file in this fashion.

We have added this request to our enhancements list, and it will probably go in hand with the other
request to be able to get the file path.

--Mary

On Jul 29, 2010, at 11:33 PM, Keith Lindsay wrote:

> Hi,
>
> I have an NCL script that does some generic file processing. It reads in
> a collection of files, does some math, and generates an output file. All
> files are NetCDF. If the input files use 64 bit offsets, then the output
> file will need to as well.
>
> Is there a way in NCL to check to see if the input files use 64 bit
> offsets? I don't see it from looking at the list of I/O functions. I
> could imagine this inquiry coming from a hypothetical function called
> getfileoption, which would be to setfileoption as ListGetType is to
> ListSetType.
>
> I imagine I could use the system command, and check the first line of
> ncdump -h to determine this, but this seems kinda clumsy, when the C
> interface to NetCDF, which NCL presumably has under the covers, provides
> this functionality via the nc_inq_format function.
>
> Thanks, Keith
>
> ******************************************************************
> Keith Lindsay http://www.cgd.ucar.edu/oce/klindsay/
> email: klindsay@ucar.edu phone: 303-497-1722 fax: 303-497-1700
> _______________________________________________
> 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 Aug 5 09:49:30 2010

This archive was generated by hypermail 2.1.8 : Tue Aug 17 2010 - 15:33:24 MDT