Sunday, 16 December 2018

gdalwarp - How to change the projection and resolution of a file using gdal?


I have a file with these information:


lat_min -60.0
lat_max 80.0
lon_min -180.0
lon_max 179.9
lon_sampling 0.1 degree
lat_sampling 0.1 degree

samples = 3600
lines = 1401

I want to re-project the file to


I tried


 gdalwarp -of "ENVI" -t_srs `EPSG:3410`  -ts 1383 586 but give error
gdalwarp -of "ENVI" -t_srs "+proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +a=6371228 +b=6371228 +units=m +no_defs" -ts 1383 586 -ot Float32 file.envi file_1383586.envi
ERROR 1: No PROJ.4 translation for source SRS, coordinate transformation initialization has failed


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...