Reading .gz file
显示 更早的评论
Hello
I have a .gz file that contains bathymetry data (hopefully!). I read online that it should be unzipped first so I tried this in 7zip. However, once I did that, the file no longer has an extension.
Is it possible to open and view this file in Matlab? Ideally I want a .txt file out of it so I can interrogate the data.
Thanks in advance for your help. I've can't attached the file as it exceeds 5MB.
10 个评论
Ameer Hamza
2020-11-11
gz is a format for compressed file? Don't you get the original file when you uncompress it?
Meghan Rochford
2020-11-11
Ameer Hamza
2020-11-11
You can try to see the content of the file by opening with a text editor. It might be the case that the original file also does not have an extension.
Walter Roberson
2020-11-11
bathymetry data files do not always have extensions. Sometimes they are text files, but sometimes they are binary files such as NETCAT format. There might already be tools available to read the files. Where did you get them?
Sourabh Kondapaka
2020-11-16
Meghan Rochford
2020-11-16
编辑:Meghan Rochford
2020-11-16
Walter Roberson
2020-11-16
I find Olex.no as the source of the file format, but I am having difficulty finding information about the file format.
Sourabh Kondapaka
2020-11-17
Walter Roberson
2020-11-17
That manual just talks about mechanics such as using floppy diskettes to save the data, and does not talk about file formats. It is not relevant as the data has already been saved online and the question is how to import the data into MATLAB.
Meghan Rochford
2020-11-17
回答(1 个)
Rohit Pappu
2020-11-25
0 个投票
2 个评论
Walter Roberson
2020-11-25
编辑:Walter Roberson
2020-11-25
That is not the question. The user already unzipped the file, getting out a file with no extension, and the user wants to read the file.
The manufacturer is Olex.no but I cannot seem to find any documentation about the file format. I did find another commercial vendor which can read the files, but that does not really help.
Meghan Rochford
2020-11-25
类别
在 帮助中心 和 File Exchange 中查找有关 Standard File Formats 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!