Checksum on data orders

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
treble
Posts: 28
Joined: Thu Jan 24, 2008 1:33 pm America/New_York
Answers: 0

Checksum on data orders

by treble » Wed Nov 30, 2022 7:32 pm America/New_York

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!

Tags:

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1380
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1

Re: Checksum on data orders

by OB.DAAC - SeanBailey » Thu Dec 01, 2022 12:23 pm America/New_York

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

treble
Posts: 28
Joined: Thu Jan 24, 2008 1:33 pm America/New_York
Answers: 0

Re: Checksum on data orders

by treble » Thu Dec 01, 2022 2:44 pm America/New_York

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"

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1380
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1

Re: Checksum on data orders

by OB.DAAC - SeanBailey » Thu Dec 01, 2022 3:06 pm America/New_York

tar -tf can work, but some for some flavors of tar it doesn't report the errors, but -xOf will :)

Sean

treble
Posts: 28
Joined: Thu Jan 24, 2008 1:33 pm America/New_York
Answers: 0

Re: Checksum on data orders

by treble » Thu Dec 01, 2022 4:11 pm America/New_York

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.

Post Reply