gmt
gmt copied to clipboard
-p+w[lon0/lat0] overwhelms ghostscript
Hi there,
I'm trying to create a 3D animation with a rotation around a fixed point (using -p[az/el]+w[lon0/lat0]
).
When I just use -p[az/el]
: no problem
When I add +w
I have to kill the job :
psconvert [ERROR]: System call [gs -q -dNOPAUSE -dBATCH -dNOSAFER -dPDFSETTINGS=/prepress -dDownsampleColorImages=false -dDownsampleGrayImages=false -dDownsampleMonoImages=false -dUseFlateCompression=true -dEmbedAllFonts=true -dSubsetFonts=true -dMonoImageFilter=/FlateEncode -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dMaxBitmap=2147483647 -dUseFastColor=true -dGraphicsAlphaBits=2 -dTextAlphaBits=4 -sDEVICE=png16m -g69999x68733 -r300 -sOutputFile='test.png' '/.gmt/sessions/gmt_session.1631/gmt_0_intermediate.pdf'] returned error 2.
end [ERROR]: Failed to call psconvert
end [ERROR]: gmtinit_process_figures returned error 79
Aren't the -g69999x68733
and the dMaxBitmap=2147483647
a little too big?
Can you give a command line example that shows this?
Wow, why do I only see your notification now?
Anyway, I have this in file :
# 3D view
azimuth=135
elevation=20
PERSPECTIVE="${azimuth}/${elevation}"
gmt plot3d ${DOMAIN_gp}/${max_depth}/0 -JM${width_3d} -JZ12c \
${DATA_file} -i1-3 -Se${azimuth}/0.3/$(gmt math -Q 0.3 ${elevation} SIND MUL =) -Gred \
-BwsneZ3+b+zlightbrown -Bz10000+l"depth (m)" \
-Xa${posx_3d} -Ya${posy_3d} \
-p${PERSPECTIVE}
This one works, but there's no third argument in $PERSPECTIVE
Hi @gd-a. It has been too long since I looked at this. I do remember looking at the PostScript and having some ideas on what to do. But I need either
- a file and a command that illustrates the problem [This is ideal]
- A postSCript file that chokes psconvert.
Hi @PaulWessel , I’m on leave without my laptop… and I haven’t uploaded it on github of course. But I believe the code I posted a few comments ago is enough to reproduce the bug (it just needs the ˋ-p+w…` modification).
cat << 'EOF' > main.sh SOUFRIERE="-61.663406/16.043829"
gmt begin gmt grdview -R-62/-61/15.75/16.75/-300/2000 @earth_relief_01s -JM10c -JZ1c -Bafg -I+d -Qc -C -p${MOVIE_FRAME}/45+w${SOUFRIERE} -t50 echo "-61.663406 16.043829" | gmt plot -Sc0.3 -Gred -p gmt end EOF
gmt movie main.sh -Ntest -C720p -T0/180/10 -D5 -Fgif
Works fine now