Skip to content
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

Testing of new effective sampling size calculations and box-whisker plots #26

Open
dylanbeaudette opened this issue Nov 2, 2016 · 3 comments

Comments

@dylanbeaudette
Copy link
Member

dylanbeaudette commented Nov 2, 2016

New process:

  1. load rasters into memory if possible
  2. perform cursory grid-based sampling to determine Moran's I of each raster
  3. set sampling intensity based on I of each raster

This is all implemented in:

  • sharpshootR::sampleRasterStackByMU(..., estimateEffectiveSampleSize=TRUE)
  • sharpshootR::Moran_I_ByRaster()
  • sharpshootR::ESS_by_Moran_I()

These functions have not been extensively documented or tested.

@dylanbeaudette
Copy link
Member Author

The Moran_I_ByRaster() function likely underestimates SA. A more appropriate measure would mask the input raster using the source polygons. This will not work when pixels are large relative to map unit polygons.

@dylanbeaudette
Copy link
Member Author

Proposed, better approach:

  1. mask current raster by input polygons
  2. if cell size < 30m, resample to 30m (or some such value)
  3. compute Morans' I within polygons

@dylanbeaudette
Copy link
Member Author

Over-sampling will less of a concern after addressing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants