RemoteS example Aqua orbits fails

From this thread A native Julia package for satellite images? - #20 by joa-quim
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

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?

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.

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

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)

1 Like

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