Re: Issue with writing large data out to netCDF

From: Wei Huang <huangwei_at_nyahnyahspammersnyahnyah>
Date: Sat Feb 15 2014 - 17:12:38 MST

I have worked with Kyle offline on NCAR's machine to check related issue.
It happened that we need to move the setfileoption before addfile.
After that, the issue is resolved.

Thanks,

Wei

huangwei@ucar.edu
VETS/CISL
National Center for Atmospheric Research
P.O. Box 3000 (1850 Table Mesa Dr.)
Boulder, CO 80307-3000 USA
(303) 497-8924

On Feb 14, 2014, at 3:52 PM, Wei Huang <huangwei@ucar.edu> wrote:

> Kyle,
>
> Are you testing your code on NCAR's machine?
> If yes, could you please point me your whole script (offline)?
>
> Thanks,
>
> Wei
>
> huangwei@ucar.edu
> VETS/CISL
> National Center for Atmospheric Research
> P.O. Box 3000 (1850 Table Mesa Dr.)
> Boulder, CO 80307-3000 USA
> (303) 497-8924
>
>
>
>
>
>
> On Feb 14, 2014, at 2:32 PM, Kyle Griffin <ksgriffin2@wisc.edu> wrote:
>
>> Hi all,
>>
>> Neither of Wei's suggestions worked.
>>
>> I'm trying a run with the setfileoption calls (both calls, per Wei's suggestions) before the addfile command, as that's what my interpretation of the documentation would suggest as the next logical step with the "nc" option everyone has mentioned. Any other suggestions here are certainly welcome, as well.
>>
>>
>> Kyle
>>
>> ----------------------------------------
>> Kyle S. Griffin
>> Department of Atmospheric and Oceanic Sciences
>> University of Wisconsin - Madison
>> Room 1421
>> 1225 W Dayton St, Madison, WI 53706
>> Email: ksgriffin2@wisc.edu
>>
>>
>> On Fri, Feb 14, 2014 at 10:44 AM, Keith Lindsay <klindsay@ucar.edu> wrote:
>> 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 or addfiles. ... 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
>>
>>
>> _______________________________________________
>> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Feb 15 17:13:11 2014

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