|
103 | 103 | "- `-t aster` selects the ASTER session (knows about ASTER cameras).\n", |
104 | 104 | "- `--stereo-algorithm asp_bm`: plain block matching, fast.\n", |
105 | 105 | "- `--subpixel-mode 1`: parabolic subpixel refinement, cheaper than Bayes-EM.\n", |
106 | | - "- `--aster-use-csm` uses the Community Sensor Model camera.\n", |
107 | 106 | "- `--processes 4 --threads-multiprocess 1` matches the 4-core Codespace floor. On a larger machine, bump `--processes` to your core count.\n" |
108 | 107 | ] |
109 | 108 | }, |
|
121 | 120 | " !parallel_stereo -t aster \\\n", |
122 | 121 | " --stereo-algorithm asp_bm \\\n", |
123 | 122 | " --subpixel-mode 1 \\\n", |
124 | | - " --aster-use-csm \\\n", |
125 | 123 | " --processes 4 --threads-multiprocess 1 \\\n", |
126 | 124 | " {DATA}/out-Band3N.tif {DATA}/out-Band3B.tif \\\n", |
127 | 125 | " {DATA}/out-Band3N.xml {DATA}/out-Band3B.xml \\\n", |
|
238 | 236 | "if Path(f\"{DATA}/stereo_ortho/run-DEM.tif\").exists():\n", |
239 | 237 | " print(f\"{DATA}/stereo_ortho/run-DEM.tif exists — skipping mapprojected pass. Delete {DATA}/stereo_ortho/ to reprocess.\")\n", |
240 | 238 | "else:\n", |
241 | | - " !mapproject --t_srs {T_SRS} --tr 15 --aster-use-csm \\\n", |
| 239 | + " !mapproject --t_srs {T_SRS} --tr 15 \\\n", |
242 | 240 | " {REF_DEM} \\\n", |
243 | 241 | " {DATA}/out-Band3N.tif {DATA}/out-Band3N.xml \\\n", |
244 | 242 | " {DATA}/out-Band3N_ortho.tif\n", |
245 | 243 | "\n", |
246 | | - " !mapproject --t_srs {T_SRS} --tr 15 --aster-use-csm \\\n", |
| 244 | + " !mapproject --t_srs {T_SRS} --tr 15 \\\n", |
247 | 245 | " {REF_DEM} \\\n", |
248 | 246 | " {DATA}/out-Band3B.tif {DATA}/out-Band3B.xml \\\n", |
249 | 247 | " {DATA}/out-Band3B_ortho.tif\n", |
250 | 248 | "\n", |
251 | 249 | " !parallel_stereo -t aster \\\n", |
252 | 250 | " --stereo-algorithm asp_mgm \\\n", |
253 | 251 | " --subpixel-mode 9 \\\n", |
254 | | - " --aster-use-csm \\\n", |
| 252 | + " --dem {REF_DEM} \\\n", |
255 | 253 | " --processes 1 --threads-multiprocess 4 \\\n", |
256 | 254 | " {DATA}/out-Band3N_ortho.tif {DATA}/out-Band3B_ortho.tif \\\n", |
257 | 255 | " {DATA}/out-Band3N.xml {DATA}/out-Band3B.xml \\\n", |
258 | | - " {DATA}/stereo_ortho/run \\\n", |
259 | | - " {REF_DEM}\n", |
| 256 | + " {DATA}/stereo_ortho/run\n", |
260 | 257 | "\n", |
261 | 258 | " !point2dem --tr 30 -r earth --auto-proj-center --errorimage {DATA}/stereo_ortho/run-PC.tif\n", |
262 | 259 | "\n", |
|
0 commit comments