HubbleXYZ

class grizli.utils.HubbleXYZ(spt_file='', param_dict={})[source]

Bases: object

Helper to compute HST geocentric coordinates from orbital parameters

(testing)

Based on http://articles.adsabs.harvard.edu//full/1995ASPC…77..464A/

Methods Summary

__call__(t_in, **kwargs)

Convert input time t_in to seconds since 1/1/85 and evaluate.

deltat(dt)

Convert a time t in seconds from 1/1/85 to an ISO time

evaluate(dt[, unit, as_table])

Evaluate equations to get positions

from_flt(flt_file, **kwargs)

Compute positions at expstart, expmid, expend

parse_from_spt(spt_file)

Get orbital elements from SPT header

xyz_to_lonlat(self, x, y, z[, radians])

Compute sublon, sublat, alt from xyz coords with pyproj

Methods Documentation

__call__(t_in, **kwargs)[source]

Convert input time t_in to seconds since 1/1/85 and evaluate.

deltat(dt)[source]

Convert a time t in seconds from 1/1/85 to an ISO time

evaluate(dt, unit=None, as_table=False)[source]

Evaluate equations to get positions

Returns
x, y, z, r: float

Coordinates, in km or unit.

from_flt(flt_file, **kwargs)[source]

Compute positions at expstart, expmid, expend

parse_from_spt(spt_file)[source]

Get orbital elements from SPT header

static xyz_to_lonlat(self, x, y, z, radians=False)[source]

Compute sublon, sublat, alt from xyz coords with pyproj

xyz must be in meters