Skip to content

readMeta fails to read Landsat 8 MSS metadata (*MTL.txt) files #71

Closed
@jkoellin

Description

Hello bleutner,

thanks for your work with the Toolbox, it helped me in the past.

I have a problem with my new project. I try to read landsat8 data with the readMeta function and I get an error message.

This is my code:

install.packages("RStoolbox")
library(devtools)
install_github("bleutner/RStoolbox")
library(RStoolbox)
metaData_prefire <- readMeta("C:\\Users\\le-ob-dual-1\\Desktop\\Studium\\Ulluoa\\Semesterprojekt\\R_Program\\LC08_L1TP_193024_20180824_20200831_02_T1_richtig\\LC08_L1TP_193024_20180824_20200831_02_T1_MTL.txt")

and this is the error message I get:

Fehler in CRS(paste0(c("+proj=", "+zone=", "+units=m +datum="), pars, collapse = " ")) : 
  No spaces permitted in PROJ4 argument-value pairs: +proj= +zone= +units=m +datum=

my file was downloaded from the earthexplorer and I Included it:
LC08_L1TP_193024_20180824_20200831_02_T1_MTL.txt
Do you have any suggestions, how I could read Landsat8 files like that or maybe have a idea, what causes the error?

Thanks,
Jonas

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions