Skip to content

Commit a69240f

Browse files
committed
some more debugging output when reading ARD
1 parent 94ae808 commit a69240f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/higher-level/read-ard-hl.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,10 @@ double tol = 5e-3;
11291129

11301130
GDALGetGeoTransform(dataset, geotran_disc);
11311131
res_disc = geotran_disc[1];
1132+
1133+
#ifdef FORCE_DEBUG
1134+
print_dvector(geotran_disc, "Geotransformation", 6, 10, 2);
1135+
#endif
11321136

11331137
if (fmod(width, res_disc) > tol){
11341138
printf("requested image width %f must be a multiple of image resolution %f (%f > %f). ", width, res_disc, fmod(width, res_disc), tol);
@@ -1212,7 +1216,7 @@ double tol = 5e-3;
12121216
if (GDALRasterIO(band, GF_Read,
12131217
xoff_disc, yoff_disc, nx_disc, ny_disc,
12141218
read_buf, nx_read, ny_read, GDT_Int16, 0, 0) == CE_Failure){
1215-
printf("could not read image. "); return NULL;}
1219+
printf("could not read image.\n"); return NULL;}
12161220

12171221
if (psf && nc_disc > nc){
12181222
for (p=0; p<nc; p++) psf_buf[p] = nodata;

0 commit comments

Comments
 (0)