Downloader
The InSARHub Downloader module provides a streamlined interface for searching and downloading satellite data.
-
Import downloader
Import the Downloader class to access all downloader functionality
-
View available downloaders
List all registered downloaders
Available Downloaders
InSARHub wrapped asf_search as one of its download backends. The ASF_Base_Downloader is implemented on top of a reusable base configuration class, which provides the full searching, filtering, and downloading logic of asf_search.
Source code in src/insarhub/downloader/asf_base.py
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 | |
Usage
-
Create downloader with parameters
Initialize a downloader instance with search criteria
ORs1 = Downloader.create('ASF_Base_Downloader', intersectsWith=[-113.05, 37.74, -112.68, 38.00], dataset='SENTINEL-1', instrument='C-SAR', beamMode='IW', polarization=['VV', 'VV+VH'], processingLevel='SLC', start='2020-01-01', end='2020-12-31', relativeOrbit=100, frame=466, workdir='path/to/dir')ORparams = { "intersectsWith": [-113.05, 37.74, -112.68, 38.00], "dataset": "SENTINEL-1", "instrument": "C-SAR", "beamMode": "IW", "polarization": ["VV", "VV+VH"], "processingLevel": "SLC", "start": "2020-01-01", "end": "2020-12-31", "relativeOrbit": 100, "frame": 466, "workdir": "path/to/dir" } dl = Downloader.create('ASF_Base_Downloader', **params)from insarhub.config import ASF_Base_Config cfg = ASF_Base_Config(intersectsWith=[-113.05, 37.74, -112.68, 38.00], dataset='SENTINEL-1', instrument='C-SAR', beamMode='IW', polarization=['VV', 'VV+VH'], processingLevel='SLC', start='2020-01-01', end='2020-12-31', relativeOrbit=100, frame=466, workdir='path/to/dir') dl = Downloader.create('ASF_Base_Downloader', config=cfg)The base config
ASF_Base_Configcontains all parameters from asf_search keywords. For detailed descriptions refer to the official ASF Search documentation.Source code in
src/insarhub/config/defaultconfig.py10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
@dataclass class ASF_Base_Config: ''' Dataclass containing all configuration options for asf_search. This class provides a unified interface for configuring ASF (Alaska Satellite Facility) search parameters. ''' name: str = "ASF_Base_Config" dataset: str | list[str] | None = None platform: str | list[str] | None = None instrument: str | None = None absoluteBurstID: int | list[int] | None = None absoluteOrbit: int | list[int] | None = None asfFrame: int | list[int] | None = None beamMode: str | None = None beamSwath: str | list[str] | None = None campaign: str | None = None maxDoppler: float | None = None minDoppler: float | None = None maxFaradayRotation: float | None = None minFaradayRotation: float | None = None flightDirection: str | None = None flightLine: str | None = None frame: int | list[int] | None = None frameCoverage: str | None = None fullBurstID: str | list[str] | None = None groupID: str | None = None jointObservation: bool | None = None lookDirection: str | None = None offNadirAngle: float | list[float] | None = None operaBurstID: str | list[str] | None = None polarization: str | list[str] | None = None mainBandPolarization: str | list[str] | None = None sideBandPolarization: str | list[str] | None = None processingLevel: str | None = None productionConfiguration: str | list[str] | None = None rangeBandwidth: str | list[str] | None = None relativeBurstID: str | list[str] | None = None relativeOrbit: int | list[int] | None = None intersectsWith: str | None = None processingDate: str | None = None start: str | None = None end: str | None = None season: list[int] | None = None stack_from_id: str | None = None maxResults: int | None = None granule_names: str | list[str] | None = None workdir: Path | str = field(default_factory=lambda: Path.cwd()) ssl_verify: bool = True # Per-downloader download concurrency. Each downloader owns this; there is # deliberately no global setting shadowing it, because the two downloaders # parallelise different work: S1_SLC opens concurrent HTTP transfers, while # S1_Burst assembles whole dates (each one a burst2safe run that unpacks and # rewrites a multi-GB product). A value that suits one starves or overloads # the other. max_workers: int = 3 # ── UI metadata consumed by the API / settings panel ───────────────────── # The downloader CONFIG panel is deliberately minimal: only the operational # knobs (download concurrency + result cap). Every actual SEARCH parameter # (dataset/level are fixed per downloader; flightDirection / path / frame / # polarization / dates / AOI) lives in the Search Filters panel instead # (per-downloader `search_filter_schema` + the TopBar), so the two don't # duplicate ~30 asf_search fields. The remaining `_ui_fields` entries below # stay defined (harmless) in case a downloader re-groups them. _ui_groups: ClassVar[list] = [ {"label": "Download", "fields": ["max_workers", "maxResults", "ssl_verify"]}, ] _ui_fields: ClassVar[dict] = { "max_workers": {"type": "number", "min": 1, "max": 16, "step": 1, "hint": "Concurrent download threads."}, "ssl_verify": {"type": "bool", "hint": "Verify ASF's SSL certificate. Turn OFF only if downloads " "fail with an expired-certificate error."}, # Dataset "dataset": {"type": "text", "hint": "Dataset to search (e.g. SENTINEL-1, ALOS, NISAR)"}, "platform": {"type": "text", "hint": "Platform name (e.g. S1A, ALOS)"}, "instrument": {"type": "text", "hint": "Instrument name (e.g. C-SAR)"}, # SAR Parameters "beamMode": {"type": "select", "options": ["", "IW", "EW", "SM", "WV"], "hint": "SAR acquisition mode"}, "beamSwath": {"type": "text", "hint": "Beam swath identifier"}, "processingLevel": {"type": "select", "options": ["", "SLC", "GRD", "GRD_HD", "GRD_MS", "BURST", "RTC_HI_RES", "RTC_LOW_RES"], "hint": "Processing level"}, "polarization": {"type": "text", "hint": "Polarization(s), e.g. VV or VV+VH"}, "mainBandPolarization": {"type": "text", "hint": "Main band polarization (NISAR dual-band)"}, "sideBandPolarization": {"type": "text", "hint": "Side band polarization (NISAR dual-band)"}, "lookDirection": {"type": "select", "options": ["", "LEFT", "RIGHT"], "hint": "Radar look direction"}, "flightDirection": {"type": "select", "options": ["", "ASCENDING", "DESCENDING"], "hint": "Orbit direction (empty = both)"}, "flightLine": {"type": "text", "hint": "Flight line identifier"}, # Orbit & Frame "relativeOrbit": {"type": "text", "hint": "Relative orbit (path) number(s), e.g. 64 or 64,65"}, "absoluteOrbit": {"type": "text", "hint": "Absolute orbit number(s)"}, "frame": {"type": "text", "hint": "Sensor native frame number(s)"}, "asfFrame": {"type": "text", "hint": "ASF internal frame number(s)"}, "frameCoverage": {"type": "text", "hint": "Frame coverage filter"}, # Burst IDs "absoluteBurstID": {"type": "text", "hint": "Absolute burst ID(s)"}, "relativeBurstID": {"type": "text", "hint": "Relative burst ID(s)"}, "fullBurstID": {"type": "text", "hint": "Full burst ID, e.g. T064_135524_IW1"}, "operaBurstID": {"type": "text", "hint": "OPERA burst ID(s)"}, # Temporal & Location "start": {"type": "text", "hint": "Default start date (ISO 8601, e.g. 2020-01-01)"}, "end": {"type": "text", "hint": "Default end date (ISO 8601, e.g. 2022-12-31)"}, "processingDate": {"type": "text", "hint": "Processing date filter (ISO 8601)"}, "season": {"type": "text", "hint": "Day-of-year range for seasonal filtering, e.g. 1,90"}, "intersectsWith": {"type": "text", "hint": "WKT geometry for spatial intersection"}, "stack_from_id": {"type": "text", "hint": "Build stack from a reference scene ID"}, "maxResults": {"type": "auto_number", "min": 1, "max": 50000, "step": 100, "hint": "Maximum number of search results returned"}, "granule_names": {"type": "text", "hint": "Granule/scene names (comma-separated), or a path to a CSV/XLSX/TXT file. " "When set, overrides normal parameter-based search."}, # Advanced "campaign": {"type": "text", "hint": "Campaign name filter (UAVSAR / airborne datasets)"}, "groupID": {"type": "text", "hint": "Group ID filter"}, "maxDoppler": {"type": "auto_number", "hint": "Maximum Doppler centroid frequency (Hz)"}, "minDoppler": {"type": "auto_number", "hint": "Minimum Doppler centroid frequency (Hz)"}, "maxFaradayRotation": {"type": "auto_number", "hint": "Maximum Faraday rotation angle (degrees)"}, "minFaradayRotation": {"type": "auto_number", "hint": "Minimum Faraday rotation angle (degrees)"}, "offNadirAngle": {"type": "text", "hint": "Off-nadir angle(s), e.g. 34.3 or 21.5,26.2"}, "jointObservation":{"type": "bool", "hint": "Filter for joint ALOS PALSAR/AVNIR-2 observations"}, "productionConfiguration": {"type": "text", "hint": "Production configuration identifier"}, "rangeBandwidth": {"type": "text", "hint": "Range bandwidth filter"}, } # ───────────────────────────────────────────────────────────────────────── def __post_init__(self): if isinstance(self.workdir, str): self.workdir = Path(self.workdir).expanduser().resolve() -
Search
Query the satellite archive and retrieve available scenes matching your criteria
-
Filter
Refine existing search results by applying additional constraints
Parameters:
Name Type Description Default path_frametuple | list[tuple]A single (path, frame) tuple or list of tuples. Defaults to None.
NonestartstrStart date string, e.g. '2021-01-01'. Defaults to None.
NoneendstrEnd date string, e.g. '2023-12-31'. Defaults to None.
Noneframeint | list[int]Sensor native frame number(s), e.g. 50. Defaults to None.
NoneasfFrameint | list[int]ASF internal frame number(s), e.g. 50. Defaults to None.
NoneflightDirectionstr'ASCENDING' or 'DESCENDING'. Defaults to None.
NonerelativeOrbitint | list[int]Relative orbit number(s) to keep. Defaults to None.
NoneabsoluteOrbitint | list[int]Absolute orbit number(s) to keep. Defaults to None.
NonelookDirectionstr'LEFT' or 'RIGHT'. Defaults to None.
Nonepolarizationstr | list[str]Polarization(s) to keep, e.g. 'VV' or ['VV', 'VH']. Defaults to None.
NoneprocessingLevelstrProcessing level to keep, e.g. 'SLC'. Defaults to None.
NonebeamModestrBeam mode to keep, e.g. 'IW'. Defaults to None.
Noneseasonlist[int]List of months (1-12) to keep, e.g. [6, 7, 8] for summer. Defaults to None.
Nonemin_coveragefloatMinimum fractional overlap (0-1) between scene and AOI. Defaults to None.
Nonemin_countintDrop stacks with fewer than this many scenes after filtering. Defaults to None.
Nonemax_countintKeep at most this many scenes per stack (from earliest). Defaults to None.
Nonelatest_nintKeep the N most recent scenes per stack. Defaults to None.
Noneearliest_nintKeep the N earliest scenes per stack. Defaults to None.
NoneRaises:
Type Description ValueErrorIf no search results are available.
-
Reset filter
Restore search results to the original unfiltered state
-
Summary
Display statistics and overview of current search results
-
View Footprint
Visualize geographic coverage of search results on an interactive map
-
Download
Download all scenes from current search results to local storage
Parameters:
Name Type Description Default save_pathstrDownload path. Defaults to config.workdir.
Nonemax_workersintConcurrent downloads. When None, falls back to
config.max_workers(the GUI's per-downloader "Download" setting), then to 3. Resolving it here rather than in each caller means the config field takes effect from every entry point; previously only the S1_Burst routes passed it explicitly, so a GUI-set value was silently ignored for S1_SLC.NonescenesRestrict download to a subset of scenes. Accepts any of: -
list | setof scene name strings - The direct output ofselect_pairs()— either alist[[ref, sec], ...](single-stack) or adict{(path, frame): [[ref, sec], ...]}(multi-stack). Unique scene names are extracted automatically. WhenNone(default) all search results are downloaded.NonemergeboolWhen True, all stacks are downloaded into a single
merged/slc/subdirectory instead of per-stackp{path}_f{frame}/subdirs. Useful when combining multiple overlapping stacks for ISCE/MintPy.FalseRaises:
Type Description ValueErrorIf no search results are available.
-
DEM Download
Download DEM covering all scenes from current search results
-
Select Pairs
Compute interferogram pairs for all active stacks based on temporal and perpendicular baseline constraints. Scenes with poor acquisition conditions (heavy rain, snow) are excluded automatically when
avoid_low_quality_days=True(default).from insarhub.utils import plot_pair_network pairs, baselines, scene_bperp, _ = dl.select_pairs( dt_targets=(6, 12, 24, 36, 48, 72, 96), dt_tol=3, dt_max=120, pb_max=150.0, min_degree=3, max_degree=5, force_connect=True, avoid_low_quality_days=True, precip_mm_threshold=25.0, snow_threshold=0.5, ) fig = plot_pair_network(pairs, baselines, scene_bperp) fig.show()Parameters:
Name Type Description Default dt_targetstupleTarget temporal spacings in days. Defaults to (6, 12, 24, 36, 48, 72, 96).
Nonedt_tolintTolerance in days around each target spacing. Defaults to 3.
Nonedt_maxintMaximum temporal baseline in days. Defaults to 120.
Nonepb_maxfloatMaximum perpendicular baseline in meters. Defaults to 150.0.
Nonemin_degreeintMinimum number of connections per scene. Defaults to 3.
Nonemax_degreeintMaximum number of connections per scene. Defaults to 5.
Noneforce_connectboolForce connectivity for isolated scenes. Defaults to True.
Nonemax_workersintThreads for API baseline fallback. Defaults to 4.
Noneaoi_wktstrAOI geometry in WKT for quality scoring. Defaults to search AOI.
NonemergeboolWhen True, stacks sharing the same relative orbit (path) are combined into one pairing network before temporal/baseline selection — matching how ISCE2's stackSentinel treats multiple frames of one track/pass as a single continuous acquisition. Stacks on different paths are never combined (cross-track pairs have no physical baseline). Use together with
download(merge=True), which puts all scenes in onemerged/slc/directory. Defaults to False.FalseburstboolSelect pairs for an SLC-BURST stack. Nodes become acquisition dates and baselines are computed from the bursts' own startTime/orbits — no parent-SLC lookup. Defaults to False.
Falsesafe_dirstrBurst mode: directory of assembled
.SAFEdirs whose annotation orbits supply bperp (offline).Noneeof_dirstrBurst mode: directory of precise-orbit
.EOFfiles used for bperp (offline).Nonepoeorb_cachestrBurst mode: directory for POEORB downloads keyed by date + mission (online fallback).
Nonequality_checkboolAfter pairing, write the stack file(s) and build the PairQualityDB verdict for every possible pair (the slow, network-heavy step).
Falseskips it. Defaults to True.Trueplot_networkboolSave
network_*.pngwith the pair network, coloured healthy/concern whenquality_checkis True (falls back to temporal-baseline colouring otherwise). Defaults to True.True
S1_SLC is a specialized downloader that extends ASF_Base_Downloader, preconfigured specifically for downloading Sentinel-1 SLC data.
Source code in src/insarhub/downloader/s1_slc.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | |
Usage
-
Create downloader with parameters
Initialize a downloader instance with search criteria
ORs1 = Downloader.create('S1_SLC', intersectsWith=[-113.05, 37.74, -112.68, 38.00], start='2020-01-01', end='2020-12-31', relativeOrbit=100, frame=466, workdir='path/to/dir')ORparams = { "intersectsWith": [-113.05, 37.74, -112.68, 38.00], "start": "2020-01-01", "end": "2020-12-31", "relativeOrbit": 100, "frame": 466, "workdir": "path/to/dir" } dl = Downloader.create('S1_SLC', **params)from insarhub.config import S1_SLC_Config cfg = S1_SLC_Config(intersectsWith=[-113.05, 37.74, -112.68, 38.00], start="2020-01-01", end="2020-12-31", relativeOrbit=100, frame=466, workdir="path/to/dir") dl = Downloader.create('S1_SLC', config=cfg)The config
S1_SLC_Configcontains pre-defined parameters specifically for Sentinel-1 data. For detailed descriptions refer to the official ASF Search documentation.Source code in
src/insarhub/config/defaultconfig.py -
Search
-
Filter
Parameters:
Name Type Description Default path_frametuple | list[tuple]A single (path, frame) tuple or list of tuples. Defaults to None.
NonestartstrStart date string, e.g. '2021-01-01'. Defaults to None.
NoneendstrEnd date string, e.g. '2023-12-31'. Defaults to None.
Noneframeint | list[int]Sensor native frame number(s), e.g. 50. Defaults to None.
NoneasfFrameint | list[int]ASF internal frame number(s), e.g. 50. Defaults to None.
NoneflightDirectionstr'ASCENDING' or 'DESCENDING'. Defaults to None.
NonerelativeOrbitint | list[int]Relative orbit number(s) to keep. Defaults to None.
NoneabsoluteOrbitint | list[int]Absolute orbit number(s) to keep. Defaults to None.
NonelookDirectionstr'LEFT' or 'RIGHT'. Defaults to None.
Nonepolarizationstr | list[str]Polarization(s) to keep, e.g. 'VV' or ['VV', 'VH']. Defaults to None.
NoneprocessingLevelstrProcessing level to keep, e.g. 'SLC'. Defaults to None.
NonebeamModestrBeam mode to keep, e.g. 'IW'. Defaults to None.
Noneseasonlist[int]List of months (1-12) to keep, e.g. [6, 7, 8] for summer. Defaults to None.
Nonemin_coveragefloatMinimum fractional overlap (0-1) between scene and AOI. Defaults to None.
Nonemin_countintDrop stacks with fewer than this many scenes after filtering. Defaults to None.
Nonemax_countintKeep at most this many scenes per stack (from earliest). Defaults to None.
Nonelatest_nintKeep the N most recent scenes per stack. Defaults to None.
Noneearliest_nintKeep the N earliest scenes per stack. Defaults to None.
NoneRaises:
Type Description ValueErrorIf no search results are available.
-
Reset filter
-
Summary
-
View Footprint
-
Download
Parameters:
Name Type Description Default save_pathstr | NoneOptional path to save the downloaded files. Defaults to None.
Nonemax_workersintParallel download workers. None lets the base resolve config.max_workers, then the built-in default.
Noneforce_cdseboolIf True, forces downloading orbit files from CDSE instead of ASF. Defaults to False.
Falsedownload_orbitboolIf True, also downloads orbit files after scenes. Defaults to False.
Falsestop_eventOptional threading.Event to cancel the download.
Noneon_progressOptional callback(message, pct) called after each file completes.
NonemergeboolIf True, all stacks download into a single merged/slc/ directory.
False -
DEM Download
-
Select Pairs
from insarhub.utils import plot_pair_network pairs, baselines, scene_bperp, _ = s1.select_pairs( dt_targets=(6, 12, 24, 36, 48, 72, 96), dt_tol=3, dt_max=120, pb_max=150.0, min_degree=3, max_degree=5, force_connect=True, avoid_low_quality_days=True, precip_mm_threshold=25.0, snow_threshold=0.5, ) fig = plot_pair_network(pairs, baselines, scene_bperp) fig.show()Parameters:
Name Type Description Default dt_targetstupleTarget temporal spacings in days. Defaults to (6, 12, 24, 36, 48, 72, 96).
Nonedt_tolintTolerance in days around each target spacing. Defaults to 3.
Nonedt_maxintMaximum temporal baseline in days. Defaults to 120.
Nonepb_maxfloatMaximum perpendicular baseline in meters. Defaults to 150.0.
Nonemin_degreeintMinimum number of connections per scene. Defaults to 3.
Nonemax_degreeintMaximum number of connections per scene. Defaults to 5.
Noneforce_connectboolForce connectivity for isolated scenes. Defaults to True.
Nonemax_workersintThreads for API baseline fallback. Defaults to 4.
Noneaoi_wktstrAOI geometry in WKT for quality scoring. Defaults to search AOI.
NonemergeboolWhen True, stacks sharing the same relative orbit (path) are combined into one pairing network before temporal/baseline selection — matching how ISCE2's stackSentinel treats multiple frames of one track/pass as a single continuous acquisition. Stacks on different paths are never combined (cross-track pairs have no physical baseline). Use together with
download(merge=True), which puts all scenes in onemerged/slc/directory. Defaults to False.FalseburstboolSelect pairs for an SLC-BURST stack. Nodes become acquisition dates and baselines are computed from the bursts' own startTime/orbits — no parent-SLC lookup. Defaults to False.
Falsesafe_dirstrBurst mode: directory of assembled
.SAFEdirs whose annotation orbits supply bperp (offline).Noneeof_dirstrBurst mode: directory of precise-orbit
.EOFfiles used for bperp (offline).Nonepoeorb_cachestrBurst mode: directory for POEORB downloads keyed by date + mission (online fallback).
Nonequality_checkboolAfter pairing, write the stack file(s) and build the PairQualityDB verdict for every possible pair (the slow, network-heavy step).
Falseskips it. Defaults to True.Trueplot_networkboolSave
network_*.pngwith the pair network, coloured healthy/concern whenquality_checkis True (falls back to temporal-baseline colouring otherwise). Defaults to True.True
Extends ASF_Base_Downloader for ASF's SLC-BURST dataset. A burst is roughly 1/9th of a full IW slice, so an AOI-limited burst stack pulls far less data than the equivalent S1_SLC search. Pair it with the ISCE3_Burst processor and the ISCE3_Dolphin_S1_PL analyzer.
Only download() differs from S1_SLC: it hands the selected granules to burst2safe, which assembles them into valid .SAFE directories.
Burst stacks are keyed by fullBurstID, not frame
ASF returns no frameNumber on SLC-BURST products, so a frame filter matches nothing and is excluded from the query. A burst stack is identified by fullBurstID (e.g. 056_118970_IW2); the downloader folder is named p<path>_iw<s>_b<id> accordingly.
Source code in src/insarhub/downloader/s1_burst.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 | |
_NON_SEARCH_FIELDS = ASF_Base_Downloader._NON_SEARCH_FIELDS | {'swaths', 'mode', 'min_bursts', 'all_anns', 'keep_files', 'frame', 'asfFrame'}
class-attribute
instance-attribute
_PARENT_RE = re.compile('(S1[ABCD]_IW_SLC__\\w{4}_\\d{8}T\\d{6}_\\d{8}T\\d{6}_\\d{6}_\\w{6}_\\w{4})')
class-attribute
instance-attribute
default_config = S1_Burst_Config
class-attribute
instance-attribute
description = 'Sentinel-1 SLC-BURST search and download, assembled into .SAFE via burst2safe.'
class-attribute
instance-attribute
name = 'S1_Burst'
class-attribute
instance-attribute
product_label = 'bursts'
class-attribute
instance-attribute
search_filter_schema = [{'name': 'flightDirection', 'label': 'Flight Direction', 'kind': 'select', 'group': 'Additional Filters', 'choices': ['ASCENDING', 'DESCENDING']}, {'name': 'platform', 'label': 'Platform', 'kind': 'select', 'group': 'Additional Filters', 'choices': ['Sentinel-1A', 'Sentinel-1B', 'Sentinel-1C', 'Sentinel-1D']}, {'name': 'polarization', 'label': 'Polarization', 'kind': 'select', 'group': 'Additional Filters', 'choices': ['VV', 'VV+VH', 'HH', 'HH+HV']}, {'name': 'relativeOrbit', 'label': 'Path', 'kind': 'range', 'group': 'Path and Frame Filters'}, {'name': 'fullBurstID', 'label': 'Burst ID', 'kind': 'text', 'group': 'Path and Frame Filters'}]
class-attribute
instance-attribute
stack_key_label = 'Burst_ID'
class-attribute
instance-attribute
_burst_id_parts(text)
staticmethod
Source code in src/insarhub/downloader/s1_burst.py
_burst_of(granule)
staticmethod
Source code in src/insarhub/downloader/s1_burst.py
_cleanup_failed_date(date_str, granules, prods, out_dir, cfg)
Source code in src/insarhub/downloader/s1_burst.py
_date_of(result)
staticmethod
Source code in src/insarhub/downloader/s1_burst.py
_date_worker(idx, date_str, granules, prods, out_dir, cfg, pols, asm_bar, stop_event, on_progress, n_dates, n_workers=1)
Source code in src/insarhub/downloader/s1_burst.py
756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 | |
_flatten(results)
staticmethod
Source code in src/insarhub/downloader/s1_burst.py
_get_group_key(result)
Source code in src/insarhub/downloader/s1_burst.py
_granule_of(result)
staticmethod
Source code in src/insarhub/downloader/s1_burst.py
_group_by_date(results)
Source code in src/insarhub/downloader/s1_burst.py
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 | |
_path_of(result)
staticmethod
Source code in src/insarhub/downloader/s1_burst.py
_remove_partial_safe(date_str, out_dir)
staticmethod
Source code in src/insarhub/downloader/s1_burst.py
_report_burst_consistency(groups)
Source code in src/insarhub/downloader/s1_burst.py
_stack_key_matches(key, target)
Source code in src/insarhub/downloader/s1_burst.py
_stream_burst_download(file_id, url, dst, expected_bytes, position, stop_event=None)
Source code in src/insarhub/downloader/s1_burst.py
_swath_of(granule)
staticmethod
Source code in src/insarhub/downloader/s1_burst.py
_try_group_assembly(date_str, granules, prods, out_dir, cfg)
Source code in src/insarhub/downloader/s1_burst.py
_warn_failed_date(date_str, granules, prods, exc)
Source code in src/insarhub/downloader/s1_burst.py
download(save_path=None, max_workers=None, download_orbit=False, force_cdse=False, stop_event=None, on_progress=None, merge=False)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
save_path
|
str | None
|
Destination root. Defaults to the configured workdir. |
None
|
max_workers
|
int | None
|
Accepted for parity with S1_SLC; unused (see above). |
None
|
download_orbit
|
bool
|
Also fetch the matching precise orbits (.EOF), which every downstream processor needs. |
False
|
force_cdse
|
bool
|
Fetch orbits from CDSE instead of ASF. |
False
|
stop_event
|
threading.Event to cancel between date groups. |
None
|
|
on_progress
|
callback(message, pct) after each date group. |
None
|
|
merge
|
bool
|
Assemble every stack into one directory instead of per-stack subfolders. |
False
|
Source code in src/insarhub/downloader/s1_burst.py
490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 | |
download_orbit(force_cdse=False, save_dir=None, stop_event=None, scenes=None, merge=False)
Source code in src/insarhub/downloader/s1_burst.py
download_orbit_for_safes(safes, save_dir=None, force_cdse=False)
Source code in src/insarhub/downloader/s1_burst.py
folder_name(path, subswath=None, burst_id=None)
staticmethod
Source code in src/insarhub/downloader/s1_burst.py
parent_slcs(results=None)
Source code in src/insarhub/downloader/s1_burst.py
select_pairs(*args, **kwargs)
Source code in src/insarhub/downloader/s1_burst.py
sequential_pairs(n_connections=3, dates=None)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n_connections
|
int
|
Neighbours ahead to connect each date to. |
3
|
dates
|
Explicit YYYYMMDD list; defaults to the dates in the current search results. |
None
|
Source code in src/insarhub/downloader/s1_burst.py
write_ifgram_list(pairs, path)
staticmethod
Source code in src/insarhub/downloader/s1_burst.py
-
Create downloader with parameters
s1b = Downloader.create('S1_Burst', intersectsWith=[-106.06, 40.34, -105.70, 40.58], fullBurstID=['056_118970_IW2', '056_118971_IW2'], polarization=['VV'], start='2022-08-04', end='2026-07-21', workdir='path/to/dir')OR with explicit config:
from insarhub.config import S1_Burst_Config cfg = S1_Burst_Config( intersectsWith=[-106.06, 40.34, -105.70, 40.58], fullBurstID=['056_118970_IW2', '056_118971_IW2'], polarization=['VV'], start='2022-08-04', end='2026-07-21', workdir='path/to/dir', ) dl = Downloader.create('S1_Burst', config=cfg)Attributes:
Name Type Description swathslist[str] | NoneSubswaths to keep, e.g. ["IW2", "IW3"]. None = all three.
modestrAcquisition mode passed to burst2safe (IW or EW).
min_burstsintMinimum bursts per assembled SAFE; burst2safe pads with neighbouring bursts to reach it. Guards against a 1-burst SAFE that most downstream tools reject.
all_annsboolInclude annotation for every subswath, not just the ones downloaded. Default True; turning it off makes a single-subswath SAFE unreadable by s1reader/COMPASS (see the field comment).
keep_filesboolKeep the intermediate per-burst downloads after assembly.
Source code in
src/insarhub/config/defaultconfig.py190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
@dataclass class S1_Burst_Config(ASF_Base_Config): """Sentinel-1 SLC-BURST search + SAFE assembly. ASF distributes individual TOPS bursts as their own granules (dataset SLC-BURST). They are ~1/9th the size of a full slice, so an AOI-limited stack downloads far less data than the equivalent SLC search -- the point of burst-based processing. Bursts are not directly consumable by SAFE-expecting tools, so download() hands the selected granules to burst2safe, which assembles them into valid .SAFE directories (merging annotation/calibration/noise XML and writing a manifest). This mirrors the burst2stack CLI, except the granule list comes from *this* downloader's own search+filter rather than a second, independent search -- so the filters the user applied are the ones that govern what is actually assembled. Attributes: swaths: Subswaths to keep, e.g. ["IW2", "IW3"]. None = all three. mode: Acquisition mode passed to burst2safe (IW or EW). min_bursts: Minimum bursts per assembled SAFE; burst2safe pads with neighbouring bursts to reach it. Guards against a 1-burst SAFE that most downstream tools reject. all_anns: Include annotation for every subswath, not just the ones downloaded. Default True; turning it off makes a single-subswath SAFE unreadable by s1reader/COMPASS (see the field comment). keep_files: Keep the intermediate per-burst downloads after assembly. """ name: str = "S1_Burst_Config" dataset: str | list[str] | None = constants.DATASET.SLC_BURST instrument: str | None = constants.INSTRUMENT.C_SAR beamMode: str | None = constants.BEAMMODE.IW polarization: str | list[str] | None = field( default_factory=lambda: [constants.POLARIZATION.VV]) processingLevel: str | None = constants.PRODUCT_TYPE.BURST # ── burst -> SAFE assembly (burst2safe) ──────────────────────────────── swaths: list[str] | None = None mode: str = "IW" min_bursts: int = 1 # Default True, unlike burst2safe's own False. Annotation XML costs a few # hundred KB against ~500 MB of measurement data, and without it a # single-subswath SAFE is unreadable: s1reader derives the OPERA burst ID # from the IW2 mid-burst sensing time and opens the IW2 annotation whichever # swath you asked for. Verified -- an IW3-only SAFE with all_anns loads all # 4 IW3 bursts; without it, "ValueError: burst iw2-slc-vv not in SAFE". The # alternative is force-adding IW2 DATA, roughly doubling an IW1/IW3-only # download. Both COMPASS tutorials pass --all-anns unconditionally. all_anns: bool = True keep_files: bool = False # max_workers is inherited from ASF_Base_Config. For bursts it counts # concurrent DATE ASSEMBLIES rather than HTTP transfers: each unit is a # burst2safe run that also issues its own ASF search, so a high value # invites rate limits. Hence the lower default than S1_SLC. max_workers: int = 2 # EXTEND the base groups, never replace them. _ui_groups/_ui_fields are # ClassVars, so assigning a fresh list here shadows ASF_Base_Config's # entirely -- which dropped AOI, dates, orbit/frame and every other search # field from the GUI form, leaving only the five assembly options. _ui_groups: ClassVar[list] = ASF_Base_Config._ui_groups + [ {"label": "Burst assembly", "fields": ["swaths", "mode", "min_bursts", "all_anns", "keep_files"]}, ] _ui_fields: ClassVar[dict] = { **ASF_Base_Config._ui_fields, "swaths": {"type": "multiselect", "options": ["IW1", "IW2", "IW3"], "hint": "Subswaths to keep. Empty = all three."}, "mode": {"type": "select", "options": ["IW", "EW"], "hint": "Acquisition mode passed to burst2safe."}, "min_bursts": {"type": "number", "step": 1, "hint": "Minimum bursts per assembled SAFE; burst2safe pads with neighbours to reach it."}, "all_anns": {"type": "bool", "hint": "Keep annotations for every burst in the slice, not just the selected ones."}, "keep_files": {"type": "bool", "hint": "Keep intermediate per-burst downloads after assembly."}, "max_workers": {"type": "number", "min": 1, "max": 8, "step": 1, "hint": "Concurrent DATE ASSEMBLIES, not HTTP transfers: each unit is a burst2safe run that unpacks and rewrites a whole SAFE, and issues its own ASF search. Keep low."}, } -
Search / Filter / Summary / Footprint
Identical to
S1_SLC— these reuseASF_Base_Downloaderand operate on the same ASF burst granule search. -
Select Pairs
pairs, baselines, scene_bperp, _ = dl.select_pairs( dt_targets=(6, 12, 24, 36, 48, 72, 96), dt_tol=3, dt_max=120, pb_max=150.0, force_connect=True, )Parameters:
Name Type Description Default dt_targetstupleTarget temporal spacings in days. Defaults to (6, 12, 24, 36, 48, 72, 96).
Nonedt_tolintTolerance in days around each target spacing. Defaults to 3.
Nonedt_maxintMaximum temporal baseline in days. Defaults to 120.
Nonepb_maxfloatMaximum perpendicular baseline in meters. Defaults to 150.0.
Nonemin_degreeintMinimum number of connections per scene. Defaults to 3.
Nonemax_degreeintMaximum number of connections per scene. Defaults to 5.
Noneforce_connectboolForce connectivity for isolated scenes. Defaults to True.
Nonemax_workersintThreads for API baseline fallback. Defaults to 4.
Noneaoi_wktstrAOI geometry in WKT for quality scoring. Defaults to search AOI.
NonemergeboolWhen True, stacks sharing the same relative orbit (path) are combined into one pairing network before temporal/baseline selection — matching how ISCE2's stackSentinel treats multiple frames of one track/pass as a single continuous acquisition. Stacks on different paths are never combined (cross-track pairs have no physical baseline). Use together with
download(merge=True), which puts all scenes in onemerged/slc/directory. Defaults to False.FalseburstboolSelect pairs for an SLC-BURST stack. Nodes become acquisition dates and baselines are computed from the bursts' own startTime/orbits — no parent-SLC lookup. Defaults to False.
Falsesafe_dirstrBurst mode: directory of assembled
.SAFEdirs whose annotation orbits supply bperp (offline).Noneeof_dirstrBurst mode: directory of precise-orbit
.EOFfiles used for bperp (offline).Nonepoeorb_cachestrBurst mode: directory for POEORB downloads keyed by date + mission (online fallback).
Nonequality_checkboolAfter pairing, write the stack file(s) and build the PairQualityDB verdict for every possible pair (the slow, network-heavy step).
Falseskips it. Defaults to True.Trueplot_networkboolSave
network_*.pngwith the pair network, coloured healthy/concern whenquality_checkis True (falls back to temporal-baseline colouring otherwise). Defaults to True.True -
Download
Download the selected burst granules and assemble them into
.SAFEdirectories viaburst2safe.Parameters:
Name Type Description Default save_pathstr | NoneDestination root. Defaults to the configured workdir.
Nonemax_workersint | NoneAccepted for parity with S1_SLC; unused (see above).
Nonedownload_orbitboolAlso fetch the matching precise orbits (.EOF), which every downstream processor needs.
Falseforce_cdseboolFetch orbits from CDSE instead of ASF.
Falsestop_eventthreading.Event to cancel between date groups.
Noneon_progresscallback(message, pct) after each date group.
NonemergeboolAssemble every stack into one directory instead of per-stack subfolders.
False
Searches and downloads NISAR L2 GSLC (geocoded SLC) products via ASF — one already-geocoded complex SLC frame per date, feeding the ISCE3_NISAR processor and ISCE3_Dolphin_NISAR_PL analyzer directly. Search, filter, footprint and pair selection reuse ASF_Base_Downloader. There is no orbit download: NISAR products carry their own state vectors.
NISAR facets differ from Sentinel-1
NISAR carries polarization per frequency band, not in a single polarization field (which ASF leaves null): filter on mainBandPolarization (frequency A, the wide high-resolution band used for InSAR) and, where needed, sideBandPolarization (frequency B, the 5 MHz band for ionosphere). rangeBandwidth (e.g. 40+5) is the acquisition mode — keep it constant across a stack so every date has the same resolution. frameCoverage (FULL/PARTIAL), relativeOrbit (path) and frame complete the facets. NISAR products also report no beamMode/centerLat/centerLon/granuleType/md5sum, and their bytes is a per-file map rather than a single number.
-
Create downloader with parameters
gslc = Downloader.create('NISAR_GSLC', intersectsWith=[-113.08, 37.68, -112.58, 38.07], mainBandPolarization='HH+HV', rangeBandwidth='40+5', start='2025-11-01', end='2026-09-01', workdir='path/to/dir')Source code in
src/insarhub/config/defaultconfig.py -
Search / Download
Identical to
S1_SLC— these reuseASF_Base_Downloader. The downloaded*GSLC*.h5frames land inworkdir/slc/, whereISCE3_NISARreads them.
NISAR_RSLC downloads NISAR L1 RSLC (radar-coordinate SLC) products — the rawest InSAR input (frequency A and B), not yet geocoded. It targets GMTSAR's NISAR path (pre_proc_nsr / p2p_processing_nsr, SAT=NSR_A). Same ASF facets as NISAR_GSLC (main/side-band polarization, range bandwidth, frame coverage, path/frame), no orbit download.
Source code in src/insarhub/config/defaultconfig.py
NISAR_GUNW downloads NISAR L2 GUNW (geocoded unwrapped interferograms) — a ready-made geocoded, unwrapped interferogram pair product, the NISAR analog of a HyP3 Sentinel-1 GUNW. It is single-band (formed on the main band only), so there is no side-band-polarization facet; mainBandPolarization is a single value (HH/HV/VH/VV). Intended to feed MintPy through its prep_nisar loader (no processor needed).