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

John Prinos john.prinos at dehavilland.com
Mon Mar 28 09:38:51 MDT 2022


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:

[cid:image002.png at 01D84297.D95AEFA0]

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:
[cid:image003.png at 01D84298.64D9FEE0]


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>
[cid:image001.jpg at 01D84296.778AEAB0]
PRIVATE AND CONFIDENTIAL (c) De Havilland Aircraft of Canada Limited or its subsidiaries. All rights reserved.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220328/3f503c2c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 27152 bytes
Desc: image001.jpg
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220328/3f503c2c/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 145030 bytes
Desc: image002.png
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220328/3f503c2c/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 16230 bytes
Desc: image003.png
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220328/3f503c2c/attachment-0001.png>


More information about the ncl-talk mailing list