Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Crossover analysis

Radar sounder crossover analysis refers to finding crossing points between radar flight lines and analyzing differences between the radar data at the same point. Differences can arise from many factors. Often, crossing flight paths are at (nearly) perpendicular angles. Because the along-track and across-track beamwidth of most radar systems is very different, this different imaging geometry can lead to differences in the radar data. These differences are most pronouned over rough terrain, where off-nadir clutter may show up differently in coicident data collected along different angles. Temporal changes, changes in radar systems, and errors in picking the location of the surface or bed are other sources of differences in crossover analysis.

In this notebook, we demonstratate how to automatically find and analyze radar crossovers. To do this, we will

  1. Find STAC items representing radar data within a geographic region.

  2. Use the STAC item geometry to identify points where the radar flight paths cross (crossover points).

  3. Selectively load layer information to make a map of the differences in WGS84 elevation between the bed picks at each crossover point.

  4. Compare the radar bed elevations at each crossover against BedMachine Antarctica.

  5. Interactively load and plot radar data round selected crossover points to see what’s happening.

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Step 1: Finding radar lines

For this notebook, we’ll experiment with finding data by geographic region. xOPR includes a helper module xopr.geometry with some useful utilities. You can call xopr.geometry.get_antarctic_regions to select one or more regions from the MEaSUREs Antarctic Boundaries dataset. Below, we plot all of the regions to give you some options for what to try. Mouse over each region to see its name.

Loading...

For our demonstration, we’ll use David Glacier, but feel free to trade this out for other locations and experiment.

Loading...
Found 97 frames across 6 collections:
collection 2008_Antarctica_BaslerJKB 1 2013_Antarctica_P3 12 2017_Antarctica_Basler 49 2019_Antarctica_GV 1 2022_Antarctica_BaslerMKB 17 2023_Antarctica_BaslerMKB 17 dtype: int64
WARNING:param.GeoOverlayPlot00810: Due to internal constraints, when aspect and width/height is set, the bokeh backend uses those values as frame_width/frame_height instead. This ensures the aspect is respected, but means that the plot might be slightly larger than anticipated. Set the frame_width/frame_height explicitly to suppress this warning.
Loading...

Step 2: Identify crossover points

xOPR includes a helper function to identify crossover points. Feel free to poke into the code and take a look. It takes advantage of GeoPandas’s spatial join (sjoin) function, so it’s actually quite concise.

Found 115 crossover points between flight lines.
WARNING:param.GeoOverlayPlot01283: Due to internal constraints, when aspect and width/height is set, the bokeh backend uses those values as frame_width/frame_height instead. This ensures the aspect is respected, but means that the plot might be slightly larger than anticipated. Set the frame_width/frame_height explicitly to suppress this warning.
Loading...

Zoom in and check out the plot above. Every identified crossover point has a blue dot over it. The blue dots are shaded by the crossing angle. You’ll see that nearly coincident lines will have a large number of low crossing angles wheras most other crossovers are at angles closer to 90 degrees.

The cell below shows you what the result of xopr.find_intersections() looks like. It returns a GeoDataFrame where every column from the intersecting frames is preserved, with suffixes _1 and _2 to distinguish them.

Loading...

Step 3: Load layer data and find the difference in bed elevation

Depending on how many intersection points you have, loading all of the layer data associated with each crossover may take quite some time. The work is mostly waiting on data requests, so we fetch the layers for each unique frame in parallel with a simple thread pool.

For each frame, we convert the bed pick to WGS84 elevation with xopr.layer_twtt_to_range and project it to EPSG:3031 with xopr.geometry.project_dataset. Then, for each crossover, we look up the nearest trace to the intersection point in each frame and difference the two bed elevations.

This is a good time to check that you have a reasonable number of intersection points if you’ve modified anything. We recommend starting with about 100 or fewer intersection points so that this won’t take more than about 5 minutes to run.

  0%|          | 0/65 [00:00<?, ?it/s]
  2%|▏         | 1/65 [00:00<00:55,  1.15it/s]
  8%|▊         | 5/65 [00:17<03:35,  3.60s/it]
 14%|█▍        | 9/65 [00:17<01:33,  1.68s/it]
 17%|█▋        | 11/65 [00:18<01:10,  1.30s/it]
 20%|██        | 13/65 [00:25<01:40,  1.94s/it]
 22%|██▏       | 14/65 [00:26<01:30,  1.76s/it]
 23%|██▎       | 15/65 [00:34<02:30,  3.02s/it]
 26%|██▌       | 17/65 [00:34<01:33,  1.96s/it]
 28%|██▊       | 18/65 [00:34<01:16,  1.63s/it]
 29%|██▉       | 19/65 [00:51<03:50,  5.00s/it]
 31%|███       | 20/65 [00:54<03:19,  4.44s/it]
 42%|████▏     | 27/65 [01:15<02:11,  3.47s/it]
 43%|████▎     | 28/65 [01:17<01:59,  3.22s/it]
 48%|████▊     | 31/65 [01:26<01:49,  3.22s/it]
 49%|████▉     | 32/65 [01:27<01:35,  2.91s/it]
 98%|█████████▊| 64/65 [01:27<00:01,  1.37s/it]

We now have all of our crossovers. Don’t worry if you see a few warnings above -- some frames simply don’t have layer data available from either source (files or database), and those crossovers are skipped.

WARNING:param.GeoOverlayPlot01793: Due to internal constraints, when aspect and width/height is set, the bokeh backend uses those values as frame_width/frame_height instead. This ensures the aspect is respected, but means that the plot might be slightly larger than anticipated. Set the frame_width/frame_height explicitly to suppress this warning.
Layer data available for 108/115 intersections (94%)
Loading...

This map shows the differences in picked bed elevation at every crossing point where layer data was available. Explore around and see what you notice!

Step 4: Compare against BedMachine Antarctica

Each crossover gives us two independent radar measurements of the bed elevation. We can also compare both against the BedMachine Antarctica gridded product, streamed directly from NSIDC via earthaccess. This requires a free Earthdata login stored in ~/.netrc or in the EARTHDATA_USERNAME/EARTHDATA_PASSWORD (or EARTHDATA_TOKEN) environment variables; if no credentials are found, the comparison is skipped. BedMachine’s bed elevation is referenced to the EIGEN-6C4 geoid, so we add the geoid undulation to get WGS84 ellipsoidal heights matching the radar picks. See the “Comparing OPR bed picks with BedMachine” notebook for a more in-depth version of this comparison.

No Earthdata credentials found -- skipping the BedMachine comparison.

Step 5: Investigate individual crossovers by looking at the radar data

If you hover over any crossover point in the maps above, you’ll get the index associated with each crossover. Enter one of those indices below to load and plot the corresponding radar data to see what’s happening.

Valid index range: 0 to 107
Selected index: 7
Frame 1: Data_20221212_01_013 from 2022_Antarctica_BaslerMKB
Frame 2: Data_20231212_02_012 from 2023_Antarctica_BaslerMKB
Intersection at trace 264 (frame 1) and 1275 (frame 2)
Bed elevation difference: 478.77 m
<Figure size 1500x800 with 4 Axes>
<Figure size 1500x800 with 4 Axes>