README.md (1014B)
1 # moonPhase 2 Downloads all 8762 photos of the moon from a NASA website and uses them to create a fluid animation (click): 3 [![video](https://img.youtube.com/vi/Cz1ED7FW4dk/0.jpg)](https://www.youtube.com/watch?v=Cz1ED7FW4dk) 4 5 See [here for an introduction/tutorial](https://nicholasfarrow.com/Creating-a-Moon-Animation-Using-NASA-Images-and-Python/). 6 7 # Usage 8 ``` 9 python moonphase.py 10 ``` 11 12 ``` 13 optional arguments: 14 -h, --help show this help message and exit 15 -t THINNING, --thinning THINNING 16 Frequency of images to download, e.g. every 10th image 17 -f, --ffmpeg Use ffmpeg to create video 18 ``` 19 20 If you are creating a gif via imageio then creating a `.gif` of 8761 images could take a long time and create a >100Mb file. Try using a smaller number of images with the `-t` flag: 21 22 Eg. use every 20th image: 23 ``` 24 python moonphase.py -t 20 25 ``` 26 27 If you are on a unix OS and have ffmpeg installed then you can compile an `.mp4` instead of a `.gif`: 28 ``` 29 python moonphase.py -f 30 ```