Skip to content

Commit

Permalink
Create TDX and PAZ classes to disambiguate there constellations
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Nov 4, 2024
1 parent 62fac80 commit 2ff73cf
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 5 deletions.
25 changes: 25 additions & 0 deletions eoreader/products/sar/paz_product.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Copyright 2024, SERTIT-ICube - France, https://sertit.unistra.fr/
# This file is part of eoreader project
# https://github.com/sertit/eoreader
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
PAZ products
More info `here <https://tandemx-science.dlr.de/pdfs/TX-GS-DD-3302_Basic-Products-Specification-Document_V1.9.pdf>`_.
"""
from eoreader.products import TsxProduct


class PazProduct(TsxProduct):
"""Class for PAZ Products"""
25 changes: 25 additions & 0 deletions eoreader/products/sar/tdx_product.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Copyright 2024, SERTIT-ICube - France, https://sertit.unistra.fr/
# This file is part of eoreader project
# https://github.com/sertit/eoreader
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
TanDEM-X products
More info `here <https://tandemx-science.dlr.de/pdfs/TX-GS-DD-3302_Basic-Products-Specification-Document_V1.9.pdf>`_.
"""
from eoreader.products import TsxProduct


class TdxProduct(TsxProduct):
"""Class for TanDEM-X Products"""
6 changes: 1 addition & 5 deletions eoreader/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,12 +981,8 @@ def create_product(
sat_class = constellation.name.lower() + "_product"

# Channel correctly the constellations to their generic files (just in case)
# TerraSAR-like constellations
if constellation in [Constellation.TDX, Constellation.PAZ]:
sat_class = "tsx_product"
constellation = None # All product names are the same, so assess it with MTD
# Maxar-like constellations
elif constellation in [
if constellation in [
Constellation.QB02,
Constellation.GE01,
Constellation.WV01,
Expand Down

0 comments on commit 2ff73cf

Please sign in to comment.