|
| 1 | +# How to geocode dolphin results (ISCE2 / ISCE3) |
| 2 | + |
| 3 | +After running dolphin on radar-geometry data processed with ISCE2 or ISCE3, the |
| 4 | +outputs (interferograms, unwrapped phase, time series, velocity) are still in |
| 5 | +swath/radar coordinates. The `dolphin geocode` command transforms them to |
| 6 | +geographic coordinates using per-pixel latitude/longitude arrays from ISCE's |
| 7 | +geometry products. |
| 8 | + |
| 9 | +It auto-detects the geolocation file naming convention: |
| 10 | + |
| 11 | +| Processor | Geometry directory | Lat file | Lon file | |
| 12 | +| ------------------- | ------------------------ | --------- | --------- | |
| 13 | +| ISCE3 / dolphin | `geometry/` | `y.tif` | `x.tif` | |
| 14 | +| ISCE2 topsStack | `merged/geom_reference/` | `lat.rdr` | `lon.rdr` | |
| 15 | +| ISCE2 stripmapStack | `geom_reference/` | `lat.rdr` | `lon.rdr` | |
| 16 | + |
| 17 | +## Bulk geocode a dolphin work directory |
| 18 | + |
| 19 | +The simplest way to geocode all outputs at once. This discovers rasters in |
| 20 | +`timeseries/`, `unwrapped/`, etc. and writes geocoded results to |
| 21 | +`<dolphin-dir>/geocoded/`, mirroring the directory structure. |
| 22 | + |
| 23 | +```bash |
| 24 | +dolphin geocode \ |
| 25 | + -d ./dolphin_output \ |
| 26 | + -g ./geometry \ |
| 27 | + -c dolphin_config.yaml |
| 28 | +``` |
| 29 | + |
| 30 | +The `-c` flag reads `output_options.strides` from your config so the |
| 31 | +geolocation arrays (which are at full resolution) are properly subsampled to |
| 32 | +match your multilooked outputs. |
| 33 | + |
| 34 | +## ISCE2 topsStack example |
| 35 | + |
| 36 | +```bash |
| 37 | +dolphin geocode \ |
| 38 | + -d ./dolphin_output \ |
| 39 | + -g ./merged/geom_reference \ |
| 40 | + -c dolphin_config.yaml |
| 41 | +``` |
| 42 | + |
| 43 | +## ISCE2 stripmapStack example |
| 44 | + |
| 45 | +```bash |
| 46 | +dolphin geocode \ |
| 47 | + -d ./dolphin_output \ |
| 48 | + -g ./geom_reference \ |
| 49 | + -c dolphin_config.yaml |
| 50 | +``` |
| 51 | + |
| 52 | +## Geocode specific files |
| 53 | + |
| 54 | +You can also pass individual files instead of a whole directory: |
| 55 | + |
| 56 | +```bash |
| 57 | +# Single file |
| 58 | +dolphin geocode -i velocity.tif -g geometry/ |
| 59 | + |
| 60 | +# Multiple files to an output directory |
| 61 | +dolphin geocode \ |
| 62 | + -i timeseries/velocity.tif \ |
| 63 | + -i unwrapped/20220101_20220201.unw.tif \ |
| 64 | + -g geometry/ \ |
| 65 | + -o geocoded/ |
| 66 | +``` |
| 67 | + |
| 68 | +## Reproject to UTM with a specific pixel spacing |
| 69 | + |
| 70 | +```bash |
| 71 | +dolphin geocode \ |
| 72 | + -d ./dolphin_output \ |
| 73 | + -g ./geometry \ |
| 74 | + -c dolphin_config.yaml \ |
| 75 | + --srs 32610 \ |
| 76 | + -s 30 |
| 77 | +``` |
| 78 | + |
| 79 | +This reprojects to UTM zone 10N (EPSG:32610) with 30-meter pixel spacing. |
| 80 | + |
| 81 | +## Apply a mask during geocoding |
| 82 | + |
| 83 | +Pass a binary mask (0 = invalid, nonzero = valid) to mark pixels as nodata in |
| 84 | +the geocoded output. The mask can be at the strided resolution or at full |
| 85 | +resolution (it will be subsampled automatically if strides are set). |
| 86 | + |
| 87 | +```bash |
| 88 | +dolphin geocode \ |
| 89 | + -i velocity.tif \ |
| 90 | + -g geometry/ \ |
| 91 | + -c dolphin_config.yaml \ |
| 92 | + --mask water_mask.tif |
| 93 | +``` |
| 94 | + |
| 95 | +## Include additional products |
| 96 | + |
| 97 | +By default, bulk mode geocodes time series and unwrapped interferograms. Use |
| 98 | +flags to include more: |
| 99 | + |
| 100 | +```bash |
| 101 | +dolphin geocode \ |
| 102 | + -d ./dolphin_output \ |
| 103 | + -g ./geometry \ |
| 104 | + --include-interferograms \ |
| 105 | + --include-auxiliary |
| 106 | +``` |
| 107 | + |
| 108 | +| Flag | What it adds | |
| 109 | +| -------------------------- | ------------------------------------------------------------------ | |
| 110 | +| `--include-unwrapped` | Unwrapped interferograms (on by default) | |
| 111 | +| `--include-interferograms` | Wrapped interferograms, similarity, temporal/multilooked coherence | |
| 112 | +| `--include-auxiliary` | CRLB, amplitude dispersion | |
| 113 | + |
| 114 | +## Parallel processing |
| 115 | + |
| 116 | +Geocoding is parallelized across files. Control the number of workers with `-j`: |
| 117 | + |
| 118 | +```bash |
| 119 | +dolphin geocode -d ./dolphin_output -g ./geometry -j 4 |
| 120 | +``` |
0 commit comments