Re: PyNIO And NOAAPort Grids

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 4 Nov 2008 09:48:17 -0700 (MST)

Bryan,

See example nio04.py. It shows how to append to an existing file. Note
that this example first creates a dummy NetCDF, so you can skip this
part.

Dave Brown is more of an expert in this area, so he may have some
other tips on appending to an existing file.

--Mary

On Tue, 4 Nov 2008, Bryan Rockwood wrote:

> Hello Mary,
>
> Thank you for the quick response. I have played with the nio03.py script and
> have gotten it to work as written. The problem I am running into is that I
> do not have access to a single file with the entire model run but a series of
> files (in the case of the 218 grid, 7046 files). I suppose my main question
> would be, what is the proper way to append grids to an existing NetCDF file
> where the main attributes already exist?
>
> Bryan
>
> Mary Haley wrote:
>> Hi Bryan,
>>
>> Please see an example we have at:
>>
>> http://www.pyngl.ucar.edu/Examples/Scripts/nio03.py
>>
>> As the description of this example states:
>>
>> # This example reads a GRIB2 file and copies its contents
>> # to a NetCDF file, setting some options for efficient
>> # copying along the way.
>>
>> --Mary
>>
>> On Nov 3, 2008, at 3:16 PM, Bryan Rockwood wrote:
>>
>>> Greetings,
>>>
>>> I am trying to use PyNIO to read in a NAM12 (218 grid) model run that was
>>> received from the NOAAPort in GRIB2 format. Since the data received is in
>>> individual files, I am trying to write a simple script that takes each
>>> individual file and inserts them into a single NetCDF3 file. Being
>>> relatively new to PyNIO, and if at all possible, I was hoping someone
>>> would have an example of how to do this or could point me to an example
>>> someplace on line. Thanks.
>>>
>>> Bryan Rockwood
>>> _______________________________________________
>>> pyngl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>>
>
>
_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Tue Nov 04 2008 - 09:48:17 MST

This archive was generated by hypermail 2.2.0 : Fri Nov 14 2008 - 16:43:44 MST