modularized getPixelDem.py