Re: Issue with writing large data out to netCDF

From: Keith Lindsay <klindsay_at_nyahnyahspammersnyahnyah>
Date: Fri Feb 14 2014 - 09:44:12 MST

Kyle,

Further down in the docs, in the "NetCDF file format options" section is
a block that indicates the you need to you "nc" instead of a file
argument when setfileoption is setting "Format":

Format
     Default value: "Classic"

     You may set this option only prior to opening a new NetCDF file in
"create" mode. The first argument must be a string specifying the NetCDF
format, such as "nc". This string-valued option currently has four valid
values, two of which are synonyms.

Keith

On 2/14/14, 9:37 AM, Kyle Griffin wrote:
> I'll give Wei's suggestions a try - I can already state that the first
> suggestion (just changing fout to "nc") did not work for me yesterday.
> Per a section of the setfileoption documentation...
>
> "If the first argument is a string specifying a format, then the
> option setting applies to any file of the specified format when it is
> first opened using *addfile*
> <http://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml> or
> *addfiles
> <http://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml>.
> *... Files referenced by existing file variables will not be affected.
> On the other hand, options set using a file variable as the first
> argument affect only the specified file, and may alter NCL's treatment
> of it dynamically."
>
> ...would it be more logical to place setfileoption("nc",...,...)
> statements before the addfile call and setfileoption(fout,...,...)
> styled-statements after a file is open?
>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Feb 14 09:44:22 2014

This archive was generated by hypermail 2.1.8 : Wed Feb 19 2014 - 15:58:35 MST