functions for positive and negative only filters
This commit is contained in:
parent
7e87128227
commit
a8a111a88a
1 changed files with 24 additions and 0 deletions
|
|
@ -252,4 +252,28 @@ contains
|
|||
|
||||
end function threshold_min_max
|
||||
|
||||
real function positive (c)
|
||||
|
||||
real :: c
|
||||
|
||||
if (c > 0.0d0) then
|
||||
positive = c
|
||||
else
|
||||
positive = 0.
|
||||
end if
|
||||
|
||||
end function positive
|
||||
|
||||
real function negative (c)
|
||||
|
||||
real :: c
|
||||
|
||||
if (c < 0.0d0) then
|
||||
negative = c
|
||||
else
|
||||
negative = 0.
|
||||
end if
|
||||
|
||||
end function negative
|
||||
|
||||
end module m_calculate
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue