nicer.latloninterp

Interpolate the spacecraft latitude and longitude from tabulated values.

Classes

LatLonInterp(met, lat, lon)

Interpolate the spacecraft latitude and longitude at any time.

class nicer.latloninterp.LatLonInterp(met, lat, lon)[source]

Bases: object

Interpolate the spacecraft latitude and longitude at any time.

The positions are converted to Earth-fixed Cartesian coordinates and interpolated with splines, which avoids problems with longitude wrapping. Outside the tabulated range, the first or last value is returned.

Parameters:
  • met (array_like) -- Times of the tabulated positions, in MET seconds (for example mktable["TIME"]).

  • lat (astropy.units.Quantity) -- Latitudes and longitudes at those times (for example mktable["SAT_LAT"] and mktable["SAT_LON"]).

  • lon (astropy.units.Quantity) -- Latitudes and longitudes at those times (for example mktable["SAT_LAT"] and mktable["SAT_LON"]).

latlon(met)[source]

Return the interpolated latitude and longitude.

Parameters:

met (float or array_like) -- Time(s), in MET seconds.

Returns:

  • lat (astropy.coordinates.Latitude)

  • lon (astropy.coordinates.Longitude)