all elements (scripts, workflows, descriptions, ...) needed for processing MACS images for publication
Rettelbach, T., Nitze, I., Grünberg, I., Hammar, J., Schäffler, S., Hein, D., Gessner, M., Bucher, T., Brauchle, J., Hartmann, J., Sachs, T., Boike, J., & Grosse, G. (2023). Super-high-resolution aerial imagery datasets of permafrost landscapes in Alaska and northwestern Canada [Preprint]. ESSD – Ice/Permafrost. https://doi.org/10.5194/essd-2023-193
- accepted for publication, will be updated shortly
We recommend to use a custom conda environment
conda create -n MACS2024 python=3.10 mamba conda -c conda-forge
conda activate MACS2024
pip install git+https://github.com/awi-response/macs_processing.git
cd <CODE_DIR>
git clone https://github.com/awi-response/macs_processing.git
cd macs_processing
pip install .
Please install lastools (required for point cloud clipping)
- Open Pix4d
- Help --> Settings --> Tab (Camera Database) --> Import
- Select file:
pix4D_cameras/pix4D-kameradatenbank_MACS-Polar18.xml
- Open Pix4d
- Open Project
- Processing Options --> Manage Templates --> Check "Import/Export" --> Import... --> Select template(s) from
pix4D_processing_templates
01_SetupData
- script to preprocess data to get ready for processing in pix4d
01_SetupData -s <SETTINGS_FILE> [-l] [-f] [dsid]
02_Postprocessing
- script to postprocess data and make ready for publication after pix4d run
Default Postprocessing example with whitebox calculated DSM tiles (default) + mosaic (Ortho, DSM; Hillshade) output
02_Postprocessing -s <SETTINGS_FILE> -m
Postprocessing example with pix4d calculated DSM tiles
02_Postprocessing -s <SETTINGS_FILE> -dsm pix4d
Postprocessing example with custom whiteboxtools based DSM caculation, only on the nir point cloud
02_Postprocessing -s <SETTINGS_FILE>
Postprocessing example with custom whiteboxtools based DSM caculation, using both point clouds
02_Postprocessing -s <SETTINGS_FILE> -pc both
03_MoveProducts
Script to move final product files to specified directory (after postprocessing)
03_MoveProducts -s <SETTINGS_FILE> -d <destination>
Script to create zip or tar archive of pix4d processed data in case sth is wrong with the output
Create zip file and move to archive destination. Nothing will be deleted. raw input data will not be archived.
04_ArchiveData -s <SETTINGS_FILE> -a <archive destination>
Same as recommended but input data will be deleted, you will be asked to confirm.
04_ArchiveData -s <SETTINGS_FILE> -a <archive destination> -d
Same as recommended but input data will be deleted, you will be asked to confirm. WARNING you will not be asked.
04_ArchiveData -s <SETTINGS_FILE> -a <archive destination> -d -y
Convert MACS data to TIFF and setup processing structure
01_SetupData -s <SETTINGS_FILE>
- Run Pix 4d
- Use Processing templates in
pix4D_processing_templates
Calculate DSM with Whiteboxtools
02_SetupData -s <SETTINGS_FILE> -m
-m
for creating mosaics
- move files to server location and make ready for shipping
03_MoveProducts -s <SETTINGS_FILE> -d <destination>
04_ArchiveData -s <SETTINGS_FILE> -a <archive destination> -d