How to read satellite data with .dim and .data folder in Matlab

9 views (last 30 days)
I am using satellite data which is consisted of one .dim file and folder with the format of .data, insider this folder there are several .hdr and .img files.
Adding to that inside .data folder there is another folder which has 2 CSV file which is attached here if it helps. It looks that they are providing some key parameters.
If I want to read an HDR file "hdrread" gives some error as mentioned here.
How can I read these files together to extract information?! Converting it to .nc format is very helpful but I am wondering if that is possible?!
So many thanks
Error using hdrread>readHeader (line 65)
Not a Radiance file.
Error in hdrread (line 31)
fileinfo = readHeader(fid);
  2 Comments
dpb
dpb on 23 Jan 2021
Well, it would appear the header file you have isn't compatible with the hdrread function -- the only one I find on MATLAB site says
"hdr = hdrread(filename)
reads the high dynamic range (HDR) image, hdr, from the file specified by filename"
which doesn't sound at all appropriate for what you're describing.
Would need to know a lot more about from whence came these data and what the originator of same says is available to read them.
FSh
FSh on 25 Jan 2021
Thank you for your response.
The data we are talking about is a SAR image from the sentinal 1 satellite. If I use SNAP software I have no problem reading and process but importing data with conversion to Matlab needs special ability. The hdr files are so bulky consisting of like 10767*10136 pixels. But I am sharing with you an example that you can download from this link "https://www.transfernow.net/N9mXQz012021". But you can find the structure of data in the image. I would be happy to provide the information as you expected, just please let me know. So many thanks.

Sign in to comment.

Answers (1)

dpb
dpb on 25 Jan 2021
I was looking for the support site for the source of the data -- generally there will be links to how to use the data with MATLAB and other packages/languages provided.
A search led me to a few links that may be of help although you can probably be more effective in looking than I since you know where the original repository/source is; I don't (and I don't have any of the image or geo MATLAB toolboxen anyways, even if I did).
  1 Comment
FSh
FSh on 27 Jan 2021
Although the links are very helpful they are not helping me. My images are processed and I can not convert them to normal life(First link). My only option would be BigTIFF and again that creates a folder for metadata and I could not import that correctly to Matlab.
However, I am thankful for your time and attention.

Sign in to comment.

Categories

Find more on Reference Applications in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!