[ncl-talk] Problem with satellite projection

Adam Phillips asphilli at ucar.edu
Tue Sep 12 08:56:03 MDT 2017


Hi Anne,
That is strange. Testing here shows that the vertical tickmarks slip to
longitude labels as you shift away from the equator. There is a solution
though.

Take a look at example #9 here:
http://www.ncl.ucar.edu/Applications/mptick.shtml#ex9

I used the add_map_tickmarks2 function at the top of that script to
successfully add tickmarks to your script. (See attached script and plot.)

With regards to the shape of the plot: NCL will not distort the aspect
ratio of the plot unless you tell it to, one way or another. Setting the
mpCenterLatF and mpCenterLonF (in the satellite projection) is one way. A
cleaner way is to set mpShapeMode = "FreeAspect", which transfers the exact
size of the resulting map plot to the vpWidthF/vpHeightF resources.

Hope that helps!
Adam

On Tue, Sep 12, 2017 at 8:23 AM, Anne <anne.seidenglanz at unive.it> wrote:

> Hi everyone,
>
> I am using the satellite projection to plot some surface field in the
> Barents Sea. Somehow, there are longitude coordinates of "west" and "east"
> on my left and right axes, respectively, even though, I'd wish to have
> latitude "degrees north" on them, instead, obviously. What is the trick
> here?
> Also, the ratio of the viewport resource does not seem to take effect
> (vpHeight, vpWidth; i.e. if I want a slightly 'stretched' plot instead of a
> quadratic plot)
>
> I attached the plot and a script of the resources which I used.
>
> Any help appreciated,
> thanks in advance
> Anne
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170912/9a6704ef/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fluxes.png
Type: image/png
Size: 85705 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170912/9a6704ef/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resources_sat.ncl
Type: text/x-ncl
Size: 11634 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170912/9a6704ef/attachment.bin>


More information about the ncl-talk mailing list