Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#6662 closed defect (fixed)

gdalwarp creates correct ENVI hdr but incomplete raster

Reported by: piyushrpt Owned by: warmerdam
Priority: high Milestone: 2.1.2
Component: GDAL_Raster Version:
Severity: major Keywords: ENVI
Cc:

Description

I'm trying to warp some swath data using geolocation arrays. All input data is stored in flat binary files with appropriate VRTs. The methodology works for most cases but there were a couple of instances where it resulted in incomplete raster files (missing lines at the bottom).

Command used:

Error: Failed to load processor bash
No macro or processor named 'bash' found

The resulting mapRaster.dat.hdr is correct with the expected dimensions, but the generated mapRaster.dat has missing lines. One thing to note is that the missing lines should contain nodata (0) and lie outside the support of the geoloc arrays.

I can overcome the issue in two ways:

  1. Create a Geotiff and then translate it to an ENVI file. This worked fine.
  2. Increase working memory using "-wm 2000" and this worked as well.

Looks like there could be issues with nodata regions and memory settings when using the ENVI driver to warp raster files. I'm also attaching two log files generated with debug turned on - one for default call using gdalwarp and one using more working memory if it helps.

Attachments (2)

warpDefault.log (5.2 KB ) - added by piyushrpt 8 years ago.
Log for gdalwarp with default settings
warpWithWM2000.log (1003 bytes ) - added by piyushrpt 8 years ago.
Log for gdalwarp with extra working memory "-wm 2000"

Download all attachments as: .zip

Change History (6)

by piyushrpt, 8 years ago

Attachment: warpDefault.log added

Log for gdalwarp with default settings

by piyushrpt, 8 years ago

Attachment: warpWithWM2000.log added

Log for gdalwarp with extra working memory "-wm 2000"

comment:1 by piyushrpt, 8 years ago

Summary: gdalwarp creates correct ENVI hdr correct but incomplete rastergdalwarp creates correct ENVI hdr but incomplete raster

comment:2 by Even Rouault, 8 years ago

Resolution: fixed
Status: newclosed

In 35523:

ENVI: on closing, pad image file with trailing nul bytes if needed (fixes #6662)

comment:3 by Even Rouault, 8 years ago

In 35524:

ENVI: on closing, pad image file with trailing nul bytes if needed (fixes #6662)

comment:4 by Even Rouault, 8 years ago

Milestone: 2.1.2
Version: 2.1.1
Note: See TracTickets for help on using tickets.