[ncl-talk] MAPTRN behavior between CGM and SVG output formats

Rick Brownrigg brownrig at ucar.edu
Mon Mar 28 20:12:31 MDT 2022


Hi John,

I'm a bit confused as to what you are saying -- which program drew the
red-outlined dot -- the fortran or powerpoint?

Rick

On Mon, Mar 28, 2022 at 9:39 AM John Prinos via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> We have been using NCAR EZMAP output in CGM for almost 2 decades. We now
> need to switch to SVG format because Microsoft has dropped any support for
> the CGM format.
>
>
>
> In my program, I output image coordinates  derived from MAPTRN calls to an
> ascii file and read in the image coordinates for cities on my output map
> using a Powerpoint macro. Unfortunately, the cities plotted, in relation to
> the SVG map are incorrect. The center city looks to be plotted correctly
> but cities away from the image center seem to be off.
>
>
>
> Here is an image to clarify:
>
>
>
>
>
> Toronto is in the center of the map. Montreal is off center. You can see
> the correct point for Montreal, printed with the red bordered point in the
> FORTRAN program and the point plotted by the PowerPoint macro using the
> coordinates written from the same MAPTRN call from within the program. The
> 2 Montreal dots do not align.
>
>
>
> My question is: Is the SVG file output scaled inadvertently by default?
> Are there calls which would affect this?
>
>
>
> Code snippet:
>
>
>
>
>
> Thanks in advance!
>
>
>
> JOHN PRINOS
>
> FLIGHT TEST OPERATIONS
>
> O. +1 (437) 291-3458 Ext. 23888  |  Toll Free +1 (844) 359-3428
> C. +1 (647) 982-5081
>
> 123 Garratt Blvd, Toronto, Ontario, M3K 1Y5   dehavilland.com
> <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdehavilland.com%2F&data=04%7C01%7Cjohn.prinos%40dehavilland.com%7C42aa9317fdb5432e81c008d9e9eb7827%7C5a663d26424748679361d0807c64458f%7C0%7C0%7C637798019973469802%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=AKXPanALX5mUf9z3pq8o7uuKzJuOc6a7du18KGrxtrU%3D&reserved=0>
>
> PRIVATE AND CONFIDENTIAL © De Havilland Aircraft of Canada Limited or its
> subsidiaries. All rights reserved.
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220328/6b6d66cf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 27152 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220328/6b6d66cf/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 145030 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220328/6b6d66cf/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 16230 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220328/6b6d66cf/attachment-0001.png>


More information about the ncl-talk mailing list