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

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 15 Apr 2009 23:08:06 -0600

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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Apr 15 2009 - 23:08:06 MDT

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