[Wrf-users] time averaging of variables

Hein Zelle zelle at argoss.nl
Wed Apr 23 01:03:54 MDT 2008


Manda Adams wrote:

>   I am going to be doing some rather long simulations (~90days) to get at
> some seasonal averages.  In order to conserve disk space during these
> massive runs, I am hoping to write a script to extract the basic fields
> (wind, temp, mixing ratio, etc) from the netcdf as the files are being
> written, and create a time averaged dataset.  Since we are mostly
> interested in the time averages of the variables, it would save us a lot
> of disk space to keep only the time averaged fields and delete the
> instantaneous fields.  Has any one else ever tried this?  And if so, do
> you have any scripts you would be willing to share?

I don't have ready-made scripts for saving time averaged variables,
but you may want to take a look at either ferret or the netcdf
operators (nco).  Especially the latter (command-line operators) are
very quick and useful for this kind of work.  If you revert to an
analysis tool like ferret, either matlab or grads will probably also
do the trick.

NCO example:

extract a limited number of variables from a wrf output file, leave
the rest unchanged:

ncks -v u10,v10,t2   wrfout_d01_2008??????   stripped_output_file.nc

average over time:

ncwa -a time  stripped_output_file.nc  time_averaged_output_file.nc


You can easily script these things from bash or perl, handy if you
have a lot of shorter netcdf files.

Kind regards,

     Hein Zelle


-- 

  dr. ir. Hein Zelle

  Project manager

  ARGOSS: Atmospheric, marine & coastal information, systems and consultancy.

  ARGOSS BV
  PO Box 61
  8325ZH Vollenhove
  The Netherlands
  Tel +31 (0)527242299
  Fax +31 (0)527242016
  Web  http://www.argoss.nl/


  Confidentiality Notice & Disclaimer

  This message and its attachments can contain confidential and/or
  proprietary information which could be subject to legal privilege or
  immunity. Unless you are a named addressee or receive this email on
  behalf of a named addressee you may not use, copy or disclose the
  contents in any manner. Should you receive this message in error, you
  are kindly requested to inform the sender and to delete all electronic
  or paper copies. ARGOSS BV does not accept any liability for any
  errors or omissions in the context of this email or its attachments
  which arise as a result of Internet transmission, nor accept liability
  for statements which are those of the author and not clearly made on
  behalf of ARGOSS.



More information about the Wrf-users mailing list