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
e62d595d
Commit
e62d595d
authored
Aug 29, 2017
by
André Hollstein
Browse files
Fix bug for smile coeficients. Now use all of them.
parent
f5c9cd5b
Pipeline
#862
passed with stages
in 6 minutes and 59 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
enpt/io/reader.py
View file @
e62d595d
...
...
@@ -17,7 +17,7 @@ class L1B_Reader(object):
self
.
cfg
=
user_inputs
@
staticmethod
def
read_inputdata
(
root_dir
,
observation_time
:
datetime
,
lon_lat_smpl
=
(
15
,
15
),
nsmile_coef
=
4
):
def
read_inputdata
(
root_dir
,
observation_time
:
datetime
,
lon_lat_smpl
=
(
15
,
15
),
nsmile_coef
=
5
):
# TODO move to init?
"""Read L1B, DEM and spatial reference data.
...
...
enpt/model/metadata.py
View file @
e62d595d
...
...
@@ -63,7 +63,7 @@ class _EnMAP_Metadata_L1B_Detector_SensorGeo(object):
self
.
unit
=
''
# type: str # radiometric unit of pixel values
self
.
snr
=
None
# type: np.ndarray # Signal to noise ratio as computed from radiance data
def
_read_metadata
(
self
,
path_xml
,
detector_label_xml
,
lon_lat_smpl
=
(
15
,
15
),
nsmile_coef
=
4
):
def
_read_metadata
(
self
,
path_xml
,
detector_label_xml
,
lon_lat_smpl
=
(
15
,
15
),
nsmile_coef
=
5
):
"""Read the metadata of a specific EnMAP detector in sensor geometry.
:param path_xml: file path of the metadata XML file
...
...
@@ -215,7 +215,7 @@ class EnMAP_Metadata_L1B_VNIR_SensorGeo(_EnMAP_Metadata_L1B_Detector_SensorGeo):
self
.
_path_xml
=
path_metaxml
self
.
detector_label
=
L1B_product_props
[
'xml_detector_label'
][
'VNIR'
]
def
read_metadata
(
self
,
lon_lat_smpl
=
(
15
,
15
),
nsmile_coef
=
4
):
def
read_metadata
(
self
,
lon_lat_smpl
=
(
15
,
15
),
nsmile_coef
=
5
):
"""Read the metadata of the VNIR detector in sensor geometry.
:param lon_lat_smpl: number if sampling points in lon, lat fields
...
...
@@ -243,7 +243,7 @@ class EnMAP_Metadata_L1B_SWIR_SensorGeo(_EnMAP_Metadata_L1B_Detector_SensorGeo):
self
.
_path_xml
=
path_metaxml
self
.
detector_label
=
L1B_product_props
[
'xml_detector_label'
][
'SWIR'
]
def
read_metadata
(
self
,
lon_lat_smpl
=
(
15
,
15
),
nsmile_coef
=
4
):
def
read_metadata
(
self
,
lon_lat_smpl
=
(
15
,
15
),
nsmile_coef
=
5
):
"""Read the metadata of the SWIR detector in sensor geometry.
:param lon_lat_smpl: number if sampling points in lon, lat fields
...
...
tests/data/EnMAP_Level_1B/AlpineTest1_CWV2_SM0.zip
LFS
View file @
e62d595d
No preview for this file type
tests/data/EnMAP_Level_1B/AlpineTest1_CWV2_SM1.zip
LFS
View file @
e62d595d
No preview for this file type
Andre Hollstein
@hollstei
mentioned in issue
#4 (closed)
·
Aug 29, 2017
mentioned in issue
#4 (closed)
mentioned in issue #4
Toggle commit list
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