[ncl-talk] Plotting a variable's isosurface in 3D by tdez3d

Mary Haley haley at ucar.edu
Mon Dec 11 12:37:12 MST 2017


Armagan,

In general, we recommend that people not use our 3D plotting package, as it
is rather old and not anywhere near as developed as other free packages out
there.

If you are trying to plot WRF data in 3D, then I recommend VAPOR, which is
tailored for plotting WRF data in 3D:

https://www.vapor.ucar.edu

If you really need to use TDEZ3D for other reasons, then please include the
full error message you're getting from NCL.

Thanks,

--Mary


On Sat, Dec 9, 2017 at 8:16 AM, Armağan Gözütok <armagango at gmail.com> wrote:

> Hello,
>
> I wanted to create 3d plots recently, bye some modification on the scripts
> here:
> https://www.ncl.ucar.edu/Applications/tdpack.shtml
>
> I did manage to plot the surface plots by tdez2d function (plotted HGT
> from the WRF outputs), however my 3d variables cannot be plotted, getting
> always an error somehow although i check all the dimensions properly which
> they coincide.
>
> I couldn't manage to upload an .nc outputs to the ftp server,
>
>
> Here is my NCL script to create isosurface plot of graupel mixing ratio
> (called isosurf.ncl) different than 3d_hgt.ncl:
>
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
>
> begin
>
>   a = addfile("wrfout_d01_2017-07-27_12:00:00.nc","r")
>
>   qgraup = a->QGRAUP(49,:,:,:)                 ; Graupel mixing ratio at
> iteration #49
>   lat = a->XLAT(0,:,0)                ; latitude
>   lon = a->XLONG(0,0,:)               ; longitude
>
>   xi = lat
>   yi = lon
>   zi = ispan(1,49,1)*1. ;vertical pressure level # 50 different pressure
> levels
>   ui = 0.0001 ; graupel mixing ratio defined for isosurface plot
>
>
>   ;dimlat = dimsizes(lat)
>   ;dimlon = dimsizes(lon)
>   dimz = dimsizes(zi)
>   ;dimgraup = dimsizes(qgraup)
>
>   ;print(dimlat)
>   ;print(dimlon)
>   print(dimz)
>   ;print(dimgraup)
>
>
>   wks = gsn_open_wks("png","3d_isosurface_qgraup")
>
>   tdez3d(wks,xi,yi,zi,qgraup,ui,1.8,-45.,58.,-4)
>
>   frame(wks)
>
> end
>
>
> Armagan
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171211/349ca029/attachment.html>


More information about the ncl-talk mailing list