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

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

s100py.s111.v1_2.utils Module

Functions to create S111 data from other sources

Functions

add_data_from_arrays(speed, direction, ...)

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

add_metadata(metadata, data_file)

Updates an S111File object based on input metadata.

create_s111(output_file, dcf)

Creates or updates an S111File object.

update_metadata(data_file, grid_properties, ...)

Updates an S111File object based on dynamic metadata.

write_data_file(data_file)

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