Skip to content

The Julia example doesn't work #7

@seisman

Description

@seisman

The following example in the Julia demo notebook doesn't work:

basemap(region=:g, proj=(name=:Otho, center=(220,30)), figsize=8, frame=:g)
grdimage!("@earth_relief_20m", cmap=:geo, shade=true)
coast!(res=:crude, shore=true, area=1000)
plot!("@hotspots.txt", marker=:circle, size="0.2c", markerfacecolor=:red, show=true)

The error messages are:

┌ Warning: Very likely the projection name (Otho) is unknown to me. Expect troubles
└ @ GMT /srv/julia/pkg/packages/GMT/fZQQL/src/common_options.jl:436
psbasemap [WARNING]:  not a valid number and may not be decoded properly.
psbasemap [ERROR]: Your scale or width () resulted in a zero value.
psbasemap [ERROR]: Option -J parsing failure. Correct syntax:
	-Jo[a]<lon0>/<lat0>/<azimuth>/<scale> OR -JO[a]<lon0>/<lat0>/<azimuth>/<width>
	-Jo[b]<lon0>/<lat0>/<b_lon>/<b_lat>/<scale> OR -JO[b]<lon0>/<lat0>/<b_lon>/<b_lat>/<width>
	-Joc<lon0>/<lat0>/<lonp>/<latp>/<scale> OR -JOc<lon0>/<lat0>/<lonp>/<latp>/<width>
	  <scale> is <1:xxxx> or cm/oblique degree, or use <width> in cm
psbasemap [ERROR]: Offending option -JOt220/30/8
Something went wrong when calling the module. GMT error number = 71

Stacktrace:
 [1] error(::String, ::Int32) at ./error.jl:42
 [2] gmt(::String, ::Nothing) at /srv/julia/pkg/packages/GMT/fZQQL/src/gmt_main.jl:246
 [3] finish_PS_module(::Dict{Symbol,Any}, ::String, ::String, ::Bool, ::Bool, ::Bool, ::Nothing) at /srv/julia/pkg/packages/GMT/fZQQL/src/common_options.jl:2701
 [4] #basemap#213(::Bool, ::Base.Iterators.Pairs{Symbol,Any,NTuple{4,Symbol},NamedTuple{(:region, :proj, :figsize, :frame),Tuple{Symbol,NamedTuple{(:name, :center),Tuple{Symbol,Tuple{Int64,Int64}}},Int64,Symbol}}}, ::typeof(basemap), ::String, ::Nothing) at /srv/julia/pkg/packages/GMT/fZQQL/src/psbasemap.jl:64
 [5] (::GMT.var"#kw##basemap")(::NamedTuple{(:region, :proj, :figsize, :frame),Tuple{Symbol,NamedTuple{(:name, :center),Tuple{Symbol,Tuple{Int64,Int64}}},Int64,Symbol}}, ::typeof(basemap)) at ./none:0
 [6] top-level scope at In[7]:1

@joa-quim Anything wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions