Re: skew-t plot; 2 situations in one plot.

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun, 10 Dec 2006 00:59:01 -0700 (MST)

> To be able to compare2 different situations, I am trying to make a skew-t
> plot with data from these situations in the same plot; i.e a plot with 2
> different tc graphs, 2 different td graphs, and 2 different wind graphs.
> It seems like the function skewT_PlotData only can read 1d data so I am
> not sure of how to do this.
> I have seen plots like this in grads but wonder how to do it in ncl. Does
> anyone have an idea?
> I am using wrf_out netcdf-files. I am not sure if that matters though..
> _______________________________________________

The following should work.

  skewt_bkgd = skewT_BackGround (wks, skewtOpts)
  draw (skewt_bkgd)


  skewt_data_1 = skewT_PlotData(wks, skewt_bkgd, p1,tc1,tdc1,z1 \
                                   , wspd1,wdir1, dataOpts)
  draw (skewt_data_1)

  skewt_data_2 = skewT_PlotData(wks, skewt_bkgd, p2,tc2,tdc2,z2 \
                                   , wspd2,wdir2, dataOpts)
  draw (skewt_data_2)



[2] p[*,*] ie 2D

  do n=0,N-1
     skewt_data = skewT_PlotData (wks, skewt_bkgd, p(n,:),tc(n,:),tdc(n,:),z(n,:) \
                                       , wspd(n,:),wdir(n,:), dataOpts)
     draw (skewt_data)
  end do

ncl-talk mailing list
Received on Sun Dec 10 2006 - 00:59:01 MST

This archive was generated by hypermail 2.2.0 : Sun Dec 10 2006 - 19:25:38 MST