[ncl-talk] Visualization of WRF Output: Superimposition and Zooming
Gurer, Kemal@ARB
kemal.gurer at arb.ca.gov
Mon Apr 7 11:37:34 MDT 2025
I forgot to address one specific question that you had asked, which is you want to plot 10m wind vectors at every 5th grid points. In ncl, you can specify that via, for example,
U = u10(it,::5,::5)
where the dimensions of u are:
[Time x [south_north] x [west_east]
and 5 is the incremental value that you want to plot every 5th grid points.
Kemal.
From: ncl-talk <ncl-talk-bounces at mailman.ucar.edu> On Behalf Of Gurer, Kemal at ARB via ncl-talk
Sent: Monday, April 7, 2025 10:26 AM
To: Ehsan Taghizadeh <ehsantaghizadeh at yahoo.com>; Ncl-talk <ncl-talk at ucar.edu>
Subject: Re: [ncl-talk] Visualization of WRF Output: Superimposition and Zooming
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hi Ehsan,
There is a transition from ncl to python usage to plot variables from WRF outputs and, for example, you can get the routine from here:
https://github.com/NCAR/wrf-python
I have certainly experimented with python to plot WRF outputs. However, since I have been using ncl for quite some time, I feel comfortable tweaking the ncl scripts to get the plots that I want. In the ncl script that I gave you, you set the lat/lon values of the corners of your plot area using the following variables for all variables:
vecres1 at mpLeftCornerLatF = xlatmin
vecres1 at mpRightCornerLatF = xlatmax
vecres1 at mpLeftCornerLonF = xlonmin
vecres1 at mpRightCornerLonF = xlonmax
to zoom into the area that you want to focus on. Experiment with the script and the rest will be a breeze for you.
Kemal.
From: Ehsan Taghizadeh <ehsantaghizadeh at yahoo.com<mailto:ehsantaghizadeh at yahoo.com>>
Sent: Sunday, April 6, 2025 7:42 PM
To: Ncl-talk <ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>>; Gurer, Kemal at ARB <kemal.gurer at arb.ca.gov<mailto:kemal.gurer at arb.ca.gov>>
Subject: Re: [ncl-talk] Visualization of WRF Output: Superimposition and Zooming
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hi Kemal,
Thank you so much for sharing your script! It looks great and very well-commented, making it easier to understand its functionality. I truly appreciate the effort you've put into creating and providing this.
I'm planning to use your script to plot WRF data for my research.
Just to clarify, my main challenge involves zooming in on a specific region, superimposing three variables, and plotting the wind vector for a specific interval of grid points.
I hope it's okay to ask for a bit more guidance-specifically on how to modify the dataonmap_zoom_10.ncl<https://www.ncl.ucar.edu/Applications/Scripts/dataonmap_zoom_10.ncl> script to meet these requirements. If anyone has any insights on achieving this or can suggest adjustments, that would be incredibly helpful.
Additionally, if any GeoCAT or Python scripts might suit these needs, I'd greatly appreciate your recommendations.
Any further assistance would mean a lot to me.
-----------------------------------------------------------------------------
Best regards,
Ehsan Taghizadeh
On Wednesday, April 2, 2025 at 08:06:35 PM PDT, Gurer, Kemal at ARB <kemal.gurer at arb.ca.gov<mailto:kemal.gurer at arb.ca.gov>> wrote:
Hi Ehsan,
Try the attached ncl script to plot horizontal cross sections of several variables from your WRF output. Just read the command lines and posted comments to understand how the script operates and disregard the warnings that ncl issues. You can plot other variables by looking at the examples given in the script.
Kemal.
From: ncl-talk <ncl-talk-bounces at mailman.ucar.edu<mailto:ncl-talk-bounces at mailman.ucar.edu>> On Behalf Of Ehsan Taghizadeh via ncl-talk
Sent: Tuesday, April 1, 2025 10:50 PM
To: Ncl-talk <ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>>
Subject: [ncl-talk] Visualization of WRF Output: Superimposition and Zooming
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Dear NCL team,
I would like to plot 10 m wind vectors, 2 m temperature as contours, and topography as shaded from a WRF output file. Additionally, I need to zoom in on a domain approximately 1 × 1 degree. For instance, I would like to display one wind vector for every five grid points.
I reviewed the provided page (https://www.ncl.ucar.edu/Applications/wrfzoom.shtml) and tried the attached script. While it is relatively clean, it has some issues-particularly with the labels on the axes, as shown.
Any assistance in creating such a script would be greatly appreciated.
-----------------------------------------------------------------------------
Best regards,
Ehsan Taghizadeh
Ph.D. Student in Natural Resources & Environmental Studies (NRES),
University of Northern British Columbia (UNBC)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20250407/8a9e341d/attachment.htm>
More information about the ncl-talk
mailing list