save_array

ndmapper.io.save_array(*args, **kwargs)[source] [edit on github]

Save a data array to the specified index (array number) within an existing file. Associated meta-data may be saved at the same time, being needed to describe the array fully and to save writing to the file twice (unlike load_array_meta & load_array, which are used separately anyway when lazy loading and when using a single set of meta-data for data/uncertainty/flags arrays). If meta is not supplied, the minimal metadata needed to specify the array size, dimensionality & numeric type will be written. The index within the file must either exist already (for overwriting) or be the next one available (for appending).