diff --git a/Dockerfile b/Dockerfile index 2be75b9..80a0044 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,8 @@ ENV TZ=Etc/UTC RUN apt-get install -y libnetcdf-dev libcurl4-openssl-dev libcpprest-dev doxygen graphviz libsqlite3-dev libboost-all-dev RUN apt-get update && apt-get install -y libproj-dev libgdal-dev -# Install devtools package -RUN R -e "install.packages('devtools')" +# Install devtools and remotes +RUN R -e "install.packages(c('devtools', 'remotes'))" # Install gdalcubes package RUN R -e "install.packages('gdalcubes')" diff --git a/Dockerfiles/start.R b/Dockerfiles/start.R index b72ed20..57a7533 100644 --- a/Dockerfiles/start.R +++ b/Dockerfiles/start.R @@ -1,3 +1,7 @@ +# Install package from GitHub +if(!require(openeosits)){ + remotes::install_github("Open-Earth-Monitor/openeosits", ref = "develop", dependencies=TRUE, force = TRUE) +} # Start service library(openeosits) diff --git a/R/Collection-class.R b/R/Collection-class.R index 995396e..11a66b2 100644 --- a/R/Collection-class.R +++ b/R/Collection-class.R @@ -51,7 +51,7 @@ Collection <- R6Class( private$metadata = list( extent = extent(private$imageCollection), - bands = NULL #gdalcubes:::libgdalcubes_image_collection_info(private$imageCollection)$bands$name + bands = list() #gdalcubes:::libgdalcubes_image_collection_info(private$imageCollection)$bands$name ) }, diff --git a/man/SENTINEL_2_L2A.Rd b/man/SENTINEL_2_L2A.Rd index cb56b15..7c4a841 100644 --- a/man/SENTINEL_2_L2A.Rd +++ b/man/SENTINEL_2_L2A.Rd @@ -4,7 +4,7 @@ \name{SENTINEL_2_L2A} \alias{SENTINEL_2_L2A} \title{collections: -sentinel-s2-l2a} +sentinel-2-l2a} \format{ An object of class \code{Collection} (inherits from \code{R6}) of length 13. } @@ -13,6 +13,6 @@ SENTINEL_2_L2A } \description{ collections: -sentinel-s2-l2a +sentinel-2-l2a } \keyword{datasets} diff --git a/man/eo_ml_datacube.Rd b/man/eo_ml_datacube.Rd new file mode 100644 index 0000000..b25af0e --- /dev/null +++ b/man/eo_ml_datacube.Rd @@ -0,0 +1,16 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/processes.R +\docType{data} +\name{eo_ml_datacube} +\alias{eo_ml_datacube} +\title{return object from ml pedict process} +\format{ +An object of class \code{list} of length 2. +} +\usage{ +eo_ml_datacube +} +\description{ +return object from ml pedict process +} +\keyword{datasets} diff --git a/man/ml_datacube_schema.Rd b/man/ml_datacube_schema.Rd new file mode 100644 index 0000000..a226a88 --- /dev/null +++ b/man/ml_datacube_schema.Rd @@ -0,0 +1,14 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/processes.R +\name{ml_datacube_schema} +\alias{ml_datacube_schema} +\title{ml datacube_schema} +\usage{ +ml_datacube_schema() +} +\value{ +datacube list +} +\description{ +Return a list with ml data cube description and schema +}