Reading .gz file
Mostrar comentarios más antiguos
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 comentarios
Ameer Hamza
el 11 de Nov. de 2020
gz is a format for compressed file? Don't you get the original file when you uncompress it?
Meghan Rochford
el 11 de Nov. de 2020
Ameer Hamza
el 11 de Nov. de 2020
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
el 11 de Nov. de 2020
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
el 16 de Nov. de 2020
Meghan Rochford
el 16 de Nov. de 2020
Editada: Meghan Rochford
el 16 de Nov. de 2020
Walter Roberson
el 16 de Nov. de 2020
I find Olex.no as the source of the file format, but I am having difficulty finding information about the file format.
Sourabh Kondapaka
el 17 de Nov. de 2020
Walter Roberson
el 17 de Nov. de 2020
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
el 17 de Nov. de 2020
Respuestas (1)
Rohit Pappu
el 25 de Nov. de 2020
0 votos
2 comentarios
Walter Roberson
el 25 de Nov. de 2020
Editada: Walter Roberson
el 25 de Nov. de 2020
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
el 25 de Nov. de 2020
Categorías
Más información sobre Standard File Formats en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!