cross-sensor-cal

Stage 02 Sorting

DO NOT EDIT OUTSIDE MARKERS

Overview

Stage 02 sorts your raster products into a canonical folder tree and normalizes flight line identifiers for downstream analysis. You run it after raster processing to prepare data for cross‑sensor comparisons. The sort is idempotent; rerunning the command recreates the same layout without duplicating files.

Prerequisites

Step-by-step tutorial

  1. Generate the move list and optionally sync files:

    python bin/jefe.py sort-and-sync-files \
        --base-folder /path/to/niwo_neon \
        --remote-prefix projects/neon/data \
        --sync-files
    

    The script normalizes flight line names (lowercase, zero padded) and builds sorted_files/envi/<category>/ folders.

  2. Inspect envi_file_move_list.csv in the base folder. This local cache stores source and destination paths so later runs can resume without rescanning.

  3. Paths that sync to iRODS follow i:/iplant/<remote_prefix>/sorted_files/envi/<category>/<filename>. Omitting --remote-prefix places files under i:/iplant/ directly.

  4. Rerun the command at any time. gocmd sync compares timestamps and sizes, so reruns skip unchanged files and resume incomplete transfers.

Reference

Next steps

Proceed to Stage 03 Pixel Extraction once files are sorted and synced. Last updated: 2025-08-18