Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 29, 2022
1 parent c785f60 commit 0ffd5b9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/soil_compression_geospatial_inputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ for (i in 1:n_cells) {
ex <- extent(cell)

# Take a random sample of n points from the 50 km cell
rs <- SpatialPoints(data.frame(
x = sample(ex[1]:ex[2], n_samp, replace = T),
y = sample(ex[3]:ex[4], n_samp, replace = T)
),
proj4string = crs(cell)
rs <- SpatialPoints(
data.frame(
x = sample(ex[1]:ex[2], n_samp, replace = T),
y = sample(ex[3]:ex[4], n_samp, replace = T)
),
proj4string = crs(cell)
)

# extract the cultivated layer to get fraction of cell cultivated
Expand Down

0 comments on commit 0ffd5b9

Please sign in to comment.