-
Notifications
You must be signed in to change notification settings - Fork 19
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
Homogenize API arguments #440
Conversation
…ple). As this is a positional argument it does not have any impact on the test suite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @atedstone, this is great!! I didn't find anything to comment on in the code changes.
I like the homogenization to sample
and differentiation with subset
! 😄
It looks like subset
is used only in split_bands
, we could even rename into something specific to that function like bands
to avoid any kind of confusion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work !
As discussed on slack, I find that removing the dst_
prefix everywhere makes sense from a user/API point of view, but it may be a bit less easy to read the code. We'll see!
I find that size
is not clear enough. I would favor grid_size
to clarify that we're talking about the dimensions of the array. But we can revert in a future PR if we all agree.
For consistency, we could use the same terminology as in |
I also don't find |
I would be fine with |
+1 for |
This PR causes breaking changes to API
Resolves the rest of #432.
dst_
rst
with rastergrid_size
tosize
points
, neverpts
Grammar of sampling
This PR proposes to regularise the grammar around the word sample and its derivatives.
sample
is used. Previously,subset
orsubsample
were both used to denote this purpose.downsample
orupsample
defines a change in a Raster's resolution. The more generic term isresample
, but the use of a specific direction is preferred. Try not to useresample
as this has connotations of towardsreproject
.subset
andsubsample
refer to an contiguous portion of data (e.g. anx*y
window of aRaster
, specific bands of aRaster
, orrow n...row m
of aVector
), without a change in resolution. I am regularising tosubset
.