pNbody/examples/movies/movie083821758ec275master
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 3 ###########
- create images on the fly
- 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 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 4 ###########
export PYTHONPATH=./:$PYTHONPATH ./cimgage ./gfits2png.py --dir png --palette ramp fits/* gmov2mov --dir png --only_film -o film.avi
- A FAIRE ###########
./gfits2png.py --dir png --palette ramp fits/*