From 853955e205c89e86a631ff501de26579f0b37c24 Mon Sep 17 00:00:00 2001 From: Roy Smart Date: Sat, 2 Nov 2024 16:45:43 -0600 Subject: [PATCH] doc fixes --- docs/index.rst | 2 +- iris/sg/_spectrograph.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 49d445b..a9a1f59 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -61,7 +61,7 @@ and display as a false-color movie. # Take the mean of the wavelength over the spatial # and temporal axes since it is constant - wavelength = obs.inputs.wavelength.mean(axis_txy) + wavelength = obs.inputs.wavelength.mean(obs.axis_time) # Convert to Doppler velocity velocity = wavelength.to( diff --git a/iris/sg/_spectrograph.py b/iris/sg/_spectrograph.py index 34daaea..ed916c2 100644 --- a/iris/sg/_spectrograph.py +++ b/iris/sg/_spectrograph.py @@ -57,7 +57,7 @@ class SpectrographObservation( # red/green/blue channels rgb, colorbar = na.colorsynth.rgb_and_colorbar( spd=obs.outputs, - wavelength=obs.inputs.wavelength.mean(("detector_x", "detector_y")), + wavelength=obs.inputs.wavelength, axis=obs.axis_wavelength, spd_min=0 * u.DN, spd_max=np.nanpercentile(