PINGMapper icon indicating copy to clipboard operation
PINGMapper copied to clipboard

Clip data with AOI

Open CameronBodine opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. PINGMapper needs a method to filter unwanted data from exports. For example, when collecting data with an ROV/ASV, it is not possible to remotely start and stop a recording for each transect. In a open-water context, multiple transects are often collected in serpentine type pattern, like mowing a lawn. There needs to be a method for easily removing the parts of the sonar data where the vessel is turning.

Describe the solution you'd like Allow the user to provide an AOI (area of interest) shapefile that PINGMapper can use to clip the sonar recording.

Describe alternatives you've considered #103 describes a workflow for first exporting rectified chunks, deleting the ones that should not be included in the mosaic, then creating a mosaic by running ./utils/main_mosaic_transects.py. This is a decent workaround. A better, and more precise, approach would be to clip the meta files, then export the imagery.

Additional context Example recording which could benefit from this approach.

Relevant Issues #103, #88, #121

ToDo:

  • [x] Create aoi clip workflow
  • [x] Update main and gui scripts for inclusion of new aoi parameter
  • [x] Update workflow to accept shapefile as aoi input (currently supports .plan files). #121

CameronBodine avatar Jan 23 '24 15:01 CameronBodine

Example

The objective is to use an AOI to clip pings inside the boundary and only use those to perform the georectification. This will remove artifacts in the mosaic caused by the tight turns of the vessel. In addition, each straight transect should be its own transect, enabling turning each transect on and off in a GIS.

image

CameronBodine avatar Jun 10 '24 17:06 CameronBodine

Workflow prototype completed. Transects are automatically generated using the aoi. Each transect is combined into individual transect mosaics. Image below shows raw mosaic (left) and 4 transect mosaics (right).

image

To Do:

  • Update main and gui scripts for inclusion of new aoi parameter
  • Update workflow to accept shapefile as aoi input (currently supports .plan files).

CameronBodine avatar Jun 10 '24 23:06 CameronBodine

Closing as complete.

CameronBodine avatar Nov 25 '24 16:11 CameronBodine