0

I am having an ASCII file (lat,long,depth) in the Mars projection. I need this file to be converted into WGS-84 projection. How can I do the conversion for the ASCII files.

1
  • 1
    Does it make sense to convert Mars coordinates into Earth WGS84 coordinates? – AndreJ Mar 9 '15 at 7:56
1

You can use gdalwarp to convert the raster.

gdalwarp -a_srs "+proj=eqc +lat_ts=0 +lat_0=0 +lon_0=180 +x_0=0 +y_0=0 +a=3396190 +b=3396190 +units=m +no_defs" -t_srs EPSG:4326 mars.asc mars_wgs84.tif

I am not sure which Mars projection your data is in, but choose the appropriate parameters in the for -a_srs. See Mars Map Projections

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.