Does anyone have any idea about getting the map info from an ENVI header file?
This is my file.hdr as shown in the text editor:
ENVI
description = {
C:\xxxx\yyyy\Desktop\filename.}
samples = 36000
lines = 36000
bands = 1
header offset = 0
file type = ENVI Standard
data type = 4
interleave = bsq
byte order = 0
map info = {Geographic Lat/Lon, 1, 1, 20, 28, 0.000222222222222222, 0.000222222222222222,WGS-84}
coordinate system string = {GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]}
band names = {
Band 1}
I would like to use the "pixel easting" (20), "pixel northing" (28) and "pixel dimension" (0.000222) in a python script. Is there any Python library about that? It seems like a simple matter, but I still can't get through it.