- Install Anaconda to manage virtual environments. You can follow the instructions here
- Clone the repository and get into the repo folder:
git clone https://github.com/SARScripts/preprocess
cd preprocess
- Create a new conda environment with the following command:
conda env create -f environment.yml
- Once the process is complete, you can activate the environment:
conda activate s2cprod
- Install the required libgfortran library by typing:
sudo apt-get install libgfortran5
Preprocessing operations over SLC images for SAR2CUBE
Update CONF/config.project with local paths
Update CONF/order_file_test.csv
Update CONF/list_images.csv
Navigate to the path of preprocessing.py and run it with the config file path:
python preprocessing.py path/to/project.config