Commit c36d8d1d authored by Carl Schaffer's avatar Carl Schaffer
Browse files

unit fix

parent ad0ff173
......@@ -17,6 +17,7 @@ import matplotlib.pyplot as plt
import numpy as np
from astropy.coordinates import SkyCoord
from astropy.wcs import WCS
from ..generic.fits import FitsFile
from ..util import calc_mu, calc_theta
from ..util.util import date_from_fn, gris_obs_mode
......@@ -387,7 +388,7 @@ class GrisFitsFile(FitsFile):
slit_list[:, 1] = np.arange(n_y)
slit_list[:, 0] = 0
converted = np.array(wcs.pixel_to_world_values(slit_list))
degrees = u.degree * converted[:, :2]
degrees = u.arcsec * converted[:, :2]
arcsec = degrees.to(u.arcsec)
return arcsec
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment