Re: simple question: adding a parameter to a WRF output file

From: Gerry Creager <gerry.creager_at_nyahnyahspammersnyahnyah>
Date: Thu, 16 Apr 2009 07:12:09 -0500

Thanks, Mary.

I did try that last night, but the wrfout I'm working on is fairly big,
and things were progressing so slowly I'd thought I had something
broken. I'm processing the data now to see how it'll look in VAPOR, and
ncl_filedump tells me I likely have a couple of small tweaks to make
before this is all resolved, anyway.

Appreciate the help!
Regards, Gerry

Mary Haley wrote:
> Hi Gerry,
>
> You should be able to do this easily if you open the file with "w"
> instead of "r":
>
> a = addfile("wrfout.nc","w")
>
> ....some calculations and other stuff...
>
> a->diagnostics_var = some_local_var
>
> Of course, you'd want to replace "diagnostics_var" with whatever name
> you want on the file.
>
> --Mary
>
> On Apr 15, 2009, at 7:59 PM, Gerry Creager wrote:
>
>> Hello, again,
>>
>> I'm reading a WRF output file, operating on it, and creating a new
>> diagnostic value. I need to write it back into the wrfout as an append.
>>
>> Is there a fairly simple method to accomplish this, or do I need to read
>> in, then write out all the variables?
>>
>> Thanks, Gerry
>> --
>> Gerry Creager -- gerry.creager_at_tamu.edu
>> Texas Mesonet -- AATLT, Texas A&M University
>> Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983
>> Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

-- 
Gerry Creager -- gerry.creager_at_tamu.edu
Texas Mesonet -- AATLT, Texas A&M University	
Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983
Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843
Received on Thu Apr 16 2009 - 06:12:09 MDT

This archive was generated by hypermail 2.2.0 : Thu Apr 16 2009 - 10:05:49 MDT