# Trouble with gmtread (gdalinfo failed)

**URL:** <https://discourse.julialang.org/t/trouble-with-gmtread-gdalinfo-failed/106330>\
**Category:** Geo\
**Created:** [November 16, 2023, 7:10pm UTC](https://discourse.julialang.org/t/trouble-with-gmtread-gdalinfo-failed/106330 "2023-11-16T19:10:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chadagreene](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chadagreene/32/34924_2.png) [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Post date:** [November 16, 2023, 7:10pm UTC](https://discourse.julialang.org/t/trouble-with-gmtread-gdalinfo-failed/106330/1 "2023-11-16T19:10:19Z")

</div>

I’m trying to get acquainted with the GMT.jl package, and I’m following the wonderful tutorial here: [Plot Landsat 8 images](https://www.generic-mapping-tools.org/GMTjl_doc/tutorials/Landsat8/histogram_stretch/)

Unfortunately, the very first step fails!

```julia
julia> Ir = gmtread("/vsicurl/http://landsat-pds.s3.amazonaws.com/c1/L8/037/034/LC08_L1TP_037034_20160712_20170221_01_T1/LC08_L1TP_037034_20160712_20170221_01_T1_B4.TIF");
ERROR: gdalinfo failed - unable to open /vsicurl/http://landsat-pds.s3.amazonaws.com/c1/L8/037/034/LC08_L1TP_037034_20160712_20170221_01_T1/LC08_L1TP_037034_20160712_20170221_01_T1_B4.TIF
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] guess_T_from_ext(fname::String)
   @ GMT ~/.julia/packages/GMT/oJOu7/src/gmtreadwrite.jl:324
 [3] gmtread(_fname::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ GMT ~/.julia/packages/GMT/oJOu7/src/gmtreadwrite.jl:131
 [4] gmtread(_fname::String)
   @ GMT ~/.julia/packages/GMT/oJOu7/src/gmtreadwrite.jl:68
 [5] top-level scope
   @ REPL[5]:1

```

Can someone help me interpret this error message?

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [November 16, 2023, 7:46pm UTC](https://discourse.julialang.org/t/trouble-with-gmtread-gdalinfo-failed/106330/2 "2023-11-16T19:46:34Z")

</div>

Sorry for this. Those examples worked when the tutorial was written but now apparently the L8 images are no longer available at that amazon place (that’s what the `ERROR: gdalinfo failed - unable to open` means).

There are more stuff like that at the [RemoteS.jl](https://www.generic-mapping-tools.org/RemoteS.jl/dev/gallery/L8cube_img/remotes_L8_cube_img/) package but the examples use local files in my disk so examples are not reproducible. It’s hard to make reproducible examples when the data files are big like the ones in question.
