Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate row.names are not allowed. #81

Open
aterhorst opened this issue May 7, 2022 · 4 comments
Open

Duplicate row.names are not allowed. #81

aterhorst opened this issue May 7, 2022 · 4 comments

Comments

@aterhorst
Copy link

I have an Apple Silicon MacBook.

p166r077 <- stackMeta("LC08_L2SP_166072_20210819_20210827_02_T1/LC08_L2SP_166072_20210819_20210827_02_T1_MTL.txt", ,quantity = "all", category = "image", allResolutions = FALSE)

returns the following error(s):

Error in `.rowNamesDF<-`(x, value = value) : 
  duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique value when setting 'row.names': ‘QA_NA’ 
@aterhorst aterhorst reopened this May 7, 2022
@aterhorst
Copy link
Author

@aterhorst
Copy link
Author

aterhorst commented May 7, 2022

I ran into the same issue on my windows machine. I tried a different Landsat 8 scene. No joy. I downloaded the data from EarthExplorer.

@Rapsodia86
Copy link

Because it is Level2 product that readMeta() [which is inside stackMeta()] does not read properly when raw=FALSE as default.
See #84

@AbigailUribe
Copy link

AbigailUribe commented Sep 22, 2022

I am working with level1 products, but I have the same issue for some images.... please help! I really need to process dozens of images!
I think it is because the processing level (this one is a Real Time product) but I hope it could work no matter what type of ancillary data it has.
LC08_L1TP_019046_20220917_20220917_02_RT_MTL.txt

setwd(dir_image)
meta_arch<-readMeta("LC08_L1TP_019046_20220917_20220917_02_RT_MTL.txt")

Error in .rowNamesDF<-(x, value = value) :
duplicate 'row.names' are not allowed
In addition: Warning message:
non-unique values when setting 'row.names': ‘AUX_NA’, ‘QA_NA’_

If I set raw to TRUE, it fails in the stackMeta:
setwd(dir_image)
meta_arch<-readMeta("LC08_L1TP_019046_20220917_20220917_02_RT_MTL.txt", raw =T)
lsMeta <- stackMeta(meta_arch)

Error in file.exists(file) : invalid 'file' argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants