summaryrefslogtreecommitdiffstats
path: root/ds9
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-12-14 21:50:56 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-12-14 21:50:56 (GMT)
commit577979edc42a395c12bd1c1b7b3cd4b8a7efb508 (patch)
tree7573b26f3d617ff89ada33aa4ef52ce43903da1f /ds9
parentee97a6919118b40321b705c328628cf63f9e2e48 (diff)
downloadblt-577979edc42a395c12bd1c1b7b3cd4b8a7efb508.zip
blt-577979edc42a395c12bd1c1b7b3cd4b8a7efb508.tar.gz
blt-577979edc42a395c12bd1c1b7b3cd4b8a7efb508.tar.bz2
PLOT3D: verify 3D WCS, reset to IMAGE if not available
Diffstat (limited to 'ds9')
-rw-r--r--ds9/doc/release/r8.1.html1
-rw-r--r--ds9/library/markeranalysisplot3d.tcl5
2 files changed, 6 insertions, 0 deletions
diff --git a/ds9/doc/release/r8.1.html b/ds9/doc/release/r8.1.html
index 9686a6e..d3bf697 100644
--- a/ds9/doc/release/r8.1.html
+++ b/ds9/doc/release/r8.1.html
@@ -23,6 +23,7 @@
<li><tt>12.10.2018 CONTOUR: LEVELS command now takes one numeric in addition to a string.</tt></li>
<li><tt>12.14.2018 GRID: add checks to avoid NULL pointers in cases of odd WCS defs.</tt></li>
<li><tt>12.14.2018 BINNING: bring forward any 3rd column WCS defines for binned 3d cubes.</tt></li>
+<li><tt>12.14.2018 PLOT3D: verify 3D WCS, reset to IMAGE if not available.</tt></li>
<li><tt><b>xx.xx.2018 RELEASE version 8.1b1</b></tt></li>
</ol>
</div>
diff --git a/ds9/library/markeranalysisplot3d.tcl b/ds9/library/markeranalysisplot3d.tcl
index e26dd0b..2b93cbc 100644
--- a/ds9/library/markeranalysisplot3d.tcl
+++ b/ds9/library/markeranalysisplot3d.tcl
@@ -144,6 +144,11 @@ proc MarkerAnalysisPlot3dCB {frame id} {
set vvar(method) average
}
+ # sanity check
+ if {![$frame has wcs 3d $vvar(system)]} {
+ set vvar(system) image
+ }
+
set xdata ${vvarname}x
set ydata ${vvarname}y
global $xdata $ydata