Page 1 of 1

Checksum on data orders

Posted: Wed Nov 30, 2022 7:32 pm America/New_York
by treble
I have noticed that sometimes the tar files are corrupted on orders I have placed (with the Oceancolor L1&2 Browser).

For individual files I understand there are checksums available. It would be great if there were checksums as well for the tar files in my order...

Sometimes I notice to late that a tar file is corrupt and then my order has expired already...

Thanks!

Re: Checksum on data orders

Posted: Thu Dec 01, 2022 12:23 pm America/New_York
by OB.DAAC - SeanBailey
It would take some changes to implement a checksum for the ordering system...but until we can find the time to implement something, you can use a simple check with the "-t" option to tar. If this returns an error, then the file was corrupted.

A bash example:

Code: Select all

$ tar -xOf requested_files_1.tar >& /dev/null
$ echo $?
If the echo returns anything other than zero, there was an issue...

Sean

Re: Checksum on data orders

Posted: Thu Dec 01, 2022 2:44 pm America/New_York
by treble
Thanks, Sean. I started doing something similar indeed. Your temporary solution is a more simple way than how I did it.

I assume you meant "tar -tf", not "tar -xOf"

Re: Checksum on data orders

Posted: Thu Dec 01, 2022 3:06 pm America/New_York
by OB.DAAC - SeanBailey
tar -tf can work, but some for some flavors of tar it doesn't report the errors, but -xOf will :)

Sean

Re: Checksum on data orders

Posted: Thu Dec 01, 2022 4:11 pm America/New_York
by treble
Ah, I get it now. I got an error earlier, confused the O for an 0. Yes, indeed, this is the way to do it.