Geometry
source module isofit.core.geometry
Classes
-
Geometry — The geometry of the observation, all we need to calculate sensor, surface, and solar positions.
source class Geometry(obs: np.array = None, loc: np.array = None, dt: datetime = None, esd: np.array = None, bg_rfl: np.array = None, svf: float = 1, coszen: float = None, full_config: configs.Config = {})
The geometry of the observation, all we need to calculate sensor, surface, and solar positions.
Initialize geometry object. Args: obs: Observation metadata array. loc: Location metadata array. dt: Date time of observation. esd: Earth sun distance array. bg_rfl: Background reflectance spectrum. svf: Sky view factor. coszen: Cosine of the solar zenith angle for top of atmosphere. config: isofit config.
Methods
-
get_esd_factor — Get distance ratio from sun based on time of year, relative to day 1 Args: date_time: datetime to search
source method Geometry.get_esd_factor(date_time: datetime)
Get distance ratio from sun based on time of year, relative to day 1 Args: date_time: datetime to search
Returns
-
float — ratio of earth sun distnace based on datetime.