Skip to content

Commit

Permalink
updated to v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-alberto-silva authored and caiohamamura committed Mar 23, 2020
1 parent d13e848 commit c217543
Show file tree
Hide file tree
Showing 21 changed files with 83 additions and 148 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rGEDI
Type: Package
Title:NASA's Global Ecosystem Dynamics Investigation (GEDI) Data Visualization and Processing
Version: 0.0.7
Version: 0.1.0
Authors@R: c(
person("Carlos Alberto", "Silva", email = "carlos_engflorestal@outlook.com", role = c("aut", "cre", "cph")),
person("Caio", "Hamamura", email = "caiohamamura@gmail.com", role = c("aut", "cph")),
Expand Down
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by roxygen2: do not edit by hand
# Generated by roxygen2: do not edit by hand

export(clipLevel1B)
export(clipLevel1BGeo)
Expand Down
6 changes: 3 additions & 3 deletions R/gedifinder.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#'@description This function finds the path to GEDI data within a boundary box coordinates provided
#'
#'@param product GEDI data level; Options: "GEDI01_B", "GEDI02_A" or "GEDI02_B"
#'@param version Character. The version of the GEDI product files to be returned.
#'@param ul_lat Numeric. Upper left (ul) corner coordinates, in lat (decimal degrees) for the bounding box of the area of interest.
#'@param ul_lon Numeric. Upper left (ul) corner coordinates, in lon (decimal degrees) for the bounding box of the area of interest.
#'@param lr_lat Numeric. Lower right (ul) corner coordinates, in lat (decimal degrees) for the bounding box of the area of interest.
#'@param lr_lon Numeric. Lower right (ul) corner coordinates, in lon (decimal degrees) for the bounding box of the area of interest.
#'@param version Character. The version of the GEDI product files to be returned. Default "001".
#'
#'@return Return a vector object pointing out the path saving the downloaded GEDI data within
#'the boundary box coordinates provided
Expand All @@ -27,11 +27,11 @@
#'lr_lon<- -96.0
#'
#'# Extracting the path to GEDI data for the specified boundary box coordinates
#'gedi02b_list<-gedifinder(product="GEDI02_B",version="001",ul_lat, ul_lon, lr_lat, lr_lon)
#'gedi02b_list<-gedifinder(product="GEDI02_B",ul_lat, ul_lon, lr_lat, lr_lon,version="001")
#'}
#'@import jsonlite curl
#'@export
gedifinder<-function(product,version="001", ul_lat, ul_lon, lr_lat, lr_lon){
gedifinder<-function(product, ul_lat, ul_lon, lr_lat, lr_lon,version="001"){
response = curl::curl(sprintf(
"https://lpdaacsvc.cr.usgs.gov/services/gedifinder?%s=%s&%s=%s&%s=%f,%f,%f,%f&output=json",
"version",version,
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ ul_lon<- -13.76913
lr_lon<- -13.67646

# Get path to GEDI data
gLevel1B<-gedifinder(product="GEDI01_B",version="001",ul_lat, ul_lon, lr_lat, lr_lon)
gLevel2A<-gedifinder(product="GEDI02_A",version="001",ul_lat, ul_lon, lr_lat, lr_lon)
gLevel2B<-gedifinder(product="GEDI02_B",version="001",ul_lat, ul_lon, lr_lat, lr_lon)
gLevel1B<-gedifinder(product="GEDI01_B",ul_lat, ul_lon, lr_lat, lr_lon,version="001")
gLevel2A<-gedifinder(product="GEDI02_A",ul_lat, ul_lon, lr_lat, lr_lon,version="001")
gLevel2B<-gedifinder(product="GEDI02_B",ul_lat, ul_lon, lr_lat, lr_lon,version="001")
```
## Downloading GEDI data
```r
Expand Down
2 changes: 1 addition & 1 deletion man/clipLevel1B.Rd

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

5 changes: 3 additions & 2 deletions man/clipLevel1BGeometry.Rd

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

2 changes: 1 addition & 1 deletion man/clipLevel2A.Rd

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

2 changes: 1 addition & 1 deletion man/clipLevel2AGeometry.Rd

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

2 changes: 1 addition & 1 deletion man/clipLevel2B.Rd

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

5 changes: 3 additions & 2 deletions man/clipLevel2BGeometry.Rd

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

1 change: 1 addition & 0 deletions man/close.Rd

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

32 changes: 16 additions & 16 deletions man/gedi.fullwaveform-class.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/gediDownload.Rd

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

86 changes: 18 additions & 68 deletions man/gediWFMetrics.Rd

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

46 changes: 12 additions & 34 deletions man/gediWFSimulator.Rd

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

10 changes: 5 additions & 5 deletions man/gedifinder.Rd

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

7 changes: 5 additions & 2 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 c217543

Please sign in to comment.