sarxarray
sarxarray copied to clipboard
Reading binary data with separated REAL and IMAG part
Some SAR data providers provide binary complex data in two files, separating real and imaginary part.
For example check this path:
ls /project/caroline/Share/users/caroline-fvanleijen/projects/saocom/saocom_test/20230415/merged.data
files:
i_HH_mst_28Mar2023.hdr i_HH_slv1_13Apr2023.hdr q_HH_mst_28Mar2023.hdr q_HH_slv1_13Apr2023.hdr
i_HH_mst_28Mar2023.img i_HH_slv1_13Apr2023.img q_HH_mst_28Mar2023.img q_HH_slv1_13Apr2023.img
files starting with i are real data, q are imagenary data. img are binary files, hdr are metadata files.
Now the from_binary function assumes complex data are saved in one binary. We should consider expand it for this case.
If we have SNAP working, this might be something we need to work on