Re: PyNIO And NOAAPort Grids

From: Bryan Rockwood <bryan.rockwood_at_nyahnyahspammersnyahnyah>
Date: Tue, 18 Nov 2008 11:11:39 -0600


Again, thank you for the response. I have taken a look at and
it gave me the right direction to go. Of course, it has led to another
question. I have set the level attribute as unlimited (i.e. Isobaric
pressure) but the problem that I am running into now is that the levels
are not being ingested in the proper order so they are all over the
place (an examination of the array for pressure can be 20000, 100000,
90000, etc). When I go to extract a level from the file after the
conversion is complete, I am getting bizarre answers. It is as if the
level and the grid for that level are out of sync. Is there a proper
way to insert a new level so that the order is correct?


Mary Haley wrote:
> Bryan,
> See example 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
>> 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:
>>> 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:
Received on Tue Nov 18 2008 - 10:11:39 MST

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 09:25:48 MST