Skip to content
Snippets Groups Projects
Commit 5ef0aaa4 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-785: Add geohashes for reference positions as well

parent 719a0741
No related branches found
No related tags found
1 merge request!331L2SS-785: Add geohash
...@@ -238,6 +238,10 @@ class RECV(opcua_device): ...@@ -238,6 +238,10 @@ class RECV(opcua_device):
doc='Absolute reference position of antenna field, in latitude/longitude (degrees)', doc='Absolute reference position of antenna field, in latitude/longitude (degrees)',
dtype=(numpy.float,), max_dim_x=2) dtype=(numpy.float,), max_dim_x=2)
Antenna_Field_Reference_GEOHASH_R = attribute(access=AttrWriteType.READ,
doc='Absolute reference position of antenna field, as geohash string',
dtype=numpy.str)
HBAT_antenna_ITRF_offsets_R = attribute(access=AttrWriteType.READ, HBAT_antenna_ITRF_offsets_R = attribute(access=AttrWriteType.READ,
doc='Offsets of the antennas within a tile, in ITRF ("iHBADeltas"). True shape: 96x16x3.', doc='Offsets of the antennas within a tile, in ITRF ("iHBADeltas"). True shape: 96x16x3.',
dtype=((numpy.float,),), max_dim_x=48, max_dim_y=96) dtype=((numpy.float,),), max_dim_x=48, max_dim_y=96)
...@@ -267,6 +271,9 @@ class RECV(opcua_device): ...@@ -267,6 +271,9 @@ class RECV(opcua_device):
def read_Antenna_Field_Reference_GEO_R(self): def read_Antenna_Field_Reference_GEO_R(self):
return ITRF_to_GEO(self.read_Antenna_Field_Reference_ITRF_R()) return ITRF_to_GEO(self.read_Antenna_Field_Reference_ITRF_R())
def read_Antenna_Field_Reference_GEOHASH_R(self):
return GEO_to_GEOHASH(self.read_Antenna_Field_Reference_GEO_R())
def read_HBAT_antenna_ITRF_offsets_R(self): def read_HBAT_antenna_ITRF_offsets_R(self):
base_antenna_offsets = numpy.array(self.HBAT_base_antenna_offsets).reshape(16,3) base_antenna_offsets = numpy.array(self.HBAT_base_antenna_offsets).reshape(16,3)
PQR_to_ETRS_rotation_matrix = numpy.array(self.HBAT_PQR_to_ETRS_rotation_matrix).reshape(3,3) PQR_to_ETRS_rotation_matrix = numpy.array(self.HBAT_PQR_to_ETRS_rotation_matrix).reshape(3,3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment