Skip to content

Commit b6e62a8

Browse files
vpipktmetasim
authored andcommitted
Expose python expm1 function
Signed-off-by: Jason T. Brown <[email protected]>
1 parent 40fe8e2 commit b6e62a8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/src/main/tut/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ _Python_:
547547

548548
_SQL_: `rf_log1p`
549549

550-
Performs natural logarithm of cell values plus one. Invers of @ref:[`expm1`](reference.md#expm1).
550+
Performs natural logarithm of cell values plus one. Inverse of @ref:[`expm1`](reference.md#expm1).
551551

552552
### Tile Statistics
553553

pyrasterframes/python/pyrasterframes/rasterfunctions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def _(data_tile, mask_tile, mask_value):
243243
'exp': 'Performs cell-wise exponential',
244244
'exp2': 'Compute 2 to the power of cell values',
245245
'exp10': 'Compute 10 to the power of cell values',
246-
'exp1m': 'Performs cell-wise exponential, then subtract one',
246+
'expm1': 'Performs cell-wise exponential, then subtract one',
247247
'resample': 'Resample tile to different size based on scalar factor or tile whose dimension to match',
248248

249249
# ------- JTS functions -------

pyrasterframes/python/tests/PyRasterFramesTests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def test_general(self):
101101
.withColumn('ascii', render_ascii(self.tileCol)) \
102102
.withColumn('log', log(self.tileCol)) \
103103
.withColumn('exp', exp(self.tileCol)) \
104+
.withColumn('expm1', expm1(self.tileCol)) \
104105
.withColumn('round', round(self.tileCol))
105106

106107
df.show()

0 commit comments

Comments
 (0)