coordinate transform functions
changed lonlat2modxy to handle array inputs
completed main program and tested for Africa