Re: (no subject)

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun, 02 Aug 2009 07:36:23 -0600

Hello

The ncl-talk_at_ucar.edu is the place to send NCL re;ated
questions. Please, do *not* send NCL questions to ncl-install.
That is for 'installation' questions.

wrfhelp should respond to your question.
However, the answer is "yes" you can open
multiple files in NCL

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"

begin
;************************************************
; open file and read in data
;************************************************
   f1 = addfile ("wrfout_d01_000000.nc", "r")
   f2 = addfile ("wrfout_d02_000000.nc", "r")
;************************************************
; Read perturbation geopotential at all times and levels
;************************************************
   x1 = f1->PH ; (Time, bottom_top, south_north, west_east)
   x2 = f2->PH

   diff = x2-x1
   copy_VarMeta(x1, diff)
   copy_VarCoords(x1, x2)

   printVarSUmmary(diff)
   printMinMax(diff, True)

See http://www.ncl.ucar.edu/Applications/wrflc.shtml
for plotting examples.

---
Please download and read the NCL manuals at:
http://www.ncl.ucar.edu/Document/Manuals/
Specifically, the Mini-Language and Graphics
Good luck
sima sima wrote:
> Hi Dear
> I  run WRF for two defferent year, for compare some variable between 
> this years
> Is there any way for open 2 wrfout files simultaneously in one ncl script?
> and then draw 2 plots in one .ps file for compare them??  either pertain 
> different wrfoutfile??
> Thanks
> Sima
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Sun Aug 02 2009 - 07:36:23 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 05 2009 - 20:36:26 MDT