Re: opac polygon around a data field (rotated grid)

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 23 2012 - 11:50:32 MDT

An easier approach might be simply to set the resource mpGreatCircleLinesOn to True. (see http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpGreatCircleLinesOn)
 -dave

On Jul 23, 2012, at 10:02 AM, Mary Haley wrote:

> Hi,
>
> Just as Rick answered your question, I was finishing up an example.
>
> He's right, you need to programmatically generate intermediate points along each lat/lon line, which you can do with the gc_latlon function.
>
> See attached example and images. Since we don't have your data, I took your script, removed all the contouring stuff, and made a best guess at the lat/lon corners.
>
> This example was taken from example polyg_13.ncl at:
>
> http://www.ncl.ucar.edu/Applications/polyg.shtml#ex13
>
> --Mary
>
> On Jul 23, 2012, at 9:57 AM, Rick Brownrigg wrote:
>
>> Hi Karin,
>>
>> I take it the lines of the polygon are along constant lines of lat/lon? One thing that comes to mind is to programmatically generate samples at intermediate points along the lines of lat/lon, to approximate the curved lines. I haven't tried this (I don't have your dataset handy), but it should work.
>>
>> Hope that helps…
>> Rick
>>
>> On Jul 23, 2012, at 8:11 AM, Karin Meier-Fleischer wrote:
>>
>>> Hi,
>>>
>>> unfortunately, I have problems drawing an opac polygon on a the orography data field (on a rotated grid).
>>> It was not a problem to plot the map and the contour lines of the orography, but the polygon always
>>> has straight edges instead curved ones.
>>>
>>> I want to display different regions with different grid resolutions in one picture to have a nice overview
>>> of the different domains. I append the script and a small plot.
>>>
>>> Any help would be appreciated.
>>>
>>> Thanks,
>>> Karin
>>>
>>> --
>>> Karin Meier-Fleischer
>>>
>>> Department Data Management
>>> Deutsches Klimarechenzentrum GmbH
>>> Bundesstrasse 45a
>>> D-20146 Hamburg, Germany
>>> email:
>>> meier-fleischer@dkrz.de
>>>
>>> phone: +49 40 41173 288
>>> fax: +49 40 41173 476
>>>
>>> http://www.dkrz.de/
>>> <plot_rotated_HSURF_EUR-11_model_region_with_box.ksh><plot_HSURF_EUR-11_box_800_616.png>_______________________________________________
>>> 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
> <plot.ncl><straight.png><curve.png>_______________________________________________
> 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 Mon Jul 23 11:50:48 2012

This archive was generated by hypermail 2.1.8 : Tue Jul 24 2012 - 09:48:26 MDT