[ncl-talk] file format inquiry

From: Keith Lindsay <klindsay_at_nyahnyahspammersnyahnyah>
Date: Thu Jul 29 2010 - 23:33:46 MDT

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
Received on Thu Jul 29 23:33:52 2010

This archive was generated by hypermail 2.1.8 : Fri Oct 15 2010 - 10:40:25 MDT