You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the extract step of my ESPO-G workflow, I add a few steps to handle RDRS.
I want to cut my region on rlat and rlon. From what I understand, clisops only cuts on lat and lon.
I want to add nans from my mask.
Potential Solution
Add a method sel to region that would not be a call to clisops, just
arg_sel = {dim:slice(*map(float, bounds)) for dim, bounds in region['sel'].items()}
ds= ds.sel(**arg_sel )
Add a mask arg to add NaNs. Ideally, I would want to be able to ask for the mask in search_data_catalogs with {mask:fx} in variables_and_freq. Then, if mask is True. Apply mask on the other variables. mask could also be a dataarray if the mask is not in a catalogue.
ds= ds.where(mask == True)
Additional context
Let me know you thoughts on the best way to implement the mask.
Right now, this is all in my ESPO-G workflow, but it is not very clean... It would be better in extract.
Contribution
I would be willing/able to open a Pull Request to contribute this feature.
The text was updated successfully, but these errors were encountered:
Addressing a Problem?
In the extract step of my ESPO-G workflow, I add a few steps to handle RDRS.
Potential Solution
sel
to region that would not be a call to clisops, justmask
arg to add NaNs. Ideally, I would want to be able to ask for the mask insearch_data_catalogs
with{mask:fx}
invariables_and_freq
. Then, ifmask
is True. Apply mask on the other variables.mask
could also be a dataarray if the mask is not in a catalogue.Additional context
Let me know you thoughts on the best way to implement the mask.
Right now, this is all in my ESPO-G workflow, but it is not very clean... It would be better in extract.
Contribution
The text was updated successfully, but these errors were encountered: