The functions in s102.utils can be accessed by just importing s102. They are automatically imported but can be brought in separately if desired.:

from s100py import s102
s102.from_gdal(...)
# or
from s100py.s102 import utils
utils.from_gdal(...)
# or
from s100py import s102.utils
s102.utils.from_gdal(...)

s100py.s102.v2_2.utils Module

Functions to create S102 data from other sources

If the utils module is run as __main__ then it will run from_bag() or from_gdal() on the filename given in the command line arguments.

Functions

plot_depth_using_h5py(filename[, enc_color])

create_s102(output_file[, overwrite])

rtype:

S102File

from_arrays(depth_grid, uncert_grid, output_file)

Creates or updates an S102File object based on numpy array/h5py datasets.

from_arrays_with_metadata(depth_grid, ...[, ...])

Creates or updates an S102File object based on numpy array/h5py datasets.

from_gdal(input_raster, output_file[, ...])

Fills or creates an S102File from the given arguments.

from_bag(bagfile, output_file[, metadata])

Fills or creates an S102File from the given arguments.

get_valid_epsg()

Create and return the list of valid EPSG codes for S-102 version 2.0.

to_geotiff(input_path, output_path)