Last active
July 29, 2020 20:15
-
-
Save comstock/49a4fc84a5046281cd415dc90782bf32 to your computer and use it in GitHub Desktop.
How to count the number of JPEG2000 files found to be valid using jpylyzer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jpylyzer *jp2 | grep --extended-regexp "<isValid format=\"jp2\">True</isValid>" | wc --lines |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<isValid format="jp\">True</isValid>.<isValid format="jp\">True</isValid>will generate one line for each occurrence.--linesswitch will return a count of each file found<isValid format="jp\">True</isValid>.Comparing the number of files found valid against the know number of JP2 files examined provides a quick method of QC: If the total number of JP2 files matches the number found to be valid, no additional QC is required.