NOAA-PMEL / Ferret

The Ferret program from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
55 stars 21 forks source link

PLOT/VS of var w/ units of degree (meant for direction) gets plot axis labeled w/ longitude #1967

Closed AnsleyManke closed 4 years ago

AnsleyManke commented 4 years ago

Ned reported this. A variable with units of "degree", intended for a heading or wind direction results in a longitude axis being drawn.

yes? let/units=degrees/title=direction dir_var = {10,20,30,40,60,40,20,0}
yes? let/units="m^2"/title="plot variable" other_var = {1,3,1,3,1,3,1,0}

! This draws a longitude axis in the horizontal direction
yes? plot/vs/color=red/thick dir_var , other_var

! This draws a latitude axis in the vertical direction
yes? plot/vs/color=red/thick other_var, dir_var 

These should do the longitude or latitude formatted axis only if the units are degree_east or degree_north.

(see also #1352)

AnsleyManke commented 4 years ago

This is fixed in geog_label_vs.F Only PLOT/VS plots are changed The longitude or latitude-formatted axis is drawn only if the labels are clearly defined as degrees east or north.