Re: zooming in on a map plot

From: Schiffer, Nicole June <nschiff2_at_nyahnyahspammersnyahnyah>
Date: Wed Nov 07 2012 - 19:25:30 MST

I'm not using the wrf plotting functions because I got frustrated with all
the user-friendly features (kind of like Python).

I was afraid those were my only two options. Oh well. Thanks for
entertaining my question.

-Nicole

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Nicole Schiffer
* Science Writing Intern (NCSA)
* Graduate Research Fellow (Dept. of Energy)
* Department of Atmospheric Sciences
* University of Illinois, Urbana-Champaign
* Email: nschiff2 [at] illinois [dot] edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"Adam Phillips", 11/7/12 5:04 PM:

>Hi Nicole,
>If it didn't work for your WRF data I assume you are using the various
>WRF plotting functions to create the plots. The wrf* routines set a lot
>of things up automatically for you behind the scenes, which is
>convenient if you're happy with how they set things up. However, it
>sometimes is not the easiest to alter settings with regards to the wrf*
>routines. I do not regularly plot WRF data, but I do not know of a way
>to automatically zoom in on a region while using the wrf* plotting
>routines.
>
>I think your two options are:
>1) subset the data using region_ind (which I know you'd rather not do):
>http://www.ncl.ucar.edu/Document/Functions/Contributed/region_ind.shtml
>2) Attach your 2D lat/lons as attributes to the array to be plotted, and
>create your plot using regular NCL plotting functions
>(gsn_csm_contour_map for example).. See here:
>http://www.ncl.ucar.edu/Applications/wrf.shtml
>
>Adam
>
>
>
>On 11/07/2012 03:20 PM, Schiffer, Nicole June wrote:
>> That works fine for TRMM data, but it seems to smash all of the WRF data
>> into a window of that size rather than lining it up with the proper
>> lat-lon values. Do I need to set another resource for WRF to work?
>>
>> Thanks,
>> Nicole
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> * Nicole Schiffer
>> * Science Writing Intern (NCSA)
>> * Graduate Research Fellow (Dept. of Energy)
>> * Department of Atmospheric Sciences
>> * University of Illinois, Urbana-Champaign
>> * Email: nschiff2 [at] illinois [dot] edu
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>>
>>
>>
>> "Adam Phillips", 11/7/12 4:08 PM:
>>
>>> Hi Nicole,
>>> You can usually do this by setting mpLimitMode along with a few
>>> complimentary resources. For instance:
>>>
>>> res@mpLimitMode = "LatLon"
>>> res@mpMinLonF = 130.
>>> res@mpMaxLonF = 220.
>>> res@mpCenterLonF = (res@mpMinLonF+res@mpMaxLonF)/2.
>>> res@mpMinLatF = 20.
>>> res@mpMaxLatF = 75.
>>>
>>> See:
>>>
>>>http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpLimitMode
>>>
>>> Hope that helps! Adam
>>>
>>> On 11/07/2012 02:27 PM, Schiffer, Nicole June wrote:
>>>> Is there a way to zoom in on a map plot without plotting only a subset
>>>> of
>>>> the data or masking the data?
>>>>
>>>> Masking shows only the data I want, but it doesn't fill the whole plot
>>>> window. Plotting a subset of the data is not trivial, but is doable
>>>>if I
>>>> can't just limit the bounds of the plot.
>>>>
>>>> Thanks,
>>>> Nicole
>>>>
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>> * Nicole Schiffer
>>>> * Science Writing Intern (NCSA)
>>>> * Graduate Research Fellow (Dept. of Energy)
>>>> * Department of Atmospheric Sciences
>>>> * University of Illinois, Urbana-Champaign
>>>> * Email: nschiff2 [at] illinois [dot] edu
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>> --
>>> ______________________________________________________________
>>> Adam Phillips asphilli@ucar.edu
>>> NCAR/Climate and Global Dynamics Division (303) 497-1726
>>> P.O. Box 3000
>>> Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>--
>______________________________________________________________
>Adam Phillips asphilli@ucar.edu
>NCAR/Climate and Global Dynamics Division (303) 497-1726
>P.O. Box 3000
>Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
>
>_______________________________________________
>ncl-talk mailing list
>List instructions, subscriber options, unsubscribe:
>http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Nov 7 19:25:40 2012

This archive was generated by hypermail 2.1.8 : Tue Nov 13 2012 - 14:27:24 MST