summaryrefslogtreecommitdiffstats
path: root/ds9
diff options
context:
space:
mode:
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