from_bag

s100py.s102.utils.from_bag(bagfile, output_file, metadata=None)
Parameters
  • bagfile – Either a path to a raster file that GDAL can open or a gdal.Dataset object.

  • output_file – Can be an S102File object or anything the h5py.File would accept, e.g. string file path, tempfile obect, BytesIO etc.

  • metadata (Optional[dict]) – Supports the metadata options in from_from_arrays_with_metadata. In addition, ‘resample_resolution’ can supplied to use a particular resolution using gdal “MODE=RESAMPLED_GRID”

Return type

S102File