Skip to content

Commit a8931bb

Browse files
committed
Fixing EOP metadata extraction from the Envisat products.
1 parent f30497b commit a8931bb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

metadata/envisat2eop.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ def _polar(pol):
113113
)),
114114
EOP.acquisitionParameters(SAR.Acquisition(
115115
EOP.orbitNumber("%d"%header.mph['ABS_ORBIT']),
116-
EOP.orbitDirection(header.sph['PASS']),
116+
EOP.orbitDirection(header.sph['PASS'].strip()),
117117
EOP.wrsLongitudeGrid("%d"%header.mph['REL_ORBIT'],
118-
**{ns_eop.codeSpace: _wrs_code_space}),
118+
**{'codeSpace': _wrs_code_space}),
119119
SAR.polarisationMode(_polmode),
120120
SAR.polarisationChannels(_polchannels),
121121
)),
@@ -134,6 +134,7 @@ def _polar(pol):
134134
)
135135

136136
xml_eop = SAR.EarthObservation(
137+
ns_gml.getId(),
137138
ns_eop.getSchemaLocation("SAR"),
138139
OM.phenomenonTime(ns_gml.getTimePeriod(time_acq_start, time_acq_stop)),
139140
#OM.resultQuality(), #optional

metadata/ns_wcseo10.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
#------------------------------------------------------------------------------
4848
# namespace
4949

50-
SL = "http://schemas.opengis.net/wcseo/1.0/wcsEOAll.xsd"
51-
NS = "http://www.opengis.net/wcseo/1.0"
50+
SL = "http://schemas.opengis.net/wcs/wcseo/1.0/wcsEOAll.xsd"
51+
NS = "http://www.opengis.net/wcs/wcseo/1.0"
5252

5353
NS_MAP = {
5454
"wcseo": NS,

0 commit comments

Comments
 (0)