[ncl-talk] Is there a quick fix?

Will Hobbs will.hobbs at utas.edu.au
Thu Sep 1 01:13:35 MDT 2016


Anusha

That approach could work. Alternatively you could create a 2-d array with dimensions (height, longitude) for PBLH, and just let PBLH be the same at all heights. The conform() function will do this for you:

; e.g. you have a 2D array for relative humidity (RH) and a 1d array PBLH

>PBLHcon = RH    ;create new array with same coord dimendions as RH

>PBLHcon = conform(RH, PBLH, 1)

; you can then use PBLHcon to make an overlay contour plot

(This will work if, and only if, the longitude coordinates of RH and PBLH are the same. If not, you may need to use conform_dims() )

Will


From: <ncl-talk-bounces at ucar.edu> on behalf of Anusha sathyanadh <anushacalicut at gmail.com>
Date: Thursday, 1 September 2016 at 5:03 PM
To: "ncl-talk at ucar.edu" <ncl-talk at ucar.edu>
Subject: [ncl-talk] Is there a quick fix?


Dear Users,
Anybody know how to overlay a one dimensional data to a 2D contour plot?
More clearly, I have longitude height contour of Relative humidity on which i want to overlay PBLH which is only a function of Longitude..May be defining a new 2D variable with dimensions PBLH and longitude, and adding a polyline may work, is there any better way?..I am using wrf functions
Can anyone help?
--
ANUSHA SATHYANADH
Senior Research Fellow
Deparment of Atmospheric and Space Sciences
Pune university


University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160901/9ebcc251/attachment.html 


More information about the ncl-talk mailing list