Select to view content in your preferred language

Float to Raster Binary Format

760
1
05-17-2017 12:59 PM
LukeCatania
Occasional Contributor

A co-worker was converting a binary raster using Float to Raster Tool and with header specifying XLLCORNER, YLLCORNER corner of image, he assumed data had to be written out in row major format from SW to NW, but that flipped the raster.  Why specify SW corner of data in header if data is written from NW.  Is this from some past convention that carries through to present day?  Why not specify header with XULCORNER, YULCORNER?  Or with SW Corner as origin then expect the data to be written to file from SW to NW in row major format.

Tags (1)
0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

The math isn't onerous so some of it may be historic... note however, they are slightly accommodating as indicated in the help... for other options.  It may be a coordinate thing (ie Y progresses upward) versus a row/col thing (as in arrays)

You can also use XLLCENTER and YLLCENTER to specify the origin by the coordinates of the center of the lower left cell.

0 Kudos