Create Grid in R for kriging in gstat

前端 未结 3 1033
青春惊慌失措
青春惊慌失措 2020-12-05 12:26
lat    long
7.16   124.21
8.6    123.35
8.43   124.28
8.15   125.08

Consider these coordinates, these coordinates correspond to weather stations th

3条回答
  •  心在旅途
    2020-12-05 13:02

    If you have your study area as a polygon, imported as a SpatialPolygons, you could either use package raster to rasterize it, or use sp::spsample to sample it using sampling type regular.

    If you don't have such a polygon, you can create points regularly spread over a rectangular long/lat area using expand.grid, using seq to generate a sequence of long and lat values.

提交回复
热议问题