[xcrysden] Isosurfaces

Matic matic.poberznik at gmail.com
Tue Aug 18 21:14:42 CEST 2020


Dear Cristoph,
> My program plots several 3D grids into a single XSF file in the
> following form:

as far as I know plotting multiple grids from one xsf file with 
prespecified parameters isn't possible (I might be wrong), however there 
is a simple alternative to get the behavior you need,

I suggest you store each grid in a separate xsf file (keeping PRIMVEC 
and PRIMCOORD the same in every file). You can then load one of the xsf 
files; set up the isovalues/perspective etc. and then use "Save current 
state", this will make a *xcrysden file that stores the parameters.

You can then plot the other grids with the command:

xcrysden --state your-state.xcrysden --xsf your.xsf

you can also just loop over the xsf files as:

for i in *.xsf; do xcrysden --state your-state.xcrysden --xsf $i ; done

I hope this helps,

Best regards,

Matic Poberznik

-- 
Matic Poberznik
J. Stefan Institute, Jamova 39, Ljubljana, Slovenia



More information about the XCrySDen mailing list