ncss-tech / rosettaPTF

R frontend for the Python rosetta-soil module. Uses {reticulate} to wrap the Rosetta pedotransfer functions and provide unsaturated soil hydraulic parameter estimates from basic soil properties.
https://ncss-tech.github.io/rosettaPTF/
GNU General Public License v2.0
8 stars 1 forks source link

`run_rosetta()` fails to create batch sequence #12

Open brownag opened 8 months ago

brownag commented 8 months ago

Reported by @ColbyBrungard

library(terra)
terraOptions(memfrac=0.9, progress=2)

# test SpatRast sand, silt, clay – all sum to exactly 100%
test = rast("Z:\\vf\\WaterRetentionDifference\\test/sum_30cm_test_fix.tif")

run_rosetta(soildata = test,
  vars = NULL,
  rosetta_version = 2,
  cores = 8,
  file = "awc_30_cm.tif",
  nrows = 10000, 
  overwrite = TRUE
)

Yields the following:

Error in seq.default(1, out_info$nrows, nrows) : 'to' must be of length 1

TODO: