Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EnMAP
GFZ_Tools_EnMAP_BOX
EnPT
Commits
c2d0b177
Commit
c2d0b177
authored
Apr 16, 2018
by
Daniel Scheffler
Browse files
Fixed missing mu_sun in metadata (needed by SICOR).
parent
1b1ec829
Pipeline
#2906
failed with stages
in 64 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
enpt/model/metadata.py
View file @
c2d0b177
...
...
@@ -65,6 +65,7 @@ class EnMAP_Metadata_L1B_Detector_SensorGeo(object):
self
.
geom_view_azimuth
=
None
# type: float # viewing azimuth angle
self
.
geom_sun_zenith
=
None
# type: float # sun zenith angle
self
.
geom_sun_azimuth
=
None
# type: float # sun azimuth angle
self
.
mu_sun
=
None
# type: float # needed by SICOR for TOARad > TOARef conversion
self
.
lat_UL_UR_LL_LR
=
None
# type: list # latitude coordinates for UL, UR, LL, LR
self
.
lon_UL_UR_LL_LR
=
None
# type: list # longitude coordinates for UL, UR, LL, LR
self
.
lats
=
None
# type: np.ndarray # 2D array of latitude coordinates according to given lon/lat sampling
...
...
@@ -106,6 +107,7 @@ class EnMAP_Metadata_L1B_Detector_SensorGeo(object):
xml
.
findall
(
"%s/illumination_geometry/zenith_angle"
%
lbl
)[
0
].
text
.
split
()[
0
])
self
.
geom_sun_azimuth
=
np
.
float
(
xml
.
findall
(
"%s/illumination_geometry/azimuth_angle"
%
lbl
)[
0
].
text
.
split
()[
0
])
self
.
mu_sun
=
np
.
cos
(
np
.
deg2rad
(
self
.
geom_sun_zenith
))
self
.
lat_UL_UR_LL_LR
=
\
[
float
(
xml
.
findall
(
"%s/geometry/bounding_box/%s_northing"
%
(
lbl
,
corner
))[
0
].
text
.
split
()[
0
])
for
corner
in
(
"UL"
,
"UR"
,
"LL"
,
"LR"
)]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment