Skip to content

Commit

Permalink
* Read level3 as internal class
Browse files Browse the repository at this point in the history
  • Loading branch information
caiohamamura committed Sep 14, 2023
1 parent ed39c6e commit d082006
Show file tree
Hide file tree
Showing 9 changed files with 204 additions and 161 deletions.
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export(gedi.fullwaveform)
export(gedi.level1b)
export(gedi.level2a)
export(gedi.level2b)
export(gedi.level3)
export(gediDownload)
export(gediWFMetrics)
export(gediWFSimulator)
Expand All @@ -42,10 +43,12 @@ export(polyStatsLevel2BVPM)
export(readLevel1B)
export(readLevel2A)
export(readLevel2B)
export(readLevel3)
exportClasses(gedi.fullwaveform)
exportClasses(gedi.level1b)
exportClasses(gedi.level2a)
exportClasses(gedi.level2b)
exportClasses(gedi.level3)
import(curl)
import(data.table)
import(fs)
Expand Down
16 changes: 16 additions & 0 deletions R/class.gedi.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ gedi.fullwaveform <- setClass(
)


#' Class for GEDI level3
#'
#' @slot raster Object of class [`SpatRaster`][terra::SpatRaster] from `terra` package containing the
#' GEDI level3 products: rasterized metrics
#'
#' @seealso
#' \url{https://daac.ornl.gov/GEDI/guides/GEDI_L3_LandSurface_Metrics_V2.html}
#'
#' @import methods
#' @export
gedi.level3 <- setClass(
Class = "gedi.level3",
slots = list(raster = "SpatRaster")
)


#' Plot GEDI* object
#'
#' @param x An object of class [`gedi.fullwaveform-class`] (output of [getLevel1BWF()] function)
Expand Down
130 changes: 71 additions & 59 deletions man/gediWFSimulator.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/gedifinder.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions man/gridStatsLevel2AM.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions man/gridStatsLevel2BVPM.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 20 additions & 15 deletions man/plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d082006

Please sign in to comment.