pNbody/examples/movies/movie084fbc3430dc96master
movie08
Readme
TODO :
- add time steps ok
- add time in fits files ok
- check parallelisme
- add all parametres : time steps
- if a list -> ok ok
- if a file, -> read it ok
- if a tuple -> arange ok
fits dir, !!! use film[] instead of self. ... output in png + parameters ... in the parameterfiles
WARNING : there is still a bug if we change
filmparam.py in main.c
homogeneiser les examples :
- faire un film en python, avec boucle sur des snapshots (diff exemples, fits, png, etc...) (composition de fits)
- film en c
- film avec gadget
- example 1 ###########
- create images from snapshots
./example-1.py
./gmkgmov.py -p filmparam10.py --format png --imdir png1.0 snap/* ./gmkgmov.py -p filmparam10.py --format fits --imdir fits1.0 snap/*
../bin/gtrk2nbd glparameters -o glparameters_right.nbd ./gmkgmov.py -p filmparam11.py --format png --imdir png1.1 snap/*
gmov2mov --dir png1.1 --only_film -o film1.1.avi
different components, in stereo
#glups ../data/treo*.gad -> save glparameters-1 ../bin/gtrk2nbd glparameters-1 --eye='left' -o glparameters-1_left.nbd ../bin/gtrk2nbd glparameters-1 --eye='right' -o glparameters-1_right.nbd ./gmkgmov.py -p filmparam12.py --imdir fits1.2 ../data/treo*.gad ./gfits2png.py --dir png1.2_left --params=fitsparam.py --comp1="fits1.2/*0000-gas-*.fits.gz" --comp2="fits1.2/*0000-stars-*.fits.gz" --comp3="fits1.2/*0000-halo-*.fits.gz" --comp4="fits1.2/*0000-gas-*.fits.gz" --comp5="fits1.2/*0000-gas-*.fits.gz" --comp6="fits1.2/*0000-gas-*.fits.gz" ./gfits2png.py --dir png1.2_right --params=fitsparam.py --comp1="fits1.2/*0001-gas-*.fits.gz" --comp2="fits1.2/*0001-stars-*.fits.gz" --comp3="fits1.2/*0001-halo-*.fits.gz" --comp4="fits1.2/*0001-gas-*.fits.gz" --comp5="fits1.2/*0001-gas-*.fits.gz" --comp6="fits1.2/*0001-gas-*.fits.gz" mprocimgs -p stereoparam.py -d png1.2_right,png1.2_left -o png_g gmov2mov --fps 4 --dir png_g --only_film -o film1.2.avi
- example 3 ###########
- create images on the fly from python code #
- create png on the fly from python
- output at every time steps
./example-3.py -p filmparam30.py gmov2mov --dir png3.0 --only_film -o film3.0.avi
- create png on the fly from python
- output at some times
./example-3.py -p filmparam31.py gmov2mov --dir png3.1 --only_film -o film3.1.avi
- create png on the fly from python
- output at some times given from a file
./example-3.py -p filmparam32.py gmov2mov --dir png3.2 --only_film -o film3.2.avi
outputs in fits
./example-3.py -p filmparam32.py --format fits --imdir fits3.2
- example 4 ########### #
- create images on the fly, from a C code #
../bin/gtrk2nbd glparameters-4 -o glparameters-4.nbd
export PYTHONPATH=./:$PYTHONPATH make ./cimgage ./gfits2png.py --dir png4.0 --palette ramp fits4.0/* gmov2mov --dir png4.0 --only_film -o film4.0.avi
- example 5 ########### #
- create images on the fly, from gadget #
cd Gadget mpirun -np 2 src/Gadget2 params
../gfits2png.py --dir png-T --palette rainbow4 --scale='lin' --mn 2 --mx 6 fits/*_0000-gas-*.fits.gz gmov2mov --dir png-T --only_film -o film-T.avi
../gfits2png.py --dir png-Fe --palette rainbow4 --scale='lin' --mn -4 --mx 0 fits/*_0001-gas-*.fits.gz gmov2mov --dir png-Fe --only_film -o film-Fe.avi
- TODO ###########
./gfits2png.py --dir png --palette ramp fits/*