We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20dc89c commit 29a7d4aCopy full SHA for 29a7d4a
prep/NISAR_prep.ipynb
@@ -429,7 +429,12 @@
429
" x = f[f\"/science/LSAR/GUNW/grids/frequencyA/unwrappedInterferogram/{pol}/xCoordinates\"][:]\n",
430
" y = f[f\"/science/LSAR/GUNW/grids/frequencyA/unwrappedInterferogram/{pol}/yCoordinates\"][:]\n",
431
" mask_raw = f[f\"/science/LSAR/GUNW/grids/frequencyA/unwrappedInterferogram/mask\"][()]\n",
432
- " mask = np.where(mask_raw != 11, 0, 1)\n",
+ "\n",
433
+ " water_mask = (mask_raw // 100) == 1\n",
434
+ " ref_subswath = (mask_raw // 10) % 10\n",
435
+ " sec_subswath = mask_raw % 10\n",
436
+ " is_valid = (ref_subswath > 0) & (sec_subswath > 0)\n",
437
+ " mask = (is_valid) & ~water_mask\n",
438
"\n",
439
"dx = float(x[1] - x[0])\n",
440
"dy = float(y[1] - y[0])\n",
0 commit comments