yatsm.mapping.utils module¶
Utilities for turning YATSM record results into maps
Also stores definitions for model QA/QC values
-
yatsm.mapping.utils.find_indices(record, date, after=False, before=False)[source]¶ Yield indices matching time segments for a given date
Parameters: Yields: tuple – (int, np.ndarray) the QA value and indices of record
containing indices matching criteria. If before or after are specified, indices will be yielded in order of least desirability to allow overwriting – before indices, after indices, and intersecting indices.
-
yatsm.mapping.utils.find_result_attributes(results, bands, coefs, prefix='')[source]¶ Returns attributes about the dataset from result files
Parameters: Returns: Tuple containing
listof indices for output bands and output coefficients,boolfor outputting RMSE,listof coefficient names,strdesign specification, andOrderedDictdesign_info (i_bands, i_coefs, use_rmse, design, design_info)Return type: Raises: KeyError– Raise KeyError when a required result output is missing from the saved record structure