[ncl-talk] Map plotting for a specific region

Setareh Rahimi setareh.rahimi at gmail.com
Sat Sep 23 10:46:58 MDT 2017


Dear Mary,

Thank you a lot for your help !

Best wishes,

On Fri, Sep 22, 2017 at 3:03 AM, Mary Haley <haley at ucar.edu> wrote:

> This type of map is reproducible in NCL, but we don't have a script that
> generates exactly this kind of plot.
>
> This plot has several elements:
>
> 1. A large map and a smaller map in the upper right corner
> 2. A legend with markers and lines
> 3. Some text outside and inside the two plots
> 4. Two black-and-white labelbars
>
> 1. You can draw the two maps simply by using gsn_csm_map for each one.  If
> you need special outlines for geographical areas, then you can probably get
> these via a shapefile. As a start, see:
>
> http://www.ncl.ucar.edu/Applications/shapefiles.shtml#ex3
> http://www.ncl.ucar.edu/Applications/polyg.shtml#ex20
>
> You can download shapefiles for Iran, Iraq, Kuwait, etc, from
> gadm.org/country
>
> 2. To plot the marker and line legend, you need to use calls to
> gsn_polyline_ndc and gsn_polymarker_ndc. See:
>
> http://www.ncl.ucar.edu/Applications/scatter.shtml#ex7
> http://www.ncl.ucar.edu/Applications/polyg.shtml#ex18
> http://www.ncl.ucar.edu/Applications/legend.shtml#ex7
>
> 3. To draw various text strings both inside and outside a plot, you need
> to use gsn_add_text for inside the plot, and gsn_text_ndc for outside the
> plot. See the various examples on the text examples page:
>
> http://www.ncl.ucar.edu/Applications/text.shtml
>
> 4. To create a labelbar, use gsn_create_labelbar.  There are many examples
> of this.  See:
>
> http://www.ncl.ucar.edu/Applications/polyg.shtml#ex8
> http://www.ncl.ucar.edu/Applications/annotate.shtml#ex2
> http://www.ncl.ucar.edu/Applications/maponly.shtml#ex15
>
> Good luck!
>
> --Mary
>
>
>
>
>
>
> On Thu, Sep 21, 2017 at 5:40 AM, Setareh Rahimi <setareh.rahimi at gmail.com>
> wrote:
>
>> Dear all,
>>
>> I need to have a map like what has been attached. Please advice me if
>> this possible to make such a map by NCL or not. If yes please kindly help
>> me in this regard.
>>
>> Look forward to hearing from you.
>>
>> Best wishes,
>>
>> --
>> S.Rahimi
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>


-- 
S.Rahimi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170923/037b73e9/attachment.html>


More information about the ncl-talk mailing list