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
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
Meghan Rochford 2020년 11월 11일
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 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
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
Sourabh Kondapaka 2020년 11월 16일
Have you tried the suggestions made by Ameer Hamza and Walter Roberson ?
Meghan Rochford
Meghan Rochford 2020년 11월 16일
편집: Meghan Rochford 2020년 11월 16일
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 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
Sourabh Kondapaka 2020년 11월 17일
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 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
Meghan Rochford 2020년 11월 17일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Rohit Pappu
Rohit Pappu 2020년 11월 25일

0 개 추천

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

댓글 수: 2

Walter Roberson
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
Meghan Rochford 2020년 11월 25일
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 :)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Standard File Formats에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 11월 11일

댓글:

2020년 11월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by