Skip to content
Snippets Groups Projects
  1. Jan 16, 2023
  2. Nov 07, 2022
  3. Nov 04, 2022
  4. Jun 09, 2022
    • philippe.verley_ird.fr's avatar
      Deleted optional MD5 file. · 420abc23
      philippe.verley_ird.fr authored
      Deleted 3rd example in triangulate function example (segmentation fault on my laptop)
      Set in.poly parameter bdry as FALSE in both code and documentation.
      420abc23
  5. May 11, 2022
  6. Mar 15, 2021
  7. Mar 29, 2018
  8. Mar 28, 2018
  9. Mar 27, 2018
  10. Sep 07, 2016
    • philippe.verley_ird.fr's avatar
      This commit adds a new option to the ads::mimetic function: the user may... · f616d2d3
      philippe.verley_ird.fr authored
      This commit adds a new option to the ads::mimetic function: the user may provide a raster in the arguments for defining a mask. 
      mimetic(..., mask=NULL)
      mask must either inherit from RasterStack or RasterLayer at the moment (we might change this in future commit). Every non NA values are considered as allowed values for positioning new points.
      It only works for rectangular windows without triangle at the moment (we will extend the option to other window type in future commits).
      
      In the C sources, I updated the functions mimetic_rect(), exchange_point_rect() and created a new function s_alea_rect_mask based on s_alea_rect. The main differences is that instead of 
      generating new points anywhere within the sampling window, it only generates points within the raster limits inside the sampling window.
      The precision parameter might not be implemented properly for the masked point process, it should be double checked.
      The updated functions take the additional arguments nmask, xmask, ymask, dx and dy:
      nmask: number of non-NA points of the raster
      xmask: x-coordinates of the non-NA points in the raster
      ymask: y-ccordinates of the non-NA points in the raster
      dx: dimension of one raster cell along the x-axis
      dy: dimension of one raster cell along the y-axis
      
      The ads::mimetic function does not check whether the spatial point pattern and the raster are consistent in terms of CRS. It assumes at the moment that they are expressed in the same CRS. The function gets rid of any point from the raster that are outside the rectangular sampling window.
      
      
      
      f616d2d3
  11. Sep 06, 2016
  12. Aug 23, 2016
  13. Aug 01, 2016
    • philippe.verley_ird.fr's avatar
      (Zlibs.c) · 35496909
      philippe.verley_ird.fr authored
      Updated all the mimetic_* functions to handle properly spatial point patterns with negative coordinates.
      35496909
  14. Jul 07, 2016
Loading