pjbartlein / REarthSysSci

R for Earth-System Science
25 stars 19 forks source link

minor edits to raster_intro.Rmd #1

Open rhijmans opened 4 years ago

rhijmans commented 4 years ago

Thanks for this resource. The reasons for the suggested edits are: There is no "format change" involved. "raster" reads (via ncdf4) and interprets netCDF files (like it would read a tif or any other format, except that these are accessed via gdal) . Of course interpretation could go wrong (more than anything because ncdf is very flexible, and creators of the files users are not forced to follow standards). Also, coordinates in "raster" refer to the center of grid cells --- as the examples below show. The "extent" of a raster, however, refers to the four outer cell corners.