ship_mapper.spatial_filter

ship_mapper.spatial_filter(file_in, info)[source]

Returns only the “pings” within a defined box.

This functions used the min and max lat/lons from info to exclude all data outside the spatial domain of interest

Parameters:
  • file_in (str) – Input file (“standard” .nc file)
  • info (info) – info object containing metadata
Returns:

Dataset containly the spatially filtered data

Return type:

xarray.Dataset