Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make generate_wcs_getcov_str function more generic #501

Open
charparr opened this issue Dec 20, 2024 · 0 comments
Open

Make generate_wcs_getcov_str function more generic #501

charparr opened this issue Dec 20, 2024 · 0 comments

Comments

@charparr
Copy link
Member

I don't think it makes sense to have individual args for var_coord and time_axis and slice_string
Rather, this function should be able to accept and unpack and arbitrary number of axes and slices.

# if var_coord is specified, subsetting using the specific variable
if var_coord is not None:
var_subset_str = f"&SUBSET=varname({var_coord})"
else:
var_subset_str = ""
if time_slice is not None:
time_axis, slice_string = time_slice
time_slice_str = f"&SUBSET={time_axis}({slice_string})"
else:
time_slice_str = ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant