Skip to content

Releases: bleutner/RStoolbox

RStoolbox 0.1.5

06 Oct 20:11
Compare
Choose a tag to compare

Changes:

  • If the bandSet argument in radCor() is used to process only a subset of bands it will no longer return unprocessed bands along with processed bands. Instead only processed bands are returned.
  • By default superClass() will now use dataType = 'INT2S' for classification maps to avoid issues with raster NA handling in INT1U
  • Allow reading and importing from Landsat MSS MTL files with readMeta() and stackMeta() (@aszeitz, #7)

Fixes:

  • readMeta() time-stamp conversion now correctly set to GMT time (@mraraju, #12)
  • radCor() caused R to crash if bandSet was a single band
  • fix single RasterLayer capability for superClass()
  • spectralIndices() now calculates all documented indices if specified to do so (@mej1d1, #6)
  • unsuperClass() predicted map now handles NAs properly
  • pifMatch() did not return adjusted image (@tmb3006, #13)

Deprecated:

  • argument norm was dropped from rasterPCA(), because it was effectively a duplicate of the standardized pca (spca) argument in the same function.

RStoolbox 0.1.4

28 Jan 20:13
Compare
Choose a tag to compare

New:

  • new function validateMap() for assessing map accuracy separately from model fitting, e.g. after majority or MMU filtering
  • new function getValidation() to extract specific validation results of superClass objects (proposed by James Duffy)
  • new spectral index NDVIc (proposed by Jeff Evans)
  • new argument scaleFactor for spectralIndices() for calculation of EVI/EVI2 based on scaled reflectance values.
  • implemented dark object subtraction radCor(..,method='sdos') for Landsat 8 data (@BayAludra, #4)

Changes:

  • superClass based on polygons now considers only pixels which have their center coordinate within a polygon
  • rasterCVA now returns angles from 0 to 360° instead of 0:45 by quadrant (reported by Martin Wegmann)
  • improved dark object DN estimation based on maximum slope of the histogram in estimateHaze (@BayAludra, #4)

Fixes:

  • superClass failed when neither valData or trainPartition was specified. regression introduced in 0.1.3 (reported by Anna Stephani)
  • spectralIndices valid value range of EVI/EVI2 now [-1,1]
  • radCor returned smallest integer instead of NA for some NA pixels
  • fix 'sdos' for non-contiguous bands in radCor (@BayAludra, #4)

RStoolbox 0.1.3

28 Nov 09:59
Compare
Choose a tag to compare

New:

  • new logical argument predict for superClass. Disables prediction of full raster (proper validation is still conducted, but the prediction is done only for sample pixels).
  • new generic predict() function for superClass objects. Useful to separate model training and prediction.
  • new example data set (landcover training polygons) for lsat example data under /extdata/trainingPolygons.rds

Fixes:

  • fix histMatch for single layers (affected also 'ihs' pan-sharpening)
  • fix superClass validation sampling for factors (character based factor responses could lead to wrong factor conversions and wrong validation results)
  • improved handling of of training polygons with overlaps and shared borders in superClass
  • improved checks and error messages for insufficient training polygons

RStoolbox 0.1.2

04 Nov 08:01
Compare
Choose a tag to compare

New functions:

New custom model for maximum likelihood classification (model = "mlc") available for superClass()

Fixes:

  • Restrict calculation of EVI/EVI2 to reflectance data (#3)
  • Enforce valid value ranges in radCor: radiance: [0,+Inf], reflectance: [0,1]. Includes a new argument clamp to turn this on or off (on by default).

RStoolbox 0.1.1

08 Sep 08:33
Compare
Choose a tag to compare

CRAN fixes:

  • added kernlab to suggested packages to allow all \donttest{} examples to be tested with
    R CMD check --run-donttest
  • bugfix in internal function classQA (UBSAN: out of range NA for integer vector)

RStoolbox 0.1.0

07 Sep 09:16
Compare
Choose a tag to compare

This is the initial release to CRAN. From now on function and argument names should remain mostly stable.
This release ships with the following functions:

Data Import and Export

  • readMeta: import Landsat metadata from MTL or XML files
  • stackMeta: load Landsat bands based on metadata
  • readSLI & writeSLI: read and write ENVI spectral libraries
  • saveRSTBX & readRSTBX: save and re-import RStoolbox classification objects (model and map)
  • readEE: import and tidy EarthExplorer search results

Data Pre-Processing

  • radCor: radiometric conversions and corrections. Primarily, yet not exclusively, intended for Landsat data processing. DN to radiance to reflectance conversion as well as DOS approaches
  • topCor: topographic illumination correction
  • cloudMask & cloudShadowMask: mask clouds and cloud shadows in Landsat or other imagery which comes with a thermal band
  • classifyQA: extract layers from Landsat 8 QA bands, e.g. cloud confidence
  • rescaleImage: rescale image to match min/max from another image or a specified min/max range
  • normImage: normalize imagery by centering and scaling
  • histMatch: matches the histograms of two scenes
  • coregisterImages: co-register images based on mutual information
  • panSharpen: sharpen a coarse resolution image with a high resolution image (typically panchromatic)

Data Analysis

  • spectralIndices: calculate a set of predefined multispectral indices like NDVI
  • tasseledCap: tasseled cap transformation
  • sam: spectral angle mapper
  • rasterPCA: principal components transform for raster data
  • rasterCVA: change vector analysis
  • unsuperClass: unsupervised classification
  • superClass: supervised classification
  • fCover: fractional cover of coarse resolution imagery based on high resolution classificaton

Data Display with ggplot2

  • fortify.raster: data.frame from raster (subsampled) for plotting
  • ggR: single raster layer plotting with ggplot2
  • ggRGB: efficient plotting of remote sensing imagery in RGB with ggplot2

Example Data Sets

  • rlogo: the r logo as raster brick
  • lsat: subset of a Landsat 5 TM scene
  • srtm: SRTM DEM for lsat scene