You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sedona.apache.org by "Kontinuation (via GitHub)" <gi...@apache.org> on 2023/07/18 09:18:33 UTC

[GitHub] [sedona] Kontinuation opened a new pull request, #907: [SEDONA-326] Improve raster algebra functions: RS_Array and RS_MultiplyFactor

Kontinuation opened a new pull request, #907:
URL: https://github.com/apache/sedona/pull/907

   ## Did you read the Contributor Guide?
   
   - Yes, I have read [Contributor Rules](https://sedona.apache.org/latest-snapshot/community/rule/) and [Contributor Development Guide](https://sedona.apache.org/latest-snapshot/community/develop/)
   
   ## Is this PR related to a JIRA ticket?
   
   Yes, [SEDONA-326](https://issues.apache.org/jira/browse/SEDONA-326)
   
   ## What changes were proposed in this PR?
   
   Make `RS_Array` and `RS_MultiplyFactor` easier to use.
   
   * `RS_Array` automatically casts the initial value to double. Now we can safe guard `RS_Divide` using
     ```sql
     RS_Divide(band_nir, RS_LogicalOver(band_red, RS_Array(array_size(band_red), 1e-12)))
     ```
   * `RS_MultiplyFactor` takes double factors.
   
   ## How was this patch tested?
   
   Added new unit tests.
   
   ## Did this PR include necessary documentation updates?
   
   - Yes, I have updated the documentation update.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [sedona] jiayuasu merged pull request #907: [SEDONA-326] Improve raster algebra functions: RS_Array and RS_MultiplyFactor

Posted by "jiayuasu (via GitHub)" <gi...@apache.org>.
jiayuasu merged PR #907:
URL: https://github.com/apache/sedona/pull/907


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org