inbo / n2khab

R package with preprocessing functions and standard reference data for Flemish Natura 2000 (N2K) habitat (HAB) analyses
https://inbo.github.io/n2khab
GNU General Public License v3.0
2 stars 1 forks source link

add function read_raster_runif #136

Closed ToonHub closed 3 years ago

ToonHub commented 3 years ago

I added the function read_raster_runif.

florisvdh commented 3 years ago

Any comments on my proposed pkg startup message? @ToonHub @cecileherr or others?

> library(n2khab)
Attaching n2khab version 0.4.0.9000.

When working with raster objects returned by n2khab, you can safely
mute proj4string degradation warnings:

options(rgdal_show_exportToProj4_warnings = "none")

You must do this before using the n2khab functions depending on 
rgdal or raster, and before loading the latter (or sp).

Do note that those warnings are applicable: the generated proj4string
of 'EPSG:31370' objects is effectively degraded and should not be used.
See https://inbo.github.io/n2khab/#suppressing-rgdal-warnings-about-proj4string-degradation
for more information.
ToonHub commented 3 years ago

Good idea to mention this.

the generated proj4string of 'EPSG:31370' objects is effectively degraded and should not be used.

Is the sentence above correct? I do not really understand what you mean.

florisvdh commented 3 years ago

Is the sentence above correct?

Your question is reason enough to improve it :wink:.

Suggestion:

Do note that those warnings are applicable: the proj4string in the returned raster objects is effectively degraded and should not be used.

Is this more clear? 'is degraded' refers to 'the proj4string'

florisvdh commented 3 years ago

Or:

Do note that those warnings are applicable: in the returned raster objects, the proj4string is effectively degraded and should not be used.

ToonHub commented 3 years ago

OK. It is more clear now.

florisvdh commented 3 years ago

I'll add an updated message here, thanks.

@ToonHub I also suggest not to include the version and directory specific reference to the n2khab-preprocessing repo. It is done at Zenodo, but there it is for specific data source versions. Here I'd strive to minimal future maintenance of documentation (version independence, directory independence). I'll update according to the approach in other functions.