On this page, we document errors/problems we've encountered working with OSELOTS.
We encourage other users to write down/document other issues as they come up, and the solutions they find.
PROBLEM: When acquiring images, code fails with an error like:
Traceback (most recent call last):
File "/home/sashab/Documents/sashas_python_scripts/pixis/ConvertPIXISRawToFits.py", line 143, in <module>
convertRawToFits(source_file, target_file, source_dir = source_dir, target_dir = target_dir, target_suffix = target_suffix, header_elems_to_add = additional_header_elems);
File "/home/sashab/Documents/sashas_python_scripts/pixis/ConvertPIXISRawToFits.py", line 49, in convertRawToFits
flat_img_arrays = [struct.unpack(img_fmt, data_set) for data_set in separated_data]
File "/home/sashab/Documents/sashas_python_scripts/pixis/ConvertPIXISRawToFits.py", line 49, in <listcomp>
flat_img_arrays = [struct.unpack(img_fmt, data_set) for data_set in separated_data]
struct.error: unpack requires a buffer of 2097152 bytes
OTHER SIGNS OF ERROR:
Identified instrument is a Demo:
(Something like): PIXIS: 100B (SN:12345:Demo) [E2V 1340 x 100 (CCD 36)(B)]
Temperature set point is -40 degrees C:
(Something Like): Temperature is -40 degrees C
SOURCE OF PROBLEM:
The computer cannot connect to the camera, and is therefore generating data off of the 'Demo' PIXIS instrument. This artificial image does not conform to the format expected by the code that converts the .raw image to a .fits image, and the code fails with the above error.
POSSIBLE SOLUTION(S):
- Make sure that camera AC-DC converter (black, labeled PIXIS Camera) is turned on (switch is flipped to | rather than 0).
- Power strip has a green light to indicate it is turned on, though it is covered by black aluminum tape. You can peel back the tape to check, if you like.
- Make sure USB connecting computer to camera is plugged in at both ends (perhaps give the ends an extra push to make sure they are connected).
- Make sure camera power cord is connected to the camera.
PROBLEM: Acquired images show very little or no light, particularly noticeable with calibration light sources:
Here is an example of such an image (right panel of Figure below), taken with the HG-2 calibration light source. Notice how the lines in the right panel are very ragged; not the clean image of the fiber tip, as seen through the slit, that we hope for (left panel):
OTHER SIGNS OF ERROR:
Images taken of the sky show little or no light, although all connections are good and the lens is on sky.
If you disconnect the cage system joining the slit and fiber to the grating, it is possible to pear through the slit and look for light from the fiber tip behind. When the fiber is illuminated by a bright enough source (HG-2 light, for example, one can see the light from the fiber tip shining through. UNDER GOOD CONDITIONS, the data should look like this (note the bright yellow-white light shining through the slit):
If the system is not working, the light shining through the slit will be either non-existent, very faint, and/or ragged.
SOURCE OF PROBLEM:
The multimode optical fiber and the 5 um slit have slipped out of alignment. OSELOTS requires manual realignment.
POSSIBLE SOLUTION(S):
Be warned, this is a ~1 hour process. We are working on designing a more user-friendly repair process. At no point in this process should the fiber be removed from Here are the steps (somewhat difficult to describe in text):
- Remove the rubber baffle around the cage system connecting slit to central column
- Unwraps by hand
- Not shown in photo below
- Use a small, imperial hex key to just loosen (DO NOT REMOVE ALL THE WAY) the small screws locking the cage into the central column
- In the hex key set provided with the OSELOTS toolkit, the key you need is the small, red imperial key
- Disconnect the slit holder from the support post, just to the right of the entrance hole
- We recommend unscrewing the small, horizontal, silver beam from the holder of the optical slit, keeping the larger poster pieces in place
- You should first loosen the screw locking this silver post in place, and then rotate it
- Slide the cage posts holding the slit and fiber tip out the front hole of OSELOTS
- If all the screws have been appropriately loosened, the whole front of the cage system should cleanly slide out.
- Connect a light source (like the HG-2 calibration lamp) to lens-end of the optical fiber
- See the section on taking wavelength calibration images, starting with "(OPTIONAL, BUT SHOULD DO IF POSSIBLE)", on the Nightly Observing Sequence page for guidance on how to do so
- When the slit and fiber are well aligned, you should see bright light shining through the slit from the fiber
- To adjust the alignment, you must gently move the slit around in it's holding tube
- (The slit, unfortunately, does not sit perfectly centered in the tube; it is held in place (imperfectly) with a ThorLabs 1" tube ring)
- Slide the slit holder off of the cage struts
- Loosen the ring holding the slit in place
- Can be done with a flathead screwdriver or the ThorLabs tube ring adjuster
- Gently nudge the ring's position perpendicular to the long axis
- Best done with a soft, long object with a small tip, such as a toothpick or a cable tie
- tighten ring, gently
- slide slit holder back down cage struts until the fiber and slit are flush
- Bring them into contact gently
- Do you now see light from the fiber through the lens (as in the image above) when slit and fiber are flush?
- If yes, then you're good
- If not, repeat steps c. through g., using the results from the previous adjustment to inform your next adjustment
- Once good alignment is retrieved, replace the cage struts and tighten system down
- i.e. - reverse steps 2. through 4.
- Take an image with OSELOTS:
- As su in the ~/Documents/OSELOTS/ directory, run:
bash doPixisImaging.bash -e 5 -o HG2 -p HG2_f23p0 -n 1 -h 0 -f 23.0
- (you might need to cool the camera and find focus home if this is the first image taken today):
bash doPixisImaging.bash -e 0 -o Cool -n 1 -h 1
- If the lines look good, the slit and fiber have been successfully realigned!
- But the slit is likely slightly rotated out of position. Are the lines perfectly vertical in the image, or is there a slight tilt?
- ds9's crosshair is helpful
- Here is an example (note in the left panel, how the crosshair traces the line, while in the right panel, the line drifts right off of the crosshair):
- If the slit requires rotation correction:
- Use a hex key to loosen the rotation stage for the slit
- Rotate the slit slightly, making note of the direction
- Take another image and check the slit orientation
- Repeat until good vertical slit orientation is achieved.
- The slit-fiber coupling error has now been fixed.