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 Kommentare

Ameer Hamza
Ameer Hamza am 11 Nov. 2020
gz is a format for compressed file? Don't you get the original file when you uncompress it?
Meghan Rochford
Meghan Rochford am 11 Nov. 2020
Hi, I just seem to be getting a file with the same name but without an extension. It's almost as if the decompression is just making a shell file?
Ameer Hamza
Ameer Hamza am 11 Nov. 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
Walter Roberson am 11 Nov. 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
Sourabh Kondapaka am 16 Nov. 2020
Have you tried the suggestions made by Ameer Hamza and Walter Roberson ?
Meghan Rochford
Meghan Rochford am 16 Nov. 2020
Bearbeitet: Meghan Rochford am 16 Nov. 2020
Hi, apologies for the slow reply.
I've opened it with Notepad and Notepad++ and the files just seem to contain the following (for thousands of lines)
Format 3 ª×š*.ª%ÿ)Ü»B ÿÙš*Õ®%ÿR¸»B  óš*½Ê%ÿHá¹B õõš*cÏ%ÿ®GºB žúš*
Ô%ÿHá¹B Gÿš*±Ø%ÿ¸ž¹B ð›*±Ø%ÿÃõ¸B æ›*™ô%ÿÍ̺B $›*?ù%ÿìQ»B 9)›*æý%ÿš™»B â-›*&ÿHa¼B ‹2›*3&ÿ×£¼B ß4›*3&ÿq=¼B ˆ9›*Ú&ÿfæ¼B 1>›*&ÿ¤p½B ÚB›*'&ÿ3³½B ƒG›*'&ÿ¤p½B ØI›*Î&ÿfæ¼B N›*u&ÿ¤p½B *S›*#&ÿÃõ½B ÓW›*Â'&ÿR8¾B |\›*Â'&ÿ\½B Ñ^›*i,&ÿš¾B zc›*1&ÿ.½B #h›*¶5&ÿfæ¼B Ìl›*]:&ÿ¤p½B uq›*?&ÿ3³½B v›*ªC&ÿ
×½B rx›*ªC&ÿ.½B }›*QH&ÿfæ¼B k›*ëZ&ÿ
×½B ’›*FŽ%ÿ ¹B ’›*ëZ&ÿÃõ½B ½–›*FŽ%ÿq½¸B ½–›*’_&ÿ\½B f››*9d&ÿ3³½B »›*ßh&ÿR8¾B d¢›*†m&ÿ
×½B
As for where I got them, they were downloaded from an Olex machine on a workboat.
Cheers
Meghan
Walter Roberson
Walter Roberson am 16 Nov. 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
Sourabh Kondapaka am 17 Nov. 2020
On the official website, you can download their software from this link. In their manual, Page 57, they talk about exporting data to other formats. Please try them.
Walter Roberson
Walter Roberson am 17 Nov. 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
Meghan Rochford am 17 Nov. 2020
Thanks Walter, yes the data has already been downloaded and saved on our system. It is about being able to open that data in Matlab that is my issue and question.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Rohit Pappu
Rohit Pappu am 25 Nov. 2020

0 Stimmen

For unzipping a .gz file, gunzip function can be used

2 Kommentare

Walter Roberson
Walter Roberson am 25 Nov. 2020
Bearbeitet: Walter Roberson am 25 Nov. 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
Meghan Rochford am 25 Nov. 2020
It seems that I probably won't get the answer I need so we've decided to just not use this data/method of data collection going forward. Thanks anyway :)

Melden Sie sich an, um zu kommentieren.

Kategorien

Produkte

Version

R2020a

Gefragt:

am 11 Nov. 2020

Kommentiert:

am 25 Nov. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by