Opened 18 years ago
Last modified 10 years ago
#1239 closed defect
MODIS HDF LAI product: ERROR 1: latitude or longitude exceeded limits in gdalwarp — at Initial Version
Reported by: | Markus Neteler | Owned by: | warmerdam |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | blocker | Keywords: | hdf |
Cc: | josegomez@…, Markus Neteler, Mateusz Łoskot |
Description
Frank, I was trying to warp a MODIS 15A2 HDF file today (Leaf area Index etc), but got this error: gdalwarp -of HFA -s_srs '+proj=latlong +ellps=sphere' -t_srs EPSG:4326 'HDF4_EOS:EOS_GRID:"MOD15A2.A2003153.h18v04.004.2003171141042.hdf":MOD_Grid_MOD15A2:Lai_1km' MOD_Grid_MOD15A2_Lai_1km_LL_WGS84.img ERROR 1: latitude or longitude exceeded limits ERROR 1: GDALSuggestedWarpOutput() failed because the passed transformer failed. If I don't use +ellps=sphere it generates a map, but the coordinates are incorrect: gdalinfo MOD_Grid_MOD15A2_Lai_1km_LL_WGS84.img Driver: HFA/Erdas Imagine Images (.img) Size is 1200, 1200 Coordinate System is: GEOGCS["WGS_1984", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235629972], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] Origin = (0.000000,5559752.598333) Pixel Size = (926.62543306,-926.62543306) Corner Coordinates: Upper Left ( 0.000, 5559752.598) ( 0d 0'0.01"E,5559752d35'21474836534.00"N) Lower Left ( 0.000, 4447802.079) ( 0d 0'0.01"E,4447802d 4'17179869227.20"N) Upper Right ( 1111950.520, 5559752.598) (1111950d31'4294967306.80"E,5559752d35'21474836534.00"N) Lower Right ( 1111950.520, 4447802.079) (1111950d31'4294967306.80"E,4447802d 4'17179869227.20"N) Center ( 555975.260, 5003777.338) (555975d15'35.40"E,5003777d20'17179869202.60"N) The indicated HDF file is 5.2MB - maybe you could take a look? thanks in advance Markus
Note:
See TracTickets
for help on using tickets.