carlos-alberto-silva / rGEDI

rGEDI: An R Package for NASA's Global Ecosystem Dynamics Investigation (GEDI) Data Visualization and Processing.
157 stars 67 forks source link

class gedi.level1bSim, the (x,y) in plot is different with data in waveform_simulation las file #29

Closed Markfoy closed 2 years ago

Markfoy commented 3 years ago

Hello! after plotting the simulation waveform of las file, with the code

plot(wf_shot2, relative=TRUE, polygon=TRUE, type="l", lwd=2, col="forestgreen",
       xlab="Amplitude (%)", ylab="Elevation (m)")

gediWf_las_1_111111

while in the h5 file of waveform simulation, the data is in

 [1] "BEAMDENSE"     "FSIGMA"        "GRWAVECOUNT"   "GRWAVEFRAC"    "GRWAVEINT"     "IDLENGTH"      "INCIDENTANGLE"
 [8] "LAT0"          "LON0"          "NBINS"         "NPBINS"        "NTYPEWAVES"    "NWAVES"        "POINTDENSE"   
[15] "PSIGMA"        "RXWAVECOUNT"   "RXWAVEFRAC"    "RXWAVEINT"     "SLOPE"         "WAVEID"        "Z0"           
[22] "ZG"            "ZGDEM"         "ZN" 
Snipaste_2021-04-02_14-48-52

could u tell me how to get the points in plot or explain the data in H5 file for me to transform the data into (x,y) form. MANY THX!

BEST, Markfoy

caiohamamura commented 3 years ago

Each RXWAVE___ are different algorithms for calculating the waveform, read the documentation. By default the plot will use RXWAVEINT. Each one is exactly as the original rxwaveform from real GEDI.