-
Notifications
You must be signed in to change notification settings - Fork 29
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
tpi annulus option #15
Comments
Jason,
I will add this as a development request but, not within the tpi function. When I get a change I will write a matrix function for deriving an annulus matrix that can then be passed to any focal function, including spatialEco functions that call for a window. I have to admit that using an annulus window in the TPI metric does give me pause. There are plenty of spatial processes that one can summarize by partialing out the previous scales using an annulus matrix, as opposed to a cumulative assessment using nested scales. However, given the nature of the TPI, along with other geomorphometric data, I fail to see what hypotheses one would be testing or what process would be represented. In the TPI, this would not represent a partialing function but rather a structural specification of the resulting metric. A weights matrix acting as a smoothing function, such as Gaussian Kernel or Wavelet, would make sense in decomposing variation across scales but an actual structural constraint to the kernel does not track with me. Perhaps you have some specific hypothesis that is just eluding me.
Best,
Jeff
Jeffrey S. Evans, Ph.D., | Senior Landscape Ecologist / Biometrician
The Nature Conservancy | Global Lands Science
Visiting Professor | University of Wyoming | Zoology & Physology
Laramie, WY | jeffrey_evans@tnc.org<mailto:jeffrey_evans@tnc.org> | (970) 672-6766<tel:(970)%20672-6766>
From: Jason Matney <notifications@github.com>
Sent: Friday, August 2, 2019 8:41 AM
To: jeffreyevans/spatialEco <spatialEco@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [jeffreyevans/spatialEco] tpi annulus option (#15)
Would it be possible to include an option for an annulus focal window in tpi.R?
Looks like Jan Holstein has attempted this in his crecs pacakge - however I'd prefer to use spatialEco since its on CRAN: https://rdrr.io/github/janhoo/crecs/src/R/terrain.R<https://rdrr.io/github/janhoo/crecs/src/R/terrain.R>
Thank you for your attention to this.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#15?email_source=notifications&email_token=ACLKH72THBKES4KF3L3ORWDQCRBQVA5CNFSM4II6MMQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDCOPIA>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACLKH7YNV23QSUTFGUBAM4TQCRBQVANCNFSM4II6MMQQ>.
|
Thanks so much for considering this request Jeff, and apologies I didn't explain my reasoning more in my initial post. Essentially, I'm not testing a hypothesis, but instead attempting to visualize the relative geomorphic-grain of a given area at various landscape scales. I know that other software does this by ignoring some portion of the surrounding landscape in order to determine how similar or dissimilar the center point (grid cell) is to some window. My understanding is that an annulus is well supported in geomorphology [1]. Hope this clarifies this use-case. [1] https://scholar.google.com/scholar?hl=en&as_sdt=0,47&q=tpi+annulus+geomorphology |
Jason,
I have added a function “annulus.matrix” to the development version of spatialEco. You can install it from GitHub using remotes::install_github("jeffreyevans/spatialEco")
Please let me know if this will work for your applications or if you need clarification on the functions usage.
Best,
Jeff
From: Jason Matney <notifications@github.com>
Sent: Monday, August 5, 2019 3:28 PM
To: jeffreyevans/spatialEco <spatialEco@noreply.github.com>
Cc: Jeffrey Evans <jeffrey_evans@TNC.ORG>; Comment <comment@noreply.github.com>
Subject: Re: [jeffreyevans/spatialEco] tpi annulus option (#15)
Thanks so much for considering this request Jeff, and apologies I didn't explain my reasoning more in my initial post.
Essentially, I'm not testing a hypothesis, but instead attempting to visualize the relative geomorphic-grain of a given area at various landscape scales. I know that other software does this by ignoring some portion of the surrounding landscape in order to determine how similar or dissimilar the center point (grid cell) is to some window. My understanding is that an annulus is well supported in geomorphology [1].
Hope this clarifies this use-case.
[1] https://scholar.google.com/scholar?hl=en&as_sdt=0,47&q=tpi+annulus+geomorphology<https://scholar.google.com/scholar?hl=en&as_sdt=0,47&q=tpi+annulus+geomorphology>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#15?email_source=notifications&email_token=ACLKH7YYLKYDAOSMIHQBWZLQDCLM7A5CNFSM4II6MMQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3TEI6A#issuecomment-518407288>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACLKH75WVJ45PL3ZNTW4DE3QDCLM7ANCNFSM4II6MMQQ>.
|
This is exactly the functionality I was looking to leverage alongside the rest of your package's functionality. Very much appreciate you taking the time to add this function. Thank you and I will be sure to spread the word! |
Would it be possible to include an option for an annulus focal window in tpi.R?
Looks like Jan Holstein has attempted this in his crecs pacakge - however I'd prefer to use spatialEco since its on CRAN: https://rdrr.io/github/janhoo/crecs/src/R/terrain.R
Thank you for your attention to this.
The text was updated successfully, but these errors were encountered: