-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeoAI_2021_unit_04_EX_Create Masks #10
Comments
R is unable the find the "AllEqual" function/command in the above created "remove_files" function. I looked on the internet if this is a potential typo or I forgot to load one of the packages but I could not find the "AllEqual" function and the "all.equal" argument by base R doesnot work. |
@seegerkonstantin |
I have the same error in applying the |
@FloFranz I solved this problem by installing greenbrown with the following command: "install.packages("greenbrown", repos="http://R-Forge.R-project.org")" as described on this side https://greenbrown.r-forge.r-project.org/install.php . |
@seegerkonstantin Confusing! I first had to install |
@FloFranz sorry for confusing. It is often helpful to have a look in the Description file of the package.There you find the dependencies in this case |
As far as I see it you need to install the requested packages as you tried.
|
|
@SedaBekar this is fine - pretty good solution ! It would be the best du put it in your setup script or in the .Renviron file of the project. |
@gisma |
@gisma I have tried to follow the way of Florian Franz, but I had still to install stucchange manually to be able to install greenbrown. |
pleasse follow the above instructions. I have no other hints. |
@gisma Now another problem occurred when I tried to set the extent of the raster image. It says is.image_collection is not true. Why? And how can I change this? |
Again pls Upload your complete and actual Scripts to a repo . Otherwise can not answer your questions. |
variable alt_env_id is NOT defined variable fcts_folder is NOT defined by calling script...
|
Here my setup script: basic rspatial course setup scriptType: scriptName: 000-rspatial-setup.RAuthor: Chris Reudenbach, creuden@gmail.comDescription: create/read project folder structure and returns pathes as listload all necessary packagessources all functions in a defined function folderDependencies: devtools::install_github("envima/envimaR")Output: list containing the folder strings as shortcutsCopyright: Reudenbach/Nauss 2015-2021, GPL (>= 3)Details: Please note that the queries on standard arguments have been set forpragmatic reasons for a typical course setting. Of course, it isintended to assign the arguments directly in the createEnvi functionDate: 2021-12-12#------------------------------------------------------------------------------ 1 - source files#----------------- source(file.path(envimaR::alternativeEnvi(root_folder = "C:/Users/jomue/edu/geoAI", rspatial packagespackagesToLoad = c("rgdal","png","tensorflow","keras","reticulate","osmdata","greenbrown","rsample","tfdatasets","purrr","magick","rprojroot","sen2r","patchwork","ggplot2","rpart","rpart.plot","rasterVis", "forcats","e1071","mapview", "mapedit", "tmap", "raster", "terra", "stars", "gdalcubes", "sf","dplyr","tidyverse","RStoolbox", mandantory folder structureprojectDirList = c("data/", append additional packages if defined by calling scriptif (exists("appendProjectDirList") && appendProjectDirList[[1]] != "") if (exists("appendpackagesToLoad") && appendpackagesToLoad[[1]] != "") Now create/read root direcory, folder structure and load packagesNOTE root_folder MUST be defined in calling scriptif (!exists("root_folder")) { if (!exists("path_prefix")) { root_folder = envimaR::alternativeEnvi(root_folder = root_folder, if (!exists("fcts_folder")) { append additional folders if defined by calling scriptif (exists("appendProjectDirList") && appendProjectDirList[[1]] != "") call central functionenvrmt = envimaR::createEnvi(root_folder = root_folder, set temp path to speed up raster package operationsraster::rasterOptions(tmpdir = envrmt$path_tmp) suppres gdal warningsrgdal::set_thin_PROJ6_warnings(TRUE) define some color palettesmvTop = mapview::mapviewPalette("mapviewTopoColors") |
Die to possible dependencies in your functions and also due to a convenience etc. I rather orefer a complete GitHub repository. |
gh repo clone Muenchj4/geoAI |
In this repository you can find the scripts. I am still trying to follow up the dependencies. |
I have now tried to print the extent of the raster file mannualy like this: |
I will Check IT asap |
Have an Look at the Setup File .probably you will find some predefined extents . In Addition Check the crs are they identical? |
In the setup file I cannot find any predefined extent. I have tried to use proj4string instead of crs, but I still gets the message is.cube is not TRUE. What could be the reason? |
@Muenchj4 the above script starting with |
@gisma now I have included the script in the it is runned until the error message occurs. |
@gisma Have you allready chequed my scripts? Can you imagine why the extent function does not work in my script? |
@gisma Do you know why rasterized_vector has no content:
|
Die Funktion in dem
Wenn das Raster |
No description provided.
The text was updated successfully, but these errors were encountered: