umr-lops / xsar

Synthetic Aperture Radar (SAR) Level-1 GRD python mapper for efficient xarray/dask based processing
https://cyclobs.ifremer.fr/static/sarwing_datarmor/xsar/
MIT License
29 stars 8 forks source link

restore default behavior for SLC product: only show Digital Numbers in `dt[measurement]` #211

Closed agrouaze closed 6 months ago

agrouaze commented 6 months ago

address issue #209

content of measurement

dt['measurement']
DataTree('measurement', parent="None")
    Dimensions:         (line: 13545, sample: 25072, pol: 2)
    Coordinates:
      * line            (line) int64 108kB 0 1 2 3 4 ... 13541 13542 13543 13544
      * sample          (sample) int64 201kB 0 1 2 3 4 ... 25068 25069 25070 25071
      * pol             (pol) object 16B 'VV' 'VH'
    Data variables:
        digital_number  (pol, line, sample) complex64 5GB dask.array<chunksize=(1, 5000, 5000), meta=np.ndarray>
        time            (line) datetime64[ns] 108kB 2020-11-14T18:56:53.472650 .....
        sampleSpacing   float64 8B 2.33
        lineSpacing     float64 8B 13.96
    Attributes: (12/15)
        name:              SENTINEL1_DS:/home/datawork-cersat-public/project/mpc-...
        short_name:        SENTINEL1_DS:S1B_IW_SLC__1SDV_20201114T185653_20201114...
        product:           SLC
        safe:              S1B_IW_SLC__1SDV_20201114T185653_20201114T185720_02426...
        swath:             IW
        multidataset:      False
        ...                ...
        start_date:        2020-11-14 18:56:53.472650
        stop_date:         2020-11-14 18:57:18.620326
        footprint:         POLYGON ((-13.86419610441108 28.35736004678626, -12.93...
        coverage:          171km * 92km (line * sample )
        orbit_pass:        Ascending
        platform_heading:  -12.61623021245103

RAM footprint

get_memory_usage()
'RAM usage: 11.0 Go'