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

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

s100py.s104.v1_1.utils Module

Functions to create S104 files and populate with data from other sources

Functions

add_data_from_arrays(height, trend, ...)

Updates an S104File object based on numpy array/h5py datasets.

add_metadata(metadata, data_file)

Updates an S104File object based on input metadata.

create_s104(output_file, dcf)

Creates or updates an S104File object.

update_metadata(data_file, grid_properties, ...)

Updates an S104File object based on dynamic metadata.

write_data_file(data_file)

Writes file structure, metadata, data and closes S104File object.