Coverage for /home/runner/work/torchcvnn/torchcvnn/src/torchcvnn/datasets/alos2/__init__.py: 0%
5 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-04-13 08:53 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-04-13 08:53 +0000
1# MIT License
3# Copyright (c) 2024 Jeremy Fix
5# Permission is hereby granted, free of charge, to any person obtaining a copy
6# of this software and associated documentation files (the "Software"), to deal
7# in the Software without restriction, including without limitation the rights
8# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9# copies of the Software, and to permit persons to whom the Software is
10# furnished to do so, subject to the following conditions:
12# The above copyright notice and this permission notice shall be included in
13# all copies or substantial portions of the Software.
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21# SOFTWARE.
23"""
24Scripts to read and parse ALOS-2 data files
26The format is described in
27https://www.eorc.jaxa.jp/ALOS/en/alos-2/pdf/product_format_description/PALSAR-2_xx_Format_CEOS_E_g.pdf
29See also the handbook : https://www.eorc.jaxa.jp/ALOS/en/doc/alos_userhb_en.pdf
30for example p99 for the image line formats
32We have for High-sensitive/Fine Mode Full (Quad.) Polarimetry :
33 IMG-{HH, HV, VH, VV}xxxxx__A
34 LED-xxxx.1__A : SAR Leader file
35 TRL-xxxx.1__A : SAR Trailer file
36 VOL-xxxx.1__a : Volume directory file
38 With ALOS2044980750-150324-HBQR1 as Sene ID - Product ID
39 SceneID : ALOS2044980750-150324
40 which stands for ALOS2 satelitte
41 04498 : orbit accumulation number
42 0750 : scene frame number
43 150324 : 2015/03/24
45 ProductID : HBQR1.1__A
46 HBQ : High-sensitive mode Full (Quad.) polarimetry
47 R : Right looking
48 1.1 : Processing level
49 _ : processing option not specified
50 _ : map projection not specified
51 A : Ascending orbit direction
53If you have different settings for the polarization, the structure of the files is described in Figure 3.1-5 p29
55"""
57from .vol_file import VolFile
58from .trailer_file import TrailerFile
59from .leader_file import LeaderFile
60from .sar_image import SARImage
61from .dataset import ALOSDataset