/detect-corrupt-ifgs

detect interferogram files that PROFFAST cannot process

Primary LanguageFortranGNU General Public License v3.0GPL-3.0

⚠️ This has been integrated into https://github.com/tum-esm/utils and will not be updated anymore ⚠️


Detect Corrupt Interferograms

This tool detects individual interferogram files in a given directory that PROFFAST cannot process.


🪄 How it was made?

We took the preprocessing code from PROFFAST 2.1 (https://www.imk-asf.kit.edu/english/3225.php) and removed everything except for the initial parsing of all files. Then we modified the code to continue on every warning and print out the missing "charfilters" as well as the corrupt filename.


⚔️ How to use it?

The script main.py (Python 3, only standard libraries) takes in a directory and prints out all corrupt interferograms in this directory. An example of usage can be found at the end of main.py. Example output:

The corrupt ifgs are:
{
    'mb20220421s0e00a.0056': ['GFW', 'GBW', 'HFL', 'LWN', 'TSC'],
    'mb20220421s0e00a.1872': ['GFW', 'GBW', 'HFL', 'LWN', 'TSC']
}