NOAA-PMEL / LAS

Live Access Server
https://ferret.pmel.noaa.gov/LAS/
The Unlicense
13 stars 5 forks source link

LAS with PyFerret: region selected from map does not match lon/lat limits #1745

Open karlmsmith opened 6 years ago

karlmsmith commented 6 years ago

Reported by @karlmsmith on 18 Aug 2016 01:06 UTC Trying out SOCAT LAS with PyFerret, and kept coming up with 500 errors with zooming into regions that should have data. Tried the URL from the las.log and ERDDAP reported back no rows. Then looked closer and saw that the region outlined on the map does not match the lon/lat limits given in the boxes. See the attached screen shot that outlines 180W - 135W and 5N - 30N but the lon/lat limits are 173E - 145W and 11N - 34N.

Migrated-From: http://dunkel.pmel.noaa.gov/trac/las/ticket/1736

karlmsmith commented 6 years ago

Attachment from @karlmsmith on 18 Aug 2016 01:07 UTC

laspyferret

karlmsmith commented 6 years ago

Attachment from @karlmsmith on 19 Aug 2016 15:51 UTC map scale plot for North Pacific with PyFerret 202F8A81A593D5760AE8BDF451135998_map_scale.xml.txt

karlmsmith commented 6 years ago

Attachment from @karlmsmith on 19 Aug 2016 15:52 UTC plot of North Pacific with PyFerret 202f8a81a593d5760ae8bdf451135998_plot_image

karlmsmith commented 6 years ago

Attachment from @karlmsmith on 19 Aug 2016 15:53 UTC annotation of North Pacific with PyFerret 202F8A81A593D5760AE8BDF451135998_annotations.xml.txt

karlmsmith commented 6 years ago

Attachment from @karlmsmith on 19 Aug 2016 15:54 UTC debug file for plot of North Pacific with PyFerret 202F8A81A593D5760AE8BDF451135998_debug.txt

karlmsmith commented 6 years ago

Comment by @noaaroland on 19 Aug 2016 14:25 UTC Can you please post the mapscale.xml file associated with this image?

The problem is likely a disagreement with what the map scale reports and the actual offsets and scales in the image.

karlmsmith commented 6 years ago

Comment by @karlmsmith on 19 Aug 2016 15:59 UTC Added the four files generated in the output directory when making the plot of the North Pacific in my SOCAT LAS using PyFerret.

(This 202F8...png plot was generated outlining polygons to get rid of the white lines. Either Ansley or I will check in the tweak in LAS_open_window.jnl to make that fix.)

karlmsmith commented 6 years ago

Comment by @noaaroland on 24 Aug 2016 14:52 UTC The problem is inconsistencies between the map scale and the image:

'''Size:'''

The image is 1060x650

rhs@gazelle:~/pybug$ identify 202F8A81A593D5760AE8BDF451135998_plot_image.png 202F8A81A593D5760AE8BDF451135998_plot_image.png PNG 1060x650 1060x650+0+0 8-bit !DirectClass 103KB 0.000u 0:00.000

The map scale reports the image is 1161x712.

1161.0 712.0

'''Offsets:'''

The plot image starts at about pixel 84 from the left of the image. The map scale gives this value as: 93.

92.895355

The offset from the bottom is about 38 pixels. The map scale gives this value as: 43.

42.706562

The offset from the right is 9 pixels. The map scale gives this value as: 12

11.611919

The offset from the top is 51 pixels. The map scale reports this value as: 57

57.00606