Closed grantbuster closed 2 years ago
Maybe a utility function that cleans the input arg in this class: https://github.com/NREL/nsrdb/blob/b2f01d3afc37b142766de4bcafb5f60b5ab2641b/nsrdb/nsrdb.py#L65
Maybe here too: https://github.com/NREL/nsrdb/blob/b2f01d3afc37b142766de4bcafb5f60b5ab2641b/nsrdb/data_model/data_model.py#L125
Maybe here too: https://github.com/NREL/nsrdb/blob/b2f01d3afc37b142766de4bcafb5f60b5ab2641b/nsrdb/data_model/clouds.py#L758
the suffixes that we want to allow are 'min', 'h', and 'D'? or 't'? and should we assert that freq contains one of the above or should we replace 'm' with 'min' and allow routine to proceed?
Using a frequency of "10m" instead of "10min" results in the error ValueError: zero-size array to reduction operation maximum which has no identity due using a 10 month frequency for interpolation. Possible verify that "h", "min", or "t" is in the freq string?