Skip to content

Movie automatically changes the dataserver to Oceania (or static)? #8209

Open
@Esteban82

Description

@Esteban82

It seems that in the middle GMT changes the server. I run the script below. The first figure is generated ok. The figure within gmt movie is not because those grids don't exist in the static server

Probably related to #7879 .

#!/usr/bin/env bash
gmt set GMT_DATA_SERVER candidate
gmt begin test png
gmt grdimage @earth_relief_15s -R-114/-103/35/40 -JM10c -Baf
gmt end 
gmt --show-dataserver

cat << 'EOF' > pre.sh
gmt begin
	gmt math -T0/360/1 T -o0 = angles.txt
gmt end
EOF
# 2. Set up the main frame script
cat << 'EOF' > main.sh
gmt begin
	gmt --show-dataserver
	gmt basemap -R-114/-103/35/40 -JM10c -Baf
	gmt grdimage @earth_relief_15s -I+a${MOVIE_COL0}+nt2 -V
gmt end
EOF
# 3. Run the movie
gmt movie main.sh -Chd -Nanim02 -Tangles.txt -Sbpre.sh -Zs -Ml,png # -Fmp4

Output:

http://candidate.generic-mapping-tools.org
http://static.generic-mapping-tools.org
grdimage [INFORMATION]:   -> Download cache file: @earth_relief_15s_g
grdimage [INFORMATION]: Downloading file http://static.generic-mapping-tools.org/cache/earth_relief_15s_g ...
grdimage [ERROR]: Libcurl Error: HTTP response code said error
grdimage [ERROR]: Probably means @earth_relief_15s_g does not exist on the remote server
grdimage [ERROR]: Unable to obtain remote file @earth_relief_15s_g

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions