Monday, January 18, 2010

Satellital weather videos II

Continuing with the topic from last post, let's see how to convert the .tif files found in http://goes.gsfc.nasa.gov/goeseast-lzw/argentina/vis/  (visible light). Download them:


wget --limit-rate=100k -e robots=off -U "Mozilla/5.0 (compatible; Konqueror/3.2; Linux)" -np -l1 -r -A .tif -N http://goes.gsfc.nasa.gov/goeseast-lzw/argentina/vis/
Convert them to  .jpg:
convert -limit memory 1 -limit map 1 goes.gsfc.nasa.gov/goeseast-lzw/argentina/vis/*.tif goes.gsfc.nasa.gov/goeseast-lzw/argentina/vis/img_%03d.jpg

(Note: change %03d to %04d if you want 4 leading zeroes in your filename, for example if you have more than 1000 pictures to convert, so all files end sorted sequentially) .

And now we convert the pics to video just like before:

mencoder "mf://goes.gsfc.nasa.gov/goeseast-lzw/argentina/vis/*.jpg" -mf fps=8 -o output_vis.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=4000 -vf scale=640:384

Ready. We upload to youtube...



Hope you enjoy this and create your own weather videos!

No comments: