|
| 1 | +def DatasetSummaryRecordType(): |
| 2 | + ''' |
| 3 | + Data Set Summary Record. |
| 4 | + https://www.eorc.jaxa.jp/ALOS-2/en/doc/fdata/PALSAR-2_xx_Format_CEOS_E_f.pdf |
| 5 | + ''' |
| 6 | + from isce3.parsers.CEOS.BasicTypes import (BlankType, StringType, IntegerType, FloatType, MultiType) |
| 7 | + from isce3.parsers.CEOS.CEOSHeaderType import CEOSHeaderType |
| 8 | + |
| 9 | + #Common part of CEOS header (modified) |
| 10 | + inlist = CEOSHeaderType().mapping |
| 11 | + inlist += [('DSRecordSequenceNumber', IntegerType(4)), |
| 12 | + ('SARChannelIndicator', StringType(4)), |
| 13 | + ('SceneIdentifier', StringType(32)), |
| 14 | + ('SceneDesignator', StringType(16)), |
| 15 | + ('InputSceneCenterTime', StringType(32)), |
| 16 | + ('blanks1', BlankType(16)), |
| 17 | + ('SceneCenterLatitude', BlankType(16)), |
| 18 | + ('SceneCenterLongitude', BlankType(16)), |
| 19 | + ('SceneCenterHeading', BlankType(16)), |
| 20 | + ('EllipsoidDesignator', StringType(16)), |
| 21 | + ('EllipsoidSemiMajorAxisInKm', FloatType(16)), |
| 22 | + ('EllipsoidSemiMinorAxisInKm', FloatType(16)), |
| 23 | + ('EarthMassIn1024Kg', FloatType(16)), |
| 24 | + ('GravitationalConstant', FloatType(16)), |
| 25 | + ('EllipsoidJ2Parameter', FloatType(16)), |
| 26 | + ('EllipsoidJ3Parameter', FloatType(16)), |
| 27 | + ('EllipsoidJ4Parameter', FloatType(16)), |
| 28 | + ('blanks2', BlankType(16)), |
| 29 | + ('AverageTerrainHeight', FloatType(16)), |
| 30 | + ('SceneCenterLineNumber', IntegerType(8)), |
| 31 | + ('SceneCenterPixelNumber', IntegerType(8)), |
| 32 | + ('ProcessedSceneLengthInKm', FloatType(16)), |
| 33 | + ('ProcessedSceneWidthInKm', FloatType(16)), |
| 34 | + ('blanks3', BlankType(16)), |
| 35 | + ('NumberOfSARChannels', IntegerType(4)), |
| 36 | + ('blanks4', BlankType(4)), |
| 37 | + ('SensorPlatformMissionIdentifier', StringType(16)), |
| 38 | + ('SensorIDAndMode', StringType(32)), |
| 39 | + ('OrbitNumber', IntegerType(8)), |
| 40 | + ('SensorPlatformLatitude', BlankType(8)), |
| 41 | + ('SensorPlatformLongitude', BlankType(8)), |
| 42 | + ('SensorPlatformHeading', BlankType(8)), |
| 43 | + ('SensorClockAngle', FloatType(8)), |
| 44 | + ('SceneCenterIncidenceAngle', FloatType(8)), |
| 45 | + ('blanks5', BlankType(8)), |
| 46 | + ('RadarWavelengthInm', FloatType(16)), |
| 47 | + ('MotionCompensationIndicator', StringType(2)), |
| 48 | + ('RangePulseCodeSpecifier', StringType(16)), |
| 49 | + ('RangePulseAmplitudeCoefficientDCTerm', FloatType(16)), |
| 50 | + ('RangePulseAmplitudeCoefficientLinearTerm', FloatType(16)), |
| 51 | + ('RangePulseAmplitudeCoefficientQuadraticTerm', FloatType(16)), |
| 52 | + ('RangePulseAmplitudeCoefficientCubicTerm', FloatType(16)), |
| 53 | + ('RangePulseAmplitudeCoefficientQuarticTerm', FloatType(16)), |
| 54 | + ('RangePulsePhaseCoefficientDCTerm', FloatType(16)), |
| 55 | + ('RangePulsePhaseCoefficientLinearTerm', FloatType(16)), |
| 56 | + ('RangePulsePhaseCoefficientQuadraticTerm', FloatType(16)), |
| 57 | + ('RangePulsePhaseCoefficientCubicTerm', FloatType(16)), |
| 58 | + ('RangePulsePhaseCoefficientQuarticTerm', FloatType(16)), |
| 59 | + ('DownlinkedDataChirpExtractionIndex', BlankType(8)), |
| 60 | + ('blanks6', BlankType(8)), |
| 61 | + ('SamplingRateInMHz', FloatType(16)), |
| 62 | + ('RangeGateAtEarlyEdgeAtStartOfImageInusec', FloatType(16)), |
| 63 | + ('RangePulseLengthInusec', FloatType(16)), |
| 64 | + ('BasebandConversionFlag', StringType(4)), |
| 65 | + ('RangeCompressedFlag', StringType(4)), |
| 66 | + ('ReceiverGainCopolEarlyEdgeindB', FloatType(16)), |
| 67 | + ('ReceiverGainXpolEarlyEdgeindB', FloatType(16)), |
| 68 | + ('QuantizationBitsPerChannel', IntegerType(8)), |
| 69 | + ('QuantizationDescriptor', StringType(12)), |
| 70 | + ('DCBiasIComponent', FloatType(16)), |
| 71 | + ('DCBiasQComponent', FloatType(16)), |
| 72 | + ('GainImbalanceforIQ', FloatType(16)), |
| 73 | + ('blanks7', BlankType(16)), |
| 74 | + ('blanks8', BlankType(16)), |
| 75 | + ('AntennaElectronicBoresightInDeg', FloatType(16)), |
| 76 | + ('AntennaMechanicalBoresightInDeg', FloatType(16)), |
| 77 | + ('EchoTrackerOnOffFlag', StringType(4)), |
| 78 | + ('NominalPRFInmHz', FloatType(16)), |
| 79 | + ('EffectiveTwoWayAntennaElevation3dBBeamwidthInDeg', FloatType(16)), |
| 80 | + ('EffectiveTwoWayAntennaAzimuth3dBBeamwidthInDeg', FloatType(16)), |
| 81 | + ('SatelliteEncodedBinaryTimeCode', IntegerType(16)), |
| 82 | + ('SatelliteClockTime', StringType(32)), |
| 83 | + ('SatelliteClockIncrementInnsec', IntegerType(16)), |
| 84 | + ('ProcessingFacilityIdentifier', StringType(16)), |
| 85 | + ('ProcessingSystemIdentifier', StringType(8)), |
| 86 | + ('ProcessingVersionIdentifier', StringType(8)), |
| 87 | + ('ProcessingFacilityProcessCode', StringType(16)), |
| 88 | + ('ProductLevelCode', StringType(16)), |
| 89 | + ('ProductTypeSpecifier', StringType(32)), |
| 90 | + ('ProcessingAlgorithmIdentifier', StringType(32)), |
| 91 | + ('NominalEffectiveAzimuthLooks', FloatType(16)), |
| 92 | + ('NominalEffectiveRangeLooks', FloatType(16)), |
| 93 | + ('BandwidthPerLookInAzimuthHz', FloatType(16)), |
| 94 | + ('BandwidthPerLookInRangeHz', FloatType(16)), |
| 95 | + ('TotalProcessorBandwidthInAzimuth', FloatType(16)), |
| 96 | + ('TotalProcessorBandwidthInRange', FloatType(16)), |
| 97 | + ('WeightingFunctionInAzimuth', StringType(32)), |
| 98 | + ('WeightingFunctionInRange', StringType(32)), |
| 99 | + ('DataInputSource', StringType(16)), |
| 100 | + ('Nominal3dBResolutionInGroundRangeInm', FloatType(16)), |
| 101 | + ('Nominal3dBResolutionInAzimuthInm', FloatType(16)), |
| 102 | + ('ConstantRadiometricParameterBias', FloatType(16)), |
| 103 | + ('LinearRadiometricParameterGain', FloatType(16)), |
| 104 | + ('AlongTrackDopplerConstantTermInHz', FloatType(16)), |
| 105 | + ('AlongTrackDopplerLinearTermInHzPerPixel', FloatType(16)), |
| 106 | + ('AlongTrackDopplerQuadraticTermInHzPerPixel2', FloatType(16)), |
| 107 | + ('blanks9', BlankType(16)), |
| 108 | + ('CrossTrackDopplerConstantTermInHz', FloatType(16)), |
| 109 | + ('CrossTrackDopplerLinearTermInHzPerPixel', FloatType(16)), |
| 110 | + ('CrossTrackDopplerLinearTermInHzPerPixel2', FloatType(16)), |
| 111 | + ('TimeDirectionIndicatorAlongPixel', StringType(8)), |
| 112 | + ('TimeDirectionIndicatorAlongLine', StringType(8)), |
| 113 | + ('AlongTrackDopplerRateConstantTermInHzPerSec', FloatType(16)), |
| 114 | + ('AlongTrackDopplerRateLinearTermInHzPerSecPerPixel', FloatType(16)), |
| 115 | + ('AlongTrackDopplerRateQuadraticTermInHzPerSecPerPixel2', FloatType(16)), |
| 116 | + ('blanks10', BlankType(16)), |
| 117 | + ('CrossTrackDopplerRateConstantTermInHzPerSec', FloatType(16)), |
| 118 | + ('CrossTrackDopplerRateLinearTermInHzPerSecPerPixel', FloatType(16)), |
| 119 | + ('CrossTrackDopplerRateQuadraticTermInHzPerSecPerPixel2', FloatType(16)), |
| 120 | + ('blanks11', BlankType(16)), |
| 121 | + ('LineContentIndicator', StringType(8)), |
| 122 | + ('ClutterLockAppliedFlag', StringType(4)), |
| 123 | + ('AutoFocusingAppliedFlag', StringType(4)), |
| 124 | + ('LineSpacingInm', FloatType(16)), |
| 125 | + ('PixelSpacingInm', FloatType(16)), |
| 126 | + ('ProcessorRangeCompressionDesignator', StringType(16)), |
| 127 | + ('DopplerCenterFrequencyConstantTerm', FloatType(16)), |
| 128 | + ('DopplerCenterFrequencyLinearTerm', FloatType(16))] |
| 129 | + |
| 130 | + #ALOS specific trailer |
| 131 | + inlist += [('CalibrationDataIndicator', IntegerType(4)), |
| 132 | + ('StartLineNumberCalibrationUpper', IntegerType(8)), |
| 133 | + ('StopLineNumberCalibrationUpper', IntegerType(8)), |
| 134 | + ('StartLineNumberCalibrationBottom', IntegerType(8)), |
| 135 | + ('StopLineNumberCalibrationBottom', IntegerType(8)), |
| 136 | + ('PRFSwitchingIndicator', IntegerType(4)), |
| 137 | + ('LineLocatorOfPRFSwitching', IntegerType(8)), |
| 138 | + ('blanks14', BlankType(16)), |
| 139 | + ('YawSteeringModeFlag', IntegerType(4)), |
| 140 | + ('ParameterTableNumber', IntegerType(4)), |
| 141 | + ('NominalOffNadirAngle', FloatType(16)), |
| 142 | + ('AntennaBeamNumber', IntegerType(4)), |
| 143 | + ('blanks15', BlankType(28)), |
| 144 | + ('blanks16', BlankType(120)), |
| 145 | + ('NumberOfAnnotationPoints', IntegerType(8)), |
| 146 | + ('blanks17', BlankType(2082))] |
| 147 | + |
| 148 | + return MultiType( inlist ) |
| 149 | + |
0 commit comments