# RemoteS example Aqua orbits fails

**URL:** <https://discourse.julialang.org/t/remotes-example-aqua-orbits-fails/102844>\
**Category:** Geo\
**Created:** [August 15, 2023, 10:30pm UTC](https://discourse.julialang.org/t/remotes-example-aqua-orbits-fails/102844 "2023-08-15T22:30:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaksaa](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jaksaa](https://discourse.julialang.org/u/jaksaa)\
**Post date:** [August 15, 2023, 10:30pm UTC](https://discourse.julialang.org/t/remotes-example-aqua-orbits-fails/102844/1 "2023-08-15T22:30:35Z")

</div>

From this thread [A native Julia package for satellite images? - #20 by joa-quim](https://discourse.julialang.org/t/a-native-julia-package-for-satellite-images/44689/20)  
If better to be in the above thread please move.

Have version:  
Julia Version 1.9.2  
[5752ebe1] GMT v1.3.1  
[26020ff4] RemoteS v1.0.0  
[6ac157d9] SatelliteToolbox v0.11.1

Following the first example [Aqua orbits · RemoteS.jl](https://www.generic-mapping-tools.org/RemoteS.jl/dev/gallery/Aqua_orbits/remotes_sat_tracks/)

Command:  
orb = sat\_tracks(tle=[tle1; tle2], duration=“1D”);

returns the error:  
ERROR: UndefVarError: `read_tle_from_string` not defined  
Stacktrace:  
[1] loadTLE(d::Dict{Symbol, Any})  
@ RemoteS ~/.julia/packages/RemoteS/psfHq/src/sat\_tracks.jl:124  
[2] sat\_tracks(; geocentric::Bool, tiles::Bool, position::Bool, kwargs::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:tle, :duration), Tuple{Vector{String}, String}}})  
@ RemoteS ~/.julia/packages/RemoteS/psfHq/src/sat\_tracks.jl:81  
[3] top-level scope  
@ REPL[14]:1

Trying:  
help?\> sat\_tracks  
provides the same example

Trying:  
Pkg.test(“RemoteS”)  
returns  
ERROR: LoadError: MethodError: no method matching GMTimage(::String, ::String, ::Int64, ::Int64, ::Vector{Float64}, ::Vector{Float64}, ::Int64, ::UInt16, ::String, ::Vector{String}, ::Vector{String}, ::Vector{Float64}, ::Vector{Float64}, ::Vector{Float64}, ::Array{UInt8, 3}, ::Vector{Int32}, ::Int64, ::Matrix{UInt8}, ::String, ::Int64)

Suggestions?

---

<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:** [August 16, 2023, 9:47am UTC](https://discourse.julialang.org/t/remotes-example-aqua-orbits-fails/102844/2 "2023-08-16T09:47:29Z")

</div>

Sorry, had not run this for a while and didn’t notice that `SatelliteToolbox` split in several sub-packages and some functions seem to have disappeared. Will need to relearn what to load and what to call.

Regarding the tests failure, that was due to a subtle change in GMT that is now fixed in master.

---

<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:** [August 17, 2023, 7:39pm UTC](https://discourse.julialang.org/t/remotes-example-aqua-orbits-fails/102844/3 "2023-08-17T19:39:41Z")

</div>

OK, restored that (and others) functionality. With the same **old** TLE we can now plot the orbit (actually two) of the Aqua satellite.

```julia
using GMT, RemoteS

orb = sat_tracks(tle=["1 27424U 02022A 21245.83760660 .00000135 00000-0 39999-4 0 9997"; "2 27424 98.2123 186.0654 0002229 67.6025 313.3829 14.57107527 28342"], duration=200, geocentric=true);

orbits(orb, lon0=45, land=:tomato, show=1)

```

 ![GMTjl_j](https://global.discourse-cdn.com/julialang/original/3X/a/7/a7cfc8c5d8eaac71ab87d5b10fa26bfa65144c6a.png)

---

<div class="post-metadata">

**Author:** ![jaksaa](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jaksaa](https://discourse.julialang.org/u/jaksaa)\
**Post date:** [August 18, 2023, 12:25pm UTC](https://discourse.julialang.org/t/remotes-example-aqua-orbits-fails/102844/4 "2023-08-18T12:25:05Z")

</div>

Updated the packages, the example now works.  
Thank you for your help.
