# NOT RUN {
# Tile objects:
x <- tile_read(base::system.file("extdata/tile.bsp", package = "uFTIR"))
plot(x)
# with arguments for raster::plot
plot(x, axes = FALSE, box = FALSE, legend = FALSE)
# SpectralPack objects:
x <- tile_base_corr(x)
x <- wavealign(x, primpke)
plot(x)
# SAM objects:
x <- tile_sam(x)
plot(x)
# Smooth objects
x <- smooth_sam(x, as.integer(length(primpke@clusternames)), window = 3, 1)
plot(x)
# clipper objects:
clip <- toClip(8,20,c(10,10))
polygon(clip@xycoords)
x <- clipper(x, clip@centre, clip@rad, 1)
plot(x)
# }
Run the code above in your browser using DataLab