HabitatSampler merge requestshttps://git.gfz-potsdam.de/habitat-sampler/HabitatSampler/-/merge_requests2021-07-09T08:23:01+02:00https://git.gfz-potsdam.de/habitat-sampler/HabitatSampler/-/merge_requests/21Save sample points2021-07-09T08:23:01+02:00Romulo Pereira GoncalvesSave sample pointsPerformanceRomulo Pereira GoncalvesRomulo Pereira Goncalveshttps://git.gfz-potsdam.de/habitat-sampler/HabitatSampler/-/merge_requests/18Save samplepoints2021-06-25T15:33:49+02:00Johannes KnochSave samplepointswriteOutSamples.r now writes out a set of samples (SpatialPointsDataFrame) into an ESRI shapefile or a GeoJSON file for a selected habitat type. Each point represents a valid sample location that identifies the selected habitat type.
de...writeOutSamples.r now writes out a set of samples (SpatialPointsDataFrame) into an ESRI shapefile or a GeoJSON file for a selected habitat type. Each point represents a valid sample location that identifies the selected habitat type.
default output format is shape; use output_format = 'geojson' for geojson output
Documentation is adjusted and write_Out_Samples.Rd is commited.GeneralizationJohannes KnochJohannes Knochhttps://git.gfz-potsdam.de/habitat-sampler/HabitatSampler/-/merge_requests/11Fixes for #20 and improvements like suggested in #222021-06-08T14:12:24+02:00Johannes KnochFixes for #20 and improvements like suggested in #22fixes #20 and implements the suggestions of #22
The legend isn't perfect yet, but usable.fixes #20 and implements the suggestions of #22
The legend isn't perfect yet, but usable.Johannes KnochJohannes Knochhttps://git.gfz-potsdam.de/habitat-sampler/HabitatSampler/-/merge_requests/5Improve the user interaction.2021-05-04T09:50:09+02:00Romulo Pereira GoncalvesImprove the user interaction.We have simplified the user interaction, but also allow the user to continue with the classification even if the `init.samples` and number of `models` was not sufficient. With this version the user has the change to either manually incre...We have simplified the user interaction, but also allow the user to continue with the classification even if the `init.samples` and number of `models` was not sufficient. With this version the user has the change to either manually increase it, automatically increase it, or abort the classification.
The legend of the output leaflet now shows percentage range and in the title has the number of models (`nb_models` value) which succeeded the sampling phase.
For many functions we have set the package.
We have also set a clause that checks if the results directory is empty. This avoid the error when plotting results because the threshold is defined based on the number of `.tif` images in the results directory.User InterfaceRomulo Pereira GoncalvesRomulo Pereira Goncalveshttps://git.gfz-potsdam.de/habitat-sampler/HabitatSampler/-/merge_requests/4Add the number of nb_models value to the legend. Fix the order of the prints...2021-05-04T09:50:09+02:00Romulo Pereira GoncalvesAdd the number of nb_models value to the legend. Fix the order of the prints...Add the number of nb_models value to the legend. Fix the order of the prints (we need to flush otherwise the outputs will get out of order). Simplify the output.Add the number of nb_models value to the legend. Fix the order of the prints (we need to flush otherwise the outputs will get out of order). Simplify the output.User InterfaceRomulo Pereira GoncalvesRomulo Pereira Goncalveshttps://git.gfz-potsdam.de/habitat-sampler/HabitatSampler/-/merge_requests/3Tests2021-02-19T15:12:20+01:00Romulo Pereira GoncalvesTestsAdd a docker runner for tests.
The same docker runner will then be used to create a web-page.Add a docker runner for tests.
The same docker runner will then be used to create a web-page.https://git.gfz-potsdam.de/habitat-sampler/HabitatSampler/-/merge_requests/2Docker2021-02-04T09:53:50+01:00Romulo Pereira GoncalvesDockerWith this merge requests we are now able to create a docker image for HabitatSampler.
In the `docker` directory there is a script to build the image and another one to start a docker container. The script to start a docker container all...With this merge requests we are now able to create a docker image for HabitatSampler.
In the `docker` directory there is a script to build the image and another one to start a docker container. The script to start a docker container allows the user to launch either a bash console to start an R instance or a jupyter-lab to run notebooks.
To be able to run HabitatSampler with less resources as possible we now delete the main objects after their last utilization and call R garbage collector `gc(full = TRUE)`. Furthermore, extra arguments were added to the function `multi_Class_Sampling`:
* save_runs : an Habitat object and extra info (to restart a run) is saved (default TRUE)
* max_num_cores : maximum number of cores for parallelism (default 5)
Since we can't launch a web-browser from a docker container, the user can now decide if the images should be either plot via a browser or plotted inline in a notebook. In both cases the interactive plot is saved as a html file in disk.
* plot_on_browser : plot on the browser or inline in a notebook (default TRUE)
All documentation was improved according to the above changes.Unit and Integration testsRomulo Pereira GoncalvesRomulo Pereira Goncalves