0

I have several raster grids, all 4320 columns, 2160 rows in WGS 84 projection. They are loaded from ESRI ascii files. When I use the Processing Toolbox to carry out arithmetical transformations on the grids (e.g. multiply one by another, divide one by another) the resulting grid is correct, but offset from the original projection by some number of pixels. The layer purports to be in WGS 84, but clearly isn't.

Currently I am working round the problem by using the raster package in R, but it seems to me that the QGIS functions are broken (unless I am missing something obvious).

1 Answer 1

2

My experience is that it is best to work with Geotiff, when doing raster calculation or transformation. You could test to see if there is an offset in the result using GeoTiff instead. The Geotiff is a lot smaller in size and faster to run algoritm on. Convert your ASCII grid to Geotiff from menu: Raster > Conversion > Translate

Add Targit SRS

Add High Compression = LZW

Delete nlevel

Add Tiled true

Press the pensil and insert -ot float32 to the gdal command:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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