carlos-alberto-silva / rGEDI

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

getLevel1BWF can't find the specified shot_number #32

Closed adwiputra closed 3 years ago

adwiputra commented 3 years ago

I encountered an unusual error when running getLevel1BWF. I run everything successfully for thousands of shot_numbers in a for loop, but:

I got an error if I run shotR <- 36450300300308556 getLevel1BWF(level1b, shot_number = shotR The error says that the shot_number specified is not found.

However, I did not get it if I run getLevel1BWF(level1b, shot_number = 36450300300308556

My guess is that this is related to the long integer (integer64 class) class associated with the GEDI's shot_number.

If needed, the orbit is O03645 and the shot number is 036450300300308556

caiohamamura commented 3 years ago

That is right, due to the need for integer64 support, you would have to either use the integer64 package create your variable, or easier way is to use a character instead, just use "36450300300308556" instead. R have no native support for 64 bit integer.

Em ter, 25 de mai de 2021 15:46, adwiputra @.***> escreveu:

I encountered an unusual error when running getLevel1BWF. I run everything successfully for thousands of shot_numbers in a for loop, but:

I got an error if I run shotR <- 36450300300308556 getLevel1BWF(level1b, shot_number = shotR The error says that the shot_number specified is not found.

However, I did not get it if I run getLevel1BWF(level1b, shot_number = 36450300300308556

My guess is that this is related to the long integer (integer64 class) class associated with the GEDI's shot_number.

If needed, the orbit is O03645 and the shot number is 036450300300308556

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/carlos-alberto-silva/rGEDI/issues/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2H474SOLVHSNRHNTAJ4M3TPPWBLANCNFSM45P7FR3A .