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.v2_0.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 with the supplied water level height and trend numpy.arrays.

add_metadata(metadata, data_file)

Updates an S104File object based on input metadata.

add_water_level_instance(data_file)

Adds the water_level object container to the S104File object, a feature instance is created each time the function is called (e.g.`WaterLevel.01`, `WaterLevel.02). A series of feature instances should be implemented in the same dataset for any data collection that varies by extent, location, time, or grid size.

create_s104(output_file, dcf[, uncertainty])

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.