speasy.core.codecs.bundled_codecs.hapi.binary.writer module
- speasy.core.codecs.bundled_codecs.hapi.binary.writer.save_hapi_binary(hapi_file: HapiFile, file: str | IOBase | None = None, with_headers: bool = True, start_date: str | datetime | float64 | float | datetime64 | None = None, stop_date: str | datetime | float64 | float | datetime64 | None = None) bool | memoryview | bytearray | bytes[source]
start_date and stop_date are the dataset’s time range for the header (HAPI’s startDate/stopDate), the span of the records written by default; an empty file with a header needs them.