Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

detect interferogram files that PROFFAST cannot process

License

Notifications You must be signed in to change notification settings

tum-esm/detect-corrupt-ifgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ 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']
}