Closed jeffdlb closed 4 years ago
Unless I am mistaken, it seems that substring matching would be a one-line code change.
In _get_subset() at https://github.com/NCAR/intake-esm/blob/master/intake_esm/core.py, on line 633 replace
(df[key] == val_i)
with
(val_i in df[key])
This would be a case-sensitive match, so a bit of additional logic would be needed to ignore case.
Hi @andersy005:
I hope all is well with you in these strange times.
I believe with intake-esm one can search the collection only for entire column values, not substrings. E.g., I can find TAUX, TAUX2, or TAUY, but not "TAU*".