Comments (7)
there are some paths mixed up I think.
If you run the proper example it should work (I hope). Only your specification of the system.file was incorrect:
mtfile <- system.file("external/landsat/LT52240631988227CUB02_MTL.txt", package = "RStoolbox")
readMeta(mtfile)
stackMeta(mtfile)
Now for your own data.
Does the folder Z:/Band contain both the MTL file and the corresponding tifs?
from rstoolbox.
from rstoolbox.
Sir,
of course it contain all the bands.
see the picture.
from rstoolbox.
So the meta data file is read correctly.
Specify the path as character, then it should work: stackMeta("MTL.txt")
from rstoolbox.
Sir,
thanks a lot, working now i made a "lsat" file finally.
Regards
from rstoolbox.
Dear Prof. Bleutner,
I have the same issue as Romaysa. I followed your recommendations but it do not solved my problem. I am running windows 10 in a x64 system. I have tried to solve the problem myself in different ways with no results. The metada file is read correctly but the "stackMeta" function is not working properly. I also tried to run the code in another laptop with a ubuntu linux distribution but the same error persists: "Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer", :Cannot create a RasterLayer object from this file. (file does not exist).
here is the code i am running:
library('rgdal')
library("landsat")
library("RStoolbox")
library ("raster")
setwd("D:/Landsat1988")
dem <- raster('nasadem_filter_reprojected.tif')
mtlFile <- "D:/Landsat1988/1_raw/LT05_L1TP_004069_19880622_20170208_01_T1_MTL.txt"
metaData <- readMeta(mtlFile)
metaStack <- stackMeta(mtlFile)
I would be very greateful if you could help me to overcome this problem. Thank you in advance.
Many greetings,
Sandro
from rstoolbox.
from rstoolbox.
Related Issues (20)
- R fatal error when using unsuperClass from RStoolbox HOT 4
- `superClass` unable to predict when there is NA in raster data HOT 3
- Fails to run `superClass` when one of the raster layer is factor HOT 3
- Fails to run superClass when providing the `model` parameter
- Fails to run ggRGB with stacked rasters HOT 4
- Implementation of Sentenel-2 Tasseled Cap
- Mesma n_models question
- Allow fitting models on raster stacks of differing extents HOT 3
- Training data error superClass HOT 1
- MTL file error HOT 2
- Please attend to retirement of rgdal, rgeos and maptools HOT 1
- No plot with ggRGB(rlogo, ggLayer = TRUE)
- Problems with readMeta
- Stale CRS in stored objects
- Please remove dependencies on **rgdal**, **rgeos**, and/or **maptools** HOT 3
- topCor
- Error: rasterCVA
- ggR with classified raster HOT 1
- CRAN Archival 2023-02-12 HOT 8
- error in evaluating the argument 'y' in selecting a method for function 'intersect': non-character object(s)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rstoolbox.