JoshuaBillson / RemoteSensingToolbox.jl

A pure Julia package built on top of Rasters.jl for visualizing, analyzing, and processing remotely sensed imagery.
MIT License
14 stars 0 forks source link

Examples cannot find data #35

Open ghost opened 1 year ago

ghost commented 1 year ago

Pipe v1.3.0 Rasters v0.8.4 RemoteSensingToolbox v0.2.0

Quick Start:

using RemoteSensingToolbox, Rasters
using Pipe: @pipe

landsat = read_bands(Landsat8, "LC08_L2SP_043024_20200802_20200914_02_T1/")

ERROR: IOError: readdir("LC08_L2SP_043024_20200802_20200914_02_T1/"): no such file or directory (ENOENT)
Stacktrace:
 [1] uv_error
   @ ./libuv.jl:100 [inlined]
 [2] readdir(dir::String; join::Bool, sort::Bool)
   @ Base.Filesystem ./file.jl:863
 [3] readdir
   @ ./file.jl:856 [inlined]
 [4] read_bands(#unused#::Type{Landsat8}, dir::String)
   @ RemoteSensingToolbox.Bandsets ~/.julia/packages/RemoteSensingToolbox/4IcHr/src/Bandsets/Bandsets.jl:56
 [5] top-level scope
   @ REPL[3]:1

PCA:

sentinel = read_bands(Sentinel2, "data/T11UPT_20200804T183919/R60m/")
ERROR: IOError: readdir("data/T11UPT_20200804T183919/R60m/"): no such file or directory (ENOENT)
Stacktrace:
 [1] uv_error
   @ ./libuv.jl:100 [inlined]
 [2] readdir(dir::String; join::Bool, sort::Bool)
   @ Base.Filesystem ./file.jl:863
 [3] readdir
   @ ./file.jl:856 [inlined]
 [4] read_bands(#unused#::Type{Sentinel2}, dir::String)
   @ RemoteSensingToolbox.Bandsets ~/.julia/packages/RemoteSensingToolbox/4IcHr/src/Bandsets/Bandsets.jl:56
 [5] top-level scope
   @ REPL[7]:1
JoshuaBillson commented 1 year ago

Is the imagery you're attempting to load saved at the destination you're providing to read_bands? This package does not automatically download satellite imagery; they need to be stored locally.