Rinex conversion : ...
 
Notifications
Clear all

Rinex conversion : (*.gz) -----> (*.Z)

9 Posts
3 Users
0 Reactions
3 Views
(@geodesist)
Posts: 49
Trusted Member Registered
Topic starter
 

Dear colleagues

Please, how to convert the new Rinex format from (*.gz) to (*.Z)

ex: ajac0600.21d.gz?ÿ ?ÿ ?ÿ ?ÿ ?ÿ ?ÿ ?ÿto?ÿ ?ÿ ?ÿ ?ÿ ?ÿ ajac0600.21d.Z

Thank you for your assistance

 
Posted : 09/02/2022 10:42 am
(@john-hamilton)
Posts: 3347
Famed Member Registered
 

Both are compressed formats, I would think you have to uncompress from *.gz and then recompress to *.Z.

I believe 7-Zip will do both conversions.?ÿ

https://www.7-zip.org/download.html

?ÿ

 
Posted : 09/02/2022 10:54 am
(@geeoddmike)
Posts: 1556
Noble Member Registered
 

The file names you list are compressed using Hatanaka compression. The raw observation data is converted to RINEX compressed using Hatanaka then compressed using gzip or Z. Files undergoing this process have a ƒ??dƒ? at the last character (not the usual ƒ??oƒ?).

For more detail see:

http://sopac.ucsd.edu/hatanaka.shtml

?ÿ

BTW if you have a Hatanaka compressed file you must run ƒ??crx2rnxƒ? to obtain an uncompressed file.

US users of NGS CORS data might find this of interest:

360F507D 33B2 4AF0 A1EA D87633DAE0A5
 
Posted : 09/02/2022 3:38 pm
(@geodesist)
Posts: 49
Trusted Member Registered
Topic starter
 

@geeoddmike Thank you very much for your help.

Please, In the routines?ÿI developed (Matlab code) to estimate the ionospheric TEC, I usually use the extension (*.o), but you just told me that the final extension will be (*.d). So, should I redo my programs?

Cordially

 
Posted : 10/02/2022 2:01 am
(@geodesist)
Posts: 49
Trusted Member Registered
Topic starter
 

@john-hamilton?ÿ

Thank you very much, Please did you use the final extension (*.d) in your work?

since they eliminated the extension (*.o).

 
Posted : 10/02/2022 2:05 am
(@john-hamilton)
Posts: 3347
Famed Member Registered
 

@geodesist As GeeoddMike mentioned, the files are hatanaka compressed rinex. Rinex is a plain text ascii file. I don't know of any programs that use the hatanaka compressed format, but they may exist. I was only answering your original question, how to get from .gz to .Z

 
Posted : 10/02/2022 6:05 am
(@geodesist)
Posts: 49
Trusted Member Registered
Topic starter
 

@john-hamilton thank you

 
Posted : 10/02/2022 11:17 am
(@geeoddmike)
Posts: 1556
Noble Member Registered
 

@geodesist?ÿ

I hope you review the information at the SOPAC link in my original reply.

The file names you provided in your initial post:?ÿajac0600.21d.gz ?ÿand ajac0600.21d.Z are identifiable as Hatanaka compressed by the ƒ??dƒ? after the year in the first extension. The subsequent ƒ??Zƒ? or ƒ??gzƒ? indicate the type of file compression (i.e. Unix ƒ??compressƒ? and gzip).

The file names provide the following information:

ƒ??ajacƒ? is the site four-character identifier

ƒ?060ƒ? is the day-of-year

ƒ?0ƒ? is the session designator. This can be a letter or number.

ƒ?.21ƒ? is the year

ƒ?dƒ? indicates it a compressed RINEX file. This takes the plain text RINEX file and reduces it. See Yuki Hatanakaƒ??s paper here: https://www.gsi.go.jp/common/000045517.pdf

ƒ??Zƒ? a particular type of file compression and

ƒ??gzƒ? another type of file compression

To work with compressed files (e.g.ƒ?? *.21d.gzƒ? ) you run the appropriate decompression tool (gunzip) to obtain a compressed RINEX file. Then run ?ÿcrx2rnx to generate a standard RINEX file.

Compressed files are useful for reducing storage needs and allow faster file transfers. As Mr. Hamilton notes, the compressed files are generally not used directly.

If you want to change the type of compression used from .Z to .gz it is straightforward to do so. Tools like that linked in Mr. Hamiltonƒ??s message make it even easier.

If you want to work with files and exchange them with others, you need to insure everyone knows your file naming convention.

Be advised that some file extensions become associated with certain programs. Opening the file will call the program associated with it. As RINEX is plain text you can view it in a text editor.?ÿ

The SOPAC site page I linked in my first reply has good advice.

?ÿHaving gone on too long, I stop.

 
Posted : 10/02/2022 4:09 pm
(@geodesist)
Posts: 49
Trusted Member Registered
Topic starter
 

@geeoddmike Thank you again sir for this explanation... it's very helpful

 
Posted : 12/02/2022 5:19 am
Share: