-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add cell value scaling functions #449
Conversation
Signed-off-by: Jason T. Brown <jason@astraea.earth>
Signed-off-by: Jason T. Brown <jason@astraea.earth>
Signed-off-by: Jason T. Brown <jason@astraea.earth>
Signed-off-by: Jason T. Brown <jason@astraea.earth>
Signed-off-by: Jason T. Brown <jason@astraea.earth>
…page Signed-off-by: Jason T. Brown <jason@astraea.earth>
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.
Wow!
Wow!
Wow!
💯
Change Clip
to Clamp
and let's get it out in the wild!
* min - scalar or tile setting the minimum value for each cell | ||
* max - scalar or tile setting the maximum value for each cell""" | ||
) | ||
case class Clip(left: Expression, middle: Expression, right: Expression) |
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.
There's already precident for calling this kind of operation "clamp".
https://github.com/locationtech/rasterframes/search?q=clamp&unscoped_q=clamp
A clip in imagery usually implies trimming the pixel edges, where as a clamp is on the pixel values.
https://imagemagick.org/script/command-line-options.php#clamp
So my preference here (sorry) is to keep with that nomenclature.
core/src/main/scala/org/locationtech/rasterframes/expressions/localops/Max.scala
Show resolved
Hide resolved
} | ||
} | ||
|
||
describe("standardize and rescale") { |
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.
I wonder if these should go in the StatFunctionsSpec
file....
Signed-off-by: Jason T. Brown <jason@astraea.earth>
Fix #218
Functions we would like to include here:
Initial commit is just some of the functions. Still a few more to go.