An open API service indexing awesome lists of open source software.

https://github.com/umr-lops/xradarsat2

python xarray reader for RadarSat-2 products
https://github.com/umr-lops/xradarsat2

python3 radarsat reader xarray xml

Last synced: 5 months ago
JSON representation

python xarray reader for RadarSat-2 products

Awesome Lists containing this project

README

          

# xsar

radarSat2 Level 1 python reader for efficient xarray/dask based processor

# Install

```
conda install -c conda-forge xradarsat2
```

```pycon
>>> import xradarsat2
>>> folder_path = "/level1/root/directory"
>>> xradarsat2.rs2_reader(folder_path)
DataTree('None', parent=None)
├── DataTree('orbitAndAttitude')
│ Dimensions: (timeStamp: 7)
│ Coordinates:
│ * timeStamp (timeStamp) datetime64[ns] 2010-10-15T21:01:32.370461 ... 2010...
│ Data variables:
│ yaw (timeStamp) float64 3.756 3.773 3.785 3.792 3.807 3.82 3.83
│ roll (timeStamp) float64 -29.8 -29.8 -29.8 -29.8 -29.8 -29.8 -29.8
│ pitch (timeStamp) float64 0.002605 0.002862 ... -0.001594 -0.001443
│ xPosition (timeStamp) float64 -5.072e+06 -5.076e+06 ... -5.087e+06
│ yPosition (timeStamp) float64 4.643e+06 4.676e+06 ... 4.799e+06 4.828e+06
│ zPosition (timeStamp) float64 2.033e+06 1.944e+06 ... 1.584e+06 1.494e+06
│ xVelocity (timeStamp) float64 -425.7 -352.1 -278.6 ... -131.8 -58.51 14.65
│ yVelocity (timeStamp) float64 2.642e+03 2.58e+03 ... 2.324e+03 2.259e+03
│ zVelocity (timeStamp) float64 -7.063e+03 -7.09e+03 ... -7.207e+03
│ Attributes:
│ attitudeDataSource: Downlink
│ attitudeOffsetsApplied: true
│ Description: Attitude Information Data Store. Orbit Informati...
├── DataTree('geolocationGrid')
│ Dimensions: (line: 11, pixel: 11)
│ Coordinates:
│ * line (line) int64 0 1007 2015 3023 4031 5039 6046 7054 8062 9070 10078
│ * pixel (pixel) int64 0 1043 2086 3129 4172 ... 6258 7301 8344 9387 10431
│ Data variables:
│ latitude (line, pixel) float64 17.97 17.89 17.8 ... 12.77 12.67 12.57
│ longitude (line, pixel) float64 130.4 130.9 131.4 ... 133.3 133.8 134.3
│ height (line, pixel) float64 0.0 0.0 0.0 0.0 0.0 ... 0.0 0.0 0.0 0.0 0.0
│ Attributes: (12/13)
│ productFormat: GeoTIFF
│ outputMediaInterleaving: BSQ
│ rasterAttributes_dataType: Magnitude Detected
│ rasterAttributes_bitsPerSample_dataStream: Magnitude
│ rasterAttributes_bitsPerSample_value: 16
│ rasterAttributes_numberOfSamplesPerLine: 10432
│ ... ...
│ rasterAttributes_sampledPixelSpacing_units: m
│ rasterAttributes_sampledPixelSpacing_value: 50.0
│ rasterAttributes_sampledLineSpacing_units: m
│ rasterAttributes_sampledLineSpacing_value: 50.0
│ rasterAttributes_lineTimeOrdering: Increasing
│ rasterAttributes_pixelTimeOrdering: Decreasing
├── DataTree('imageGenerationParameters')
│ ├── DataTree('doppler')
│ │ ├── DataTree('dopplerCentroid')
│ │ │ Dimensions: (timeOfDopplerCentroidEstimate: 5,
│ │ │ n-Coefficients: 5)
│ │ │ Coordinates:
│ │ │ * timeOfDopplerCentroidEstimate (timeOfDopplerCentroidEstimate) datetime64[ns] ...
│ │ │ * n-Coefficients (n-Coefficients) int64 0 1 2 3 4
│ │ │ Data variables:
│ │ │ dopplerAmbiguity (timeOfDopplerCentroidEstimate) int64 0 ...
│ │ │ dopplerAmbiguityConfidence (timeOfDopplerCentroidEstimate) float64 ...
│ │ │ dopplerCentroidReferenceTime (timeOfDopplerCentroidEstimate) float64 ...
│ │ │ dopplerCentroidPolynomialPeriod (timeOfDopplerCentroidEstimate) float64 ...
│ │ │ dopplerCentroidCoefficients (timeOfDopplerCentroidEstimate, n-Coefficients) float64 ...
│ │ │ dopplerCentroidConfidence (timeOfDopplerCentroidEstimate) float64 ...
│ │ │ Attributes:
│ │ │ Description: Doppler Centroid Data Store
│ │ └── DataTree('dopplerRateValues')
│ │ Dimensions: (dopplerRateReferenceTime: 1,
│ │ n-RateValuesCoefficients: 3)
│ │ Coordinates:
│ │ * dopplerRateReferenceTime (dopplerRateReferenceTime) float64 0.005568
│ │ * n-RateValuesCoefficients (n-RateValuesCoefficients) int64 0 1 2
│ │ Data variables:
│ │ dopplerRateValues (dopplerRateReferenceTime, n-RateValuesCoefficients) float64 ...
│ │ Attributes:
│ │ Description: Doppler Rate Values Data Store.
│ └── DataTree('chirp')
│ Dimensions: (pole: 1, n-amplitudeCoefficients: 4,
│ n-phaseCoefficients: 4)
│ Coordinates:
│ * pole (pole)