| 6 | | # read a segment of data from the table |
| 7 | | # byteswap (if needed) based on the size of the data element (in this case 4 bytes) |
| 8 | | # pass the swapped data vector to the uncompression function (in this case zlib's uncompress function) |
| 9 | | # insert the resulting data values into the image in the appropriate location. |
| | 6 | 1. read a segment of data from the table |
| | 7 | 1. byteswap (if needed) based on the size of the data element (in this case 4 bytes) |
| | 8 | 1. pass the swapped data vector to the uncompression function (in this case zlib's uncompress function) |
| | 9 | 1. insert the resulting data values into the image in the appropriate location. |
| 12 | | # read the data segment from the table |
| 13 | | # strip off the gzip header segment (gfits_gz_striphead) |
| 14 | | # pass the remaining bytes directly to a modified version of the uncompress function (gfits_uncompress) -- this version is copied from uncompress, but passes the value -15 to inflateInit to tell it that the data has had the header stripped already. |
| 15 | | # byteswap the resulting vector based on the bytes/pixel of the output data. |
| | 12 | 1. read the data segment from the table |
| | 13 | 1. strip off the gzip header segment (gfits_gz_striphead) |
| | 14 | 1. pass the remaining bytes directly to a modified version of the uncompress function (gfits_uncompress) -- this version is copied from uncompress, but passes the value -15 to inflateInit to tell it that the data has had the header stripped already. |
| | 15 | 1. byteswap the resulting vector based on the bytes/pixel of the output data. |