Closed kaitlyngaynor closed 1 year ago
I have only done a single tutorial in QGIS to make a map for my mangrove work, so it's not something I think I'd be able to figure out in a reasonable time frame using that. If it's okay and you have time, could you see what you can figure out in R?
Sure thing. I just did this in this script here, using the st_distance() function in the sf package. It was pretty easy—take a look!
Here's the output (units are meters): camera-pan-dist.csv
Awesome, thank you! I'll check it out.
Is your thinking now to use this and still calculate closest "water" using distance to river, pans and lake?
Yeah I think so?
Sounds good, I'll work with that!
Update on single species covariate exploration:
to try:
When I run this as a Type 1 (no interactions model), it beats null by 1.7 AIC points. I feel like I've read (or you've told me) that delta 2 is enough to consider models sufficiently different. What do you think?
closing distance to pan issue
Moving this to a GitHub issue...
From Katie:
The pan layer includes a lot of TINY watering holes that definitely don’t have water any time near the study period, hmm. I’m hesitant to use it… you’re right that there’s no easy way to combine the density layer and distance layers, though.
I did find the raw shape file for “conservative/large pans,” which I defined as a pan >1km2 in size. These retain water for a lot more of the year. I found a script (from 2018) that calculated distance from each camera to largest pan, but it's using R packages that no longer work and input files that I no longer have... it would probably be pretty fast in QGIS/ArcGIS, but if this isn't in your wheelhouse @klg-2016 I can figure this out in R using packages that actually work! Let me know.
Here's the shape file: Pan_largerthan1km2.zip