Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UVIS FUV gives wrong backplane results #87

Open
rfrenchseti opened this issue Jun 6, 2023 · 1 comment
Open

UVIS FUV gives wrong backplane results #87

rfrenchseti opened this issue Jun 6, 2023 · 1 comment

Comments

@rfrenchseti
Copy link
Collaborator

UVIS FUV gives erroneous backplanes. Given the source code:

import numpy as np
import matplotlib.pyplot as plt
import hosts.cassini.uvis as uvis
import oops

obs = uvis.from_file('FUV2012_001_08_25.LBL')
bp = oops.Backplane.Backplane(obs)
lat = bp.latitude('SATURN')
plt.imshow(np.degrees(lat.mvals))
plt.show()

and the preview image:

https://opus.pds-rings.seti.org/holdings/previews/COUVIS_0xxx/COUVIS_0038/DATA/D2012_001/FUV2012_001_08_25_full.png

we actually get the backplane:

image

@rfrenchseti
Copy link
Collaborator Author

Note the UVIS host module will need minor modifications to work with Python 3:

diff --git a/hosts/cassini/uvis.py b/hosts/cassini/uvis.py
index aff9754..e2a4a79 100755
--- a/hosts/cassini/uvis.py
+++ b/hosts/cassini/uvis.py
@@ -219,7 +219,7 @@ def get_one_qube(label, detector, resolution,
         if DEBUG:
             assert dband % band_bin == 0    # seen to fail occasionally
 
-        dband_binned = dband / band_bin
+        dband_binned = dband // band_bin
         shape = shape[:-1] + (dband_binned,)
 
         if array is not None:
@@ -232,7 +232,7 @@ def get_one_qube(label, detector, resolution,
     if lines == 1:
         obs = oops.obs.Pixel(('t','b'), cadence, fov, 'CASSINI', frame_id)
     else:
-        obs = oops.obs.TimedImage(('v','ut','b'), 1, cadence, fov,
+        obs = oops.obs.TimedImage(('v','ut','b'), cadence, fov,
                                   'CASSINI', frame_id)
 
     obs.insert_subfield('dict', label)
diff --git a/oops/observation/timedimage.py b/oops/observation/timedimage.py
index 2f9c34c..0f17a15 100755
--- a/oops/observation/timedimage.py
+++ b/oops/observation/timedimage.py
@@ -25,7 +25,7 @@ class TimedImage(Observation):
 
     #===========================================================================
     def __init__(self, axes, cadence, fov, path, frame, **subfields):
-        """Constructor for a Pushframe.
+        """Constructor for a TimedImage.
 
         Input:
             axes        a list or tuple of strings, with one value for each axis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants