Example #1
0
 def __init__(self, name, latitude_deg, longitude_deg, elevation_m):
     self.name = name
     self.latitude_deg = latitude_deg
     self.longitude_deg = longitude_deg
     self.elevation_m = elevation_m
     self.position_ecef = coordinate_systems.geodetic_to_ecef(
         radians(latitude_deg), radians(longitude_deg), elevation_m / 1000.)
     self.position_llh = latitude_deg, longitude_deg, elevation_m
Example #2
0
    def __init__(self, name, latitude_deg, longitude_deg, elevation_m):
        """Location.

        Parameters
        ----------
        latitude_deg : float
            Latitude in degrees.
        longitude_deg : float
            Longitude in degrees.
        elevation_m : float
            Elevation in meters.

        """
        self.name = name
        self.latitude_deg = latitude_deg
        self.longitude_deg = longitude_deg
        self.elevation_m = elevation_m
        self.position_ecef = coordinate_systems.geodetic_to_ecef(
            radians(latitude_deg), radians(longitude_deg), elevation_m / 1000.)
        self.position_llh = latitude_deg, longitude_deg, elevation_m