-
Notifications
You must be signed in to change notification settings - Fork 85
Description
Hello,
I have been searching other threads in hopes to find an answer, but I am having a hard time doing so.
I am using Rstoolbox to process imagery from L9, L8, and L5 for a time series analysis.
I am using the most up to date package and Rstudio software.
LC09_L1TP_016032_20240301_20240301_02_T1_MTL.txt
My issues is with the MTL file for Landsat 9 imagery from March 2024. When performing the function to read in the metadata .txt. file, I keep encountering this error.
"> readMeta("E:/Ch1_veg_analysis/Landsat_master/Final_Scenes/LC09_L1TP_016032_20240301_20240301_02_T1_MTL.txt")
Error in rownames<-(*tmp*, value = tbds) :
attempt to set 'rownames' on an object with no dimensions"
I've also tried this iteration with no luck
" # 1a. Landsat 9; 03/01/2024
mtl9 <- paste0("E:/Ch1_veg_analysis/Landsat_master/Final_Scenes/LC09_L1TP_016032_20240301_20240301_02_T1_MTL.txt")
readMeta <- (mtl9) # read metadata file
summary(mtl9)
Length Class Mode
1 character character"
I've tried a few different iterations based on previous discussions here and on the geospatial data science in R website, and I'm at a loss with my troubleshooting. Any insight would be appreciated, apologies if I've missed any details - happy to correct if needed. Thanks