Closed Runge123 closed 11 months ago
should be fixed
Dear Chris,
I fixed the problem in a - rustic - way, but it works as long as the OTB specifications are used.
Link OTB: For a windows version : otb_cli_path <- normalizePath("C:/OTB/bin/otbcli.bat") For a Linux version : otb_cli_path <- normalizePath("~/OTB/bin/otbcli.bat")
basic example example: https://www.orfeo-toolbox.org/CookBook/Applications/app_EdgeExtraction.html for (edges in edgeType) { message(":::: processing edge...", edges, " Kernelsize: ", k, "\n") out_edge_file <- file.path(R.utils::getAbsolutePath(envrmt$pathrun),paste0("PCA",edges,k,"",basename(fbFN))) otb_command_edges <- paste( shQuote(otb_cli_path), "EdgeExtraction", "-in", shQuote(fbFN), "-filter", edges, "-out", shQuote(out_edge_file), "-ram", "4096")
Still can't figure out the link to use linkOTB, but I'll try to figure it out.
Thanks Chris :)
Hi Chris,
While output linkOTB is correct
In the terminal the $PATH of otbcli looks correct
cmr@cmr:~$ otbcli Usage: /home/cmr/OTB-8.1.1-Linux64/bin/otbApplicationLauncherCommandLine module_name [MODULEPATH] [arguments]
then I call a raster and the "DimensionalityReduction" to calculate pca and its output
but finally when I use the runOTB function to calculate the pca I get the following error.
In a place of your repository (here https://github.com/r-spatial/link2GI/blob/master/R/parseOTB.R) I found that fixed this error, although I can not decipher the reason for the error. Maybe the error expresses that the raster does not have a valid length?
Any help from you would be great :)