IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#743 closed defect (fixed)

vector lengths unassigned in psFitsReadImageCube

Reported by: eugene Owned by: David.Robbins@…
Priority: high Milestone:
Component: fits Version: 0.11.0
Severity: normal Keywords:
Cc:

Description

I've made the fix in CVS HEAD

* src/fits/psFitsImage.c 17 Apr 2006 22:00:03 -0000 1.3
--- src/fits/psFitsImage.c 21 Apr 2006 20:39:08 -0000
*
* 543,548
--- 543,549 ----

if (nAxis == 2) {

psArray *images = psArrayAlloc(1); Single image plane

+ images->n = 1;

images->data[0] = psFitsReadImage(fits, region, 0);
return images;

}

*
* 556,561
--- 557,563 ----

}

psArray *images = psArrayAlloc(nAxes[2]); Array of image planes

+ images->n = nAxes[2];

for (int i = 0; i < nAxes[2]; i++) {

images->data[i] = psFitsReadImage(fits, region, i);

}

Change History (1)

comment:1 by Paul Price, 20 years ago

Resolution: fixed
Status: newclosed

Fixed by Gene.

Note: See TracTickets for help on using tickets.