[ncl-talk] Few issues plotting vertical cross-sections with terrain mask

Bill Ladwig ladwig at ucar.edu
Mon Nov 5 11:37:38 MST 2018


Trying this again. There were a few routines missing in that last
attachment. Let me know if this doesn't run.

Bill

On Mon, Nov 5, 2018 at 11:25 AM Bill Ladwig <ladwig at ucar.edu> wrote:

> Hi Nicholas,
>
> One of the problems with that mountain cross section example is that there
> is no vertical coordinate information set for the cross section, and this
> causes all kinds of problems with the plotting (which is why it's so
> hacky). First, try using the new wrf_user_vertcross that's attached (which
> will be part of the next NCL release, ported from WRF-Python). Also, when
> plotting with this, you should probably avoid the "wrf_" plotting routines,
> as those can be difficult to control. Try plotting with the regular
> "gsn_csm_" routines instead.
>
> Hope this helps,
>
> Bill
>
>
> On Mon, Nov 5, 2018 at 10:17 AM Nicholas Thomas Luchetti <
> Nicholas.Luchetti at colorado.edu> wrote:
>
>> Hi all,
>>
>> I'm attempting to plot vertical cross sections of an idealized WRF
>> simulation that includes a terrain mask.
>>
>> I've been trying to play around with NCAR's experimental
>> wrf_CrossSection_add_smooth_terrain code (
>> http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/Examples/CROSS_SECTION/wrf_CrossSection_add_smooth_terrain.ncl
>> )
>>
>> with decent results.
>>
>> However, I can't seem to figure out a few issues... First off, the lines:
>>
>>  ter_res = True
>>
>>   opts_ter = res
>>
>>   opts_ter at gsnYRefLine = 0.0
>>
>>   opts_ter at gsnAboveYRefLineColor = "black"
>>
>>   opts_ter at gsnDraw = False
>>
>>   opts_ter at gsnFrame = False
>>
>>   opts_ter at FieldTitle = ""
>>
>> don't seem to work for me... The mountain mask only appears white. No
>> errors, but the mountain won't change colors to black and I'm not sure why.
>>
>>
>> Second, the base of the terrain appears to be bumped up .2km which throws
>> off my labels... I can't figure out in the code where this is happening.
>> I've attached my version to this email. The terrain in this setup is a 500
>> meter valley... The plots, however, appear to set up the terrain around 700
>> meters, not 500 meters, so the base of the valley only dips to 200 meters,
>> when it should be around 0 meters. See attached screenshot for reference.
>>
>> Does anyone have any ideas? Thanks!
>>
>> Nick Luchetti
>> --
>> Nicholas Luchetti
>> Graduate Student
>> Department of Atmospheric and Oceanic Sciences (ATOC)
>> CU Boulder
>>
>> _______________________________________________
>> 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/20181105/4f0fb9a3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrf_user_vertcross.ncl
Type: application/octet-stream
Size: 12761 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181105/4f0fb9a3/attachment.obj>


More information about the ncl-talk mailing list