repo
stringlengths
2
99
file
stringlengths
13
225
code
stringlengths
0
18.3M
file_length
int64
0
18.3M
avg_line_length
float64
0
1.36M
max_line_length
int64
0
4.26M
extension_type
stringclasses
1 value
sarpy
sarpy-master/sarpy/io/product/sidd3_elements/DigitalElevationData.py
""" Types implementing the SIDD 3.0 DigitalElevationData Parameters """ __classification__ = 'UNCLASSIFIED' # SIDD 3.0 reuses the SIDD 2.0 types. Make those symbols available in this module. from sarpy.io.product.sidd2_elements.DigitalElevationData import ( GeographicCoordinatesType, GeopositioningType, A...
580
25.409091
83
py
sarpy
sarpy-master/sarpy/io/product/sidd3_elements/ExploitationFeatures.py
""" The ExploitationFeaturesType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging import datetime from typing import Union, List import numpy from sarpy.io.xml.base import Serializable, ParametersCollection from sarpy.io.xml.descriptors import SerializableDescript...
30,387
38.362694
121
py
sarpy
sarpy-master/sarpy/io/product/sidd3_elements/SIDD.py
""" The SIDDType 3.0 definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from typing import Union, Tuple from collections import OrderedDict from copy import deepcopy import numpy from sarpy.io.xml.base import Serializable, parse_xml_from_string, parse_xml_from_file f...
18,567
38.338983
118
py
sarpy
sarpy-master/sarpy/io/product/sidd3_elements/ProductCreation.py
""" Types implementing the SIDD 3.0 Product Creation Parameters """ __classification__ = 'UNCLASSIFIED' # SIDD 3.0 reuses the SIDD 2.0 types. Make those symbols available in this module. from sarpy.io.product.sidd2_elements.ProductCreation import ( ProcessorInformationType, ProductClassificationType, Prod...
481
25.777778
83
py
sarpy
sarpy-master/sarpy/io/product/sidd3_elements/ProductProcessing.py
""" Types implementing the SIDD 3.0 ProductProcessing Parameters """ __classification__ = 'UNCLASSIFIED' # SIDD 3.0 reuses the SIDD 2.0 types. Make those symbols available in this module. from sarpy.io.product.sidd2_elements.ProductProcessing import ( ProcessingModuleType, ProductProcessingType, ) __REUSED__...
418
25.1875
83
py
sarpy
sarpy-master/sarpy/io/product/sidd3_elements/__init__.py
__classification__ = 'UNCLASSIFIED'
37
11.666667
35
py
sarpy
sarpy-master/sarpy/io/product/sidd3_elements/GeoData.py
""" Types implementing the SIDD 3.0 GeoData Parameters """ __classification__ = 'UNCLASSIFIED' # SIDD 3.0 reuses the SIDD 2.0 types. Make those symbols available in this module. from sarpy.io.product.sidd2_elements.GeoData import GeoDataType __REUSED__ = ( # to avoid unused import lint errors GeoDataType, )
317
25.5
83
py
sarpy
sarpy-master/sarpy/io/product/sidd3_elements/Display.py
""" Types implementing the SIDD 3.0 Display Parameters """ __classification__ = 'UNCLASSIFIED' # SIDD 3.0 reuses the SIDD 2.0 types. Make those symbols available in this module. from sarpy.io.product.sidd2_elements.Display import ( BandLUTType, BandLUTArray, BandEqualizationType, ProductGenerationOpti...
1,154
24.108696
83
py
sarpy
sarpy-master/sarpy/io/product/sidd3_elements/DownstreamReprocessing.py
""" Types implementing the SIDD 3.0 DownstreamReprocessing Parameters """ __classification__ = 'UNCLASSIFIED' # SIDD 3.0 reuses the SIDD 2.0 types. Make those symbols available in this module. from sarpy.io.product.sidd2_elements.DownstreamReprocessing import ( GeometricChipType, ProcessingEventType, Down...
482
25.833333
83
py
sarpy
sarpy-master/sarpy/io/product/sidd3_elements/blocks.py
""" Multipurpose basic SIDD elements """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, Optional import numpy from sarpy.io.xml.base import Serializable, Arrayable from sarpy.io.xml.descriptors import FloatDescriptor, StringEnumDescriptor from .base import DEFAULT_S...
5,698
30.661111
107
py
sarpy
sarpy-master/sarpy/io/product/sidd1_elements/Measurement.py
""" The MeasurementType definition for SIDD 1.0. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union from sarpy.io.product.sidd2_elements.base import DEFAULT_STRICT from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import SerializableDescriptor fro...
4,466
45.051546
105
py
sarpy
sarpy-master/sarpy/io/product/sidd1_elements/ExploitationFeatures.py
""" The ExploitationFeaturesType definition for SIDD 1.0 """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging import datetime from typing import Union, List import numpy from sarpy.io.product.sidd2_elements.base import DEFAULT_STRICT, FLOAT_FORMAT from sarpy.io.xml.base import Se...
19,562
38.204409
118
py
sarpy
sarpy-master/sarpy/io/product/sidd1_elements/GeographicAndTarget.py
""" The ProductDisplayType definition for SIDD 1.0. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, List from xml.etree import ElementTree from collections import OrderedDict import numpy from sarpy.io.product.sidd2_elements.base import DEFAULT_STRICT from sarpy.io...
10,863
41.272374
120
py
sarpy
sarpy-master/sarpy/io/product/sidd1_elements/SIDD.py
""" The SIDDType 1.0 definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from typing import Union from collections import OrderedDict from copy import deepcopy from sarpy.io.xml.base import Serializable, parse_xml_from_file, parse_xml_from_string from sarpy.io.xml.des...
17,347
37.551111
113
py
sarpy
sarpy-master/sarpy/io/product/sidd1_elements/ProductCreation.py
""" The ProductCreationType definition for version 1.0. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union from datetime import datetime import numpy from sarpy.io.product.sidd2_elements.base import DEFAULT_STRICT from sarpy.io.product.sidd2_elements.ProductCreation im...
13,653
43.620915
112
py
sarpy
sarpy-master/sarpy/io/product/sidd1_elements/__init__.py
__classification__ = 'UNCLASSIFIED'
37
11.666667
35
py
sarpy
sarpy-master/sarpy/io/product/sidd1_elements/Display.py
""" The ProductDisplayType definition for SIDD 1.0. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from typing import Union from collections import OrderedDict import numpy from sarpy.io.product.sidd2_elements.base import DEFAULT_STRICT, FLOAT_FORMAT from sarpy.io.xml.base i...
18,845
37.539877
118
py
sarpy
sarpy-master/sarpy/io/xml/base.py
""" This module contains the base objects for use in base xml/serializable functionality. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from xml.etree import ElementTree import json from datetime import date, datetime from collections import OrderedDict import copy import re ...
68,337
38.207114
119
py
sarpy
sarpy-master/sarpy/io/xml/descriptors.py
""" This module contains the base objects for use in base xml/serializable functionality. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging import re from xml.etree import ElementTree from weakref import WeakKeyDictionary import numpy from numpy.linalg import norm from sarpy.io...
39,512
43.597065
118
py
sarpy
sarpy-master/sarpy/io/xml/__init__.py
__classification__ = 'UNCLASSIFIED'
37
11.666667
35
py
sarpy
sarpy-master/sarpy/io/phase_history/base.py
""" Base structures for phase history readers and usage """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, Tuple, Sequence, Dict, Optional import numpy from sarpy.io.general.base import BaseReader from sarpy.io.general.data_segment import DataSegment from sarpy.io.ph...
5,831
29.857143
109
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd.py
""" Module for reading and writing CPHD files. Support reading CPHD version 0.3 and 1 and writing version 1. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging import os from typing import Union, List, Tuple, Dict, BinaryIO, Optional, Sequence from collections import OrderedDict ...
66,150
34.412741
119
py
sarpy
sarpy-master/sarpy/io/phase_history/converter.py
""" This module provide utilities for reading essentially Compensated Phase History Data. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import os from typing import Callable from sarpy.io.general.base import SarpyIOError, check_for_openers from sarpy.io.phase_history.base import CPHDTypeRe...
2,063
23.282353
89
py
sarpy
sarpy-master/sarpy/io/phase_history/__init__.py
""" This package contains the elements for interpreting phase history data. """ __classification__ = 'UNCLASSIFIED' def open(*args, **kwargs): from .converter import open_phase_history return open_phase_history(*args, **kwargs)
239
20.818182
71
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/SceneCoordinates.py
""" The SceneCoordinates type definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, List from sarpy.io.xml.base import Serializable, SerializableArray, create_text_node from sarpy.io.xml.descriptors import FloatDescriptor, IntegerDescriptor, \ StringDescri...
16,766
38.359155
105
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/Dwell.py
""" The Dwell parameters definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import List from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import StringDescriptor, SerializableDescriptor, SerializableListDescriptor from sarpy.io.complex.sicd_elemen...
4,422
29.503448
105
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/base.py
__classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" DEFAULT_STRICT = False FLOAT_FORMAT = '0.17E'
118
13.875
35
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/TxRcv.py
""" The TxRcv type definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, List from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import FloatDescriptor, StringDescriptor, \ StringEnumDescriptor, SerializableListDescriptor from .base ...
8,516
37.022321
103
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/Antenna.py
""" The Antenna type definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, List, Tuple, Optional import numpy from .base import DEFAULT_STRICT, FLOAT_FORMAT from sarpy.io.complex.sicd_elements.blocks import Poly1DType, XYZType, \ XYZPolyType, Poly2DType f...
24,539
35.57228
108
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/ProductInfo.py
""" The ProductInfo elements. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, List import numpy from sarpy.io.xml.base import Serializable, ParametersCollection from sarpy.io.xml.descriptors import StringDescriptor, DateTimeDescriptor, \ ParametersDescriptor, S...
3,959
36.358491
118
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/Data.py
""" The DataType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import List from .base import DEFAULT_STRICT from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import StringDescriptor, StringEnumDescriptor, \ IntegerDescriptor, SerializableL...
10,417
41.008065
103
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/ErrorParameters.py
""" The error parameters type definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, Tuple, Optional from sarpy.io.xml.base import Serializable, ParametersCollection from sarpy.io.xml.descriptors import FloatDescriptor, SerializableDescriptor, \ ParametersD...
13,623
38.375723
128
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/CollectionID.py
""" The CollectionIDType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from .base import DEFAULT_STRICT from sarpy.io.complex.sicd_elements.CollectionInfo import CollectionInfoType from sarpy.io.xml.descriptors import StringDescriptor class CollectionIDType(CollectionInfoType)...
1,979
35
106
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/utils.py
""" Common utils for CPHD 1.0 functionality. """ import numpy __classification__ = "UNCLASSIFIED" __author__ = ("Thomas McCullough", "Daniel Pressler, Valkyrie") ######### # Module variables _DTYPE_LOOKUP = { "U1": numpy.dtype('>u1'), "U2": numpy.dtype('>u2'), "U4": numpy.dtype('>u4'), "U8": numpy.d...
3,556
27.456
118
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/PVP.py
""" The Per Vector parameters (PVP) definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, List, Tuple, Optional import numpy from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import StringDescriptor, IntegerDescriptor, \ Serializabl...
20,842
33.394389
92
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/Channel.py
""" The Channel definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, List, Tuple, Optional import numpy from .base import DEFAULT_STRICT, FLOAT_FORMAT from .blocks import POLARIZATION_TYPE, AreaType from sarpy.io.xml.base import Serializable, SerializableArr...
28,120
37.73416
103
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/GeoInfo.py
""" The GeoInfo definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from collections import OrderedDict from xml.etree import ElementTree from typing import List, Dict import numpy from sarpy.io.xml.base import Serializable, ParametersCollection, \ find_children, create_new_node ...
13,747
32.531707
117
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/SupportArray.py
""" The Support Array parameters definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from xml.etree import ElementTree from typing import Union, List, Tuple, Optional import numpy from sarpy.io.xml.base import Serializable, ParametersCollection, get_node_value from sarpy.io.xml.desc...
14,977
32.433036
118
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/CPHD.py
""" The Compensated Phase History Data 1.0.1 definition. """ __classification__ = "UNCLASSIFIED" __author__ = ("Thomas McCullough", "Daniel Pressler, Valkyrie") from xml.etree import ElementTree from collections import OrderedDict from typing import Union import numpy from sarpy.io.xml.base import Serializable, find...
20,628
38.978682
120
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/__init__.py
""" **This sub-package is a work in progress to encapsulate pythonic object-oriented CPHD structure 1.0.1 """ __classification__ = "UNCLASSIFIED"
147
23.666667
101
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/ReferenceGeometry.py
""" The reference geometry parameters definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union import numpy from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import FloatDescriptor, StringEnumDescriptor, \ SerializableDescriptor from sa...
17,797
40.779343
120
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/Global.py
""" The Global type definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union import numpy from sarpy.io.xml.base import Serializable, Arrayable from sarpy.io.xml.descriptors import FloatDescriptor, DateTimeDescriptor, \ StringEnumDescriptor, IntegerEnumDescri...
12,529
38.402516
108
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd1_elements/blocks.py
""" Basic building blocks for CPHD standard - mostly overlap with SICD elements """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, List import numpy from sarpy.io.xml.base import Serializable, Arrayable, SerializableArray from sarpy.io.xml.descriptors import Serializ...
9,153
26.739394
103
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd0_3_elements/Antenna.py
""" The Antenna definition for CPHD 0.3. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, List from sarpy.io.phase_history.cphd1_elements.base import DEFAULT_STRICT, FLOAT_FORMAT from sarpy.io.complex.sicd_elements.blocks import XYZPolyType from sarpy.io.complex.sicd...
5,442
29.926136
90
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd0_3_elements/Data.py
""" The DataType definition for CPHD 0.3. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import List from sarpy.io.phase_history.cphd1_elements.base import DEFAULT_STRICT from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import StringEnumDescriptor, Intege...
3,405
33.40404
104
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd0_3_elements/Channel.py
""" The Channel definition for CPHD 0.3. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, List from sarpy.io.phase_history.cphd1_elements.base import DEFAULT_STRICT, FLOAT_FORMAT from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import Integer...
4,906
37.03876
91
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd0_3_elements/VectorParameters.py
""" The SRP definition for CPHD 0.3. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union import numpy from sarpy.io.phase_history.cphd1_elements.base import DEFAULT_STRICT from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import SerializableDescrip...
10,466
30.244776
105
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd0_3_elements/CPHD.py
""" The Compensated Phase History Data 0.3 definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union from sarpy.io.phase_history.cphd1_elements.base import DEFAULT_STRICT from sarpy.io.complex.sicd_elements.CollectionInfo import CollectionInfoType from sarpy.io.co...
8,844
40.525822
113
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd0_3_elements/__init__.py
""" **This sub-package is a work in progress to encapsulate pythonic object-oriented CPHD structure 0.3 """ __classification__ = "UNCLASSIFIED"
145
23.333333
99
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd0_3_elements/SRP.py
""" The SRP definition for CPHD 0.3. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from typing import Union, List from sarpy.io.phase_history.cphd1_elements.base import DEFAULT_STRICT from sarpy.io.complex.sicd_elements.blocks import XYZType, XYZPolyType from sarpy.io.xml.b...
4,290
33.328
116
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd0_3_elements/Global.py
""" The Global type definition for CPHD 0.3. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, List import numpy from sarpy.io.phase_history.cphd1_elements.base import DEFAULT_STRICT, FLOAT_FORMAT from sarpy.io.complex.sicd_elements.base import SerializableCPArrayDes...
8,931
39.234234
102
py
sarpy
sarpy-master/sarpy/io/phase_history/cphd_schema/__init__.py
""" This package contains the CPHD schema """ __classification__ = 'UNCLASSIFIED' __author__ = "Thomas McCullough" import os import re from typing import List, Dict, Tuple, Union _CPHD_DEFAULT_TUPLE = (1, 1, 0) _the_directory = os.path.split(__file__)[0] urn_mapping = { 'urn:CPHD:0.3.0': { 'tuple': (0...
3,687
22.793548
91
py
sarpy
sarpy-master/sarpy/io/complex/base.py
""" Base common features for complex readers """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, Tuple, Sequence, Callable import numpy from sarpy.io.complex.sicd_elements.SICD import SICDType from sarpy.io.complex.sicd_elements.utils import is_general_match from sarpy...
9,108
34.034615
110
py
sarpy
sarpy-master/sarpy/io/complex/palsar2.py
""" Functionality for reading PALSAR ALOS 2 data into a SICD model. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging import os import struct from typing import Union, Tuple, List, Optional import numpy from numpy.polynomial import polynomial from scipy.constants import speed_o...
73,012
42.38265
120
py
sarpy
sarpy-master/sarpy/io/complex/csk.py
""" Functionality for reading Cosmo Skymed data into a SICD model. """ __classification__ = "UNCLASSIFIED" __author__ = ("Thomas McCullough", "Jarred Barber", "Wade Schwartzkopf") import logging from collections import OrderedDict import os import re from typing import Tuple, Dict, BinaryIO, Union, Optional from date...
35,415
45.174707
159
py
sarpy
sarpy-master/sarpy/io/complex/sicd.py
""" Module for reading and writing SICD files """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import re import logging from datetime import datetime from typing import BinaryIO, Union, Optional, Dict, Tuple, Sequence import numpy from sarpy.__about__ import __title__, __version__ from sarp...
34,414
36.205405
114
py
sarpy
sarpy-master/sarpy/io/complex/utils.py
""" Common functionality for converting metadata """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from typing import Iterator, Tuple, List, Optional, Union import numpy from numpy.polynomial import polynomial from scipy.stats import scoreatpercentile from scipy.linalg import l...
18,096
33.274621
120
py
sarpy
sarpy-master/sarpy/io/complex/tsx.py
""" Functionality for reading TerraSAR-X data into a SICD model. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import os import logging from xml.etree import ElementTree from typing import Union, List, Tuple, Optional, BinaryIO from functools import reduce import struct import numpy impor...
52,244
41.406656
118
py
sarpy
sarpy-master/sarpy/io/complex/iceye.py
""" Functionality for reading ICEYE complex data into a SICD model. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging import os from typing import Union, Tuple, Sequence, Optional import numpy from numpy.polynomial import polynomial from scipy.constants import speed_of_light f...
22,796
41.531716
111
py
sarpy
sarpy-master/sarpy/io/complex/aggregate.py
""" Functionality for an aggregate sicd type reader, for opening multiple sicd type files as a single reader object. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Tuple, Sequence, Union from sarpy.io.complex.converter import open_complex from sarpy.io.general.base impor...
2,833
31.574713
121
py
sarpy
sarpy-master/sarpy/io/complex/nisar.py
""" Functionality for reading NISAR data into a SICD model. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging import os from collections import OrderedDict from typing import Tuple, Dict, Union, List, Sequence, Optional import numpy from numpy.polynomial import polynomial from ...
30,180
37.252218
114
py
sarpy
sarpy-master/sarpy/io/complex/sentinel.py
""" Functionality for reading Sentinel-1 data into a SICD model. """ __classification__ = "UNCLASSIFIED" __author__ = ("Thomas McCullough", "Daniel Haverporth") import os import logging from datetime import datetime from xml.etree import ElementTree from typing import List, Tuple, Union, Optional import numpy from ...
56,354
48.915855
120
py
sarpy
sarpy-master/sarpy/io/complex/sio.py
""" Functionality for reading SIO data into a SICD model. """ __classification__ = "UNCLASSIFIED" __author__ = ("Thomas McCullough", "Wade Schwartzkopf") import os import sys import struct import logging import re from typing import Union, Dict, Tuple, Optional, BinaryIO import numpy from sarpy.io.complex.base imp...
20,035
38.753968
118
py
sarpy
sarpy-master/sarpy/io/complex/converter.py
""" This module provide utilities for converting from any complex format that we can read to SICD or SIO format. The same conversion utility can be used to subset data. """ __classification__ = "UNCLASSIFIED" __author__ = ("Wade Schwartzkopf", "Thomas McCullough", "Valkyrie Systems Corporation") import os import logg...
20,197
40.559671
121
py
sarpy
sarpy-master/sarpy/io/complex/__init__.py
""" This package contains the elements for interpreting complex radar data in a variety of formats. For non-SICD files, the radar metadata will be converted to something compatible with the SICD standard, to the extent feasible. It also permits converting complex data from any form which can be read to a file or files...
620
28.571429
95
py
sarpy
sarpy-master/sarpy/io/complex/radarsat.py
""" Functionality for reading Radarsat (RS2 and RCM) data into a SICD model. """ __classification__ = "UNCLASSIFIED" __author__ = ("Thomas McCullough", "Khanh Ho", "Wade Schwartzkopf", "Nathan Bombaci") import logging import re import os from datetime import datetime from xml.etree import ElementTree from typing imp...
80,332
46.282519
120
py
sarpy
sarpy-master/sarpy/io/complex/gff.py
""" Functionality for reading a GFF file into a SICD model. Note: This has been tested on files of version 1.8 and 2.5, but hopefully works for others. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging import os import struct from typing import Tuple, Union, BinaryIO, Optional f...
74,129
35.862258
122
py
sarpy
sarpy-master/sarpy/io/complex/capella.py
""" Functionality for reading Capella SAR data into a SICD model. **This functionality is really onl partially complete** """ __classification__ = "UNCLASSIFIED" __author__ = ("Thomas McCullough", "Wade Schwartzkopf") import logging import json from typing import Dict, Any, Tuple, Union, Optional from collections i...
20,008
37.552987
116
py
sarpy
sarpy-master/sarpy/io/complex/other_nitf.py
""" Work in progress for reading some other kind of complex NITF. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from typing import Union, Tuple, List, Optional, Callable, Sequence import copy from datetime import datetime import numpy from scipy.constants import foot from s...
45,508
36.987479
118
py
sarpy
sarpy-master/sarpy/io/complex/naming/utils.py
""" This module provide utilities for extracting a suggested name for a SICD. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging import pkgutil from importlib import import_module from datetime import datetime logger = logging.getLogger(__name__) ########### # Module variables _...
4,173
27.986111
96
py
sarpy
sarpy-master/sarpy/io/complex/naming/__init__.py
__classification__ = 'UNCLASSIFIED'
37
11.666667
35
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/MatchInfo.py
""" The MatchInfoType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from xml.etree import ElementTree from typing import List, Union, Dict, Optional from sarpy.io.xml.base import Serializable, ParametersCollection, \ get_node_value, find_first_child, find_children from sar...
8,888
37.647826
111
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/base.py
""" This module contains the base objects for use in the SICD elements, and the base serializable functionality. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from typing import Dict, Tuple, Optional import numpy from sarpy.io.xml.base import SerializableArray, create_new_...
5,105
34.706294
113
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/CollectionInfo.py
""" The CollectionInfo object definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import List, Union, Dict, Optional from sarpy.io.xml.base import Serializable, ParametersCollection from sarpy.io.xml.descriptors import StringDescriptor, StringEnumDescriptor, \ String...
5,859
36.564103
113
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/Antenna.py
""" The AntennaType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, Optional import numpy from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import BooleanDescriptor, FloatDescriptor, \ SerializableDescriptor from .base import...
9,216
36.46748
119
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/Position.py
""" The PositionType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import List, Union, Optional import numpy from sarpy.io.xml.base import Serializable, SerializableArray from sarpy.io.xml.descriptors import SerializableDescriptor, SerializableArrayDescriptor fro...
4,818
38.826446
115
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/RgAzComp.py
""" The RgAzCompType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from typing import Union import numpy from numpy.linalg import norm from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import FloatDescriptor, SerializableDescriptor from ...
3,652
33.462264
114
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/RMA.py
""" The RMAType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, Optional import numpy from numpy.linalg import norm from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import StringEnumDescriptor, FloatDescriptor, \ BooleanDesc...
11,787
39.788927
119
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/utils.py
""" Common use sicd_elements methods. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from typing import Optional, Tuple import numpy from sarpy.io.general.utils import get_seconds logger = logging.getLogger(__name__) def _get_center_frequency( RadarCollection, ...
5,931
23.411523
112
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/PFA.py
""" The PFAType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, Optional, Tuple import numpy from numpy.linalg import norm from numpy.polynomial import polynomial from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import BooleanDes...
13,752
40.424699
118
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/ImageFormation.py
""" The ImageFormationType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import List, Union, Optional, Dict, Tuple from datetime import datetime, date import numpy from sarpy.io.xml.base import Serializable, Arrayable, ParametersCollection from sarpy.io.xml.descri...
23,582
37.098546
119
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/validation_checks.py
""" The detailed and involved validity checks for the sicd structure. Note: These checks were originally implemented in the SICD component objects, but separating this implementation is probably less confusing in the long run. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import numpy from...
64,276
36.94392
151
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/Timeline.py
""" The TimelineType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import List, Union, Optional from datetime import datetime, date import numpy from sarpy.io.xml.base import Serializable, SerializableArray from sarpy.io.xml.descriptors import FloatDescriptor, Int...
8,454
38.694836
119
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/Grid.py
""" The GridType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from typing import Union, Optional, Dict, Tuple import numpy from numpy.linalg import norm from scipy.constants import speed_of_light from sarpy.processing.sicd.windows import general_hamming, taylo...
41,928
36.807935
117
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/__init__.py
""" **This sub-package is a work in progress to encapsulate pythonic object-oriented SICD structure 1.1 (2014-09-30).** This purpose of doing it this way is to encourage effective documentation and streamlined use of the SICD information. This provides more robustness than using structures with no built-in validation,...
442
43.3
118
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/Radiometric.py
""" The RadiometricType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, Optional import numpy from sarpy.io.xml.base import Serializable, find_first_child from sarpy.io.xml.descriptors import StringEnumDescriptor, SerializableDescriptor from .base impo...
8,534
43.453125
117
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/SICD.py
""" The SICDType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from copy import deepcopy import re from collections import OrderedDict from typing import Optional, Dict, Union, Tuple import numpy from sarpy.geometry import point_projection from sarpy.io.complex...
41,397
37.725912
120
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/SCPCOA.py
""" The SCPCOAType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging from typing import Union, Optional, Tuple import numpy from numpy.linalg import norm from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import StringEnumDescriptor, FloatDesc...
19,349
35.998088
120
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/ErrorStatistics.py
""" The ErrorStatisticsType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, Optional, Dict from sarpy.io.xml.base import Serializable, ParametersCollection from sarpy.io.xml.descriptors import StringEnumDescriptor, FloatDescriptor, \ SerializableDesc...
22,407
39.085868
117
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/ImageCreation.py
""" The ImageCreation elements. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Optional, Union import numpy from datetime import datetime, date from sarpy.io.xml.base import Serializable from sarpy.io.xml.descriptors import StringDescriptor, DateTimeDescriptor from .b...
2,133
29.927536
118
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/GeoData.py
""" The GeoData definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from collections import OrderedDict from xml.etree import ElementTree from typing import List, Union, Dict, Sequence, Optional import numpy from sarpy.io.xml.base import Serializable, SerializableArray, ParametersC...
16,031
35.60274
119
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/ImageData.py
""" The ImageData definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import List, Union, Optional import numpy from sarpy.io.xml.base import Serializable, Arrayable, SerializableArray from sarpy.io.xml.descriptors import IntegerDescriptor, FloatArrayDescriptor, \ S...
10,655
36.389474
118
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/RadarCollection.py
""" The RadarCollectionType definition. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import List, Union, Optional, Dict, Tuple import logging import numpy from sarpy.io.xml.base import Serializable, Arrayable, SerializableArray, \ ParametersCollection, parse_float from s...
45,426
36.982441
120
py
sarpy
sarpy-master/sarpy/io/complex/sicd_elements/blocks.py
""" Basic building blocks for SICD standard. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" from typing import Union, Optional, Tuple from collections import OrderedDict import numpy from sarpy.io.xml.base import Serializable, Arrayable, \ get_node_value, create_text_node, create_new_...
58,784
30.792861
118
py
sarpy
sarpy-master/sarpy/io/complex/sicd_schema/__init__.py
""" Tools for inspecting a SICD urn url and providing basic details. """ __classification__ = 'UNCLASSIFIED' __author__ = "Thomas McCullough" import os import re from typing import List, Tuple, Dict, Optional _SICD_DEFAULT_TUPLE = (1, 3, 0) _SICD_SPECIFICATION_IDENTIFIER = 'SICD Volume 1 Design & Implementation Des...
5,598
25.918269
112
py
sarpy
sarpy-master/sarpy/io/DEM/DEM.py
""" Establish base expected functionality for digital elevation model handling. """ import numpy from typing import List __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" class DEMInterpolator(object): """ Abstract DEM class presenting base required functionality. """ def get_ele...
4,862
28.834356
91
py
sarpy
sarpy-master/sarpy/io/DEM/DTED.py
""" Classes and methods for parsing and using digital elevation models in DTED format. """ __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" import logging import os import struct import numpy from sarpy.io.DEM.DEM import DEMList, DEMInterpolator from sarpy.io.DEM.utils import argument_validation...
29,459
35.733167
114
py
sarpy
sarpy-master/sarpy/io/DEM/geoid.py
""" Provides a class for calculating the height of the WGS84 geoid above the ellipsoid at any given latitude and longitude. **Some Accuracy Details:** Using the 5 minute pgm and linear interpolation, the average error `|calculated - real|` is around 5 millimeters, and the worst case error is around 30 centimeters. Usi...
13,323
35.50411
100
py
sarpy
sarpy-master/sarpy/io/DEM/geotiff1deg.py
""" Classes and methods for parsing and using digital elevation models (DEM) in GeoTIFF format. This code makes the following assumptions. 1. The GeoTIFF files tile the earth with one degree offsets in both latitude and longitude. 2. There is one pixel of overlap between adjacent tiles. 3. The south-west c...
27,090
42.624799
119
py
sarpy
sarpy-master/sarpy/io/DEM/utils.py
import numpy __author__ = "Thomas McCullough" __classification__ = "UNCLASSIFIED" def argument_validation(lat, lon): if not isinstance(lat, numpy.ndarray): lat = numpy.array(lat) if not isinstance(lon, numpy.ndarray): lon = numpy.array(lon) if lat.shape != lon.shape: raise ValueE...
584
25.590909
74
py