create_s102

s100py.s102.utils.create_s102(output_file, overwrite=True)

Creates or updates an S102File object. Default values are set for any data that don’t have options or are mandatory to be filled in the S102 spec.

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

  • overwrite – If updating an existing file then set this option to False in order to retain data (not sure this is needed).

Returns

The object created or updated by this function.

Return type

S102File