azvoleff / teamlucc

Analysis of land use and cover change using satellite imagery
38 stars 20 forks source link

Problem while opening envi file in ENVI 4.8, created from TEAMLUCC package out of Landsat CDR image. #17

Closed luxhari714 closed 10 years ago

luxhari714 commented 10 years ago

When i try to open ENVI file created from hdf file format, i get following warning. I am using ENVI 4.8 to open these files.

ENVI description = { C:/R practice/landsat surface reflectance_05062014/extract_folder/167-062_2011-043_LE7/lndsr.LE71670622011043ASN00_band5.envi} samples = 7991 lines = 6931 bands = 1 header offset = 0 file type = ENVI Standard data type = 2 interleave = bsq byte order = 0 map info = {UTM, 1, 1, 305085, -215385, 30, 30, 37, North,WGS-84} coordinate system string = {PROJCS["UTM_Zone_37_Northern_Hemisphere",GEOGCS["GCS_Unknown datum based upon the WGS 84 ellipsoid",DATUM["D_Not specified (based on WGS 84 spheroid)",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",39],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]} band names = { band 5 reflectance}

header file

envi warning

envi header error

Regards Hari Adhikari

azvoleff commented 10 years ago

Thanks for the info - this appears to be related to a bug upstream in GDAL (see http://trac.osgeo.org/gdal/ticket/4698). In the meantime, I have been looking at changing the default output format from the HDF file conversion to be GeoTIFFs anyways, which should avoid this issue.

azvoleff commented 10 years ago

You can work around this issue in the latest release of teamlucc, by setting of='GTiff' and ext='tif' when using auto_preprocess_landsat. See bccb75e.