IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:46:01 AM (14 years ago)
Author:
eugene
Message:

updates for pedantic gcc, mods to relphot average mags to handle GPC1 stacks

Location:
trunk/Ohana/src/libfits
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/Makefile

    r31663 r34088  
    1616
    1717# programs may add their own internal requirements here
    18 FULL_CFLAGS   = $(BASE_CFLAGS) -fPIC -Wall -Werror
     18FULL_CFLAGS   = $(BASE_CFLAGS) -fPIC
    1919FULL_CPPFLAGS = $(BASE_CPPFLAGS) -I$(EXT)
    2020FULL_LDFLAGS  = $(BASE_LDFLAGS) -lohana
  • trunk/Ohana/src/libfits/extern/fits_hdecompress.c

    r15487 r34088  
    10481048{
    10491049LONGLONG sumall;
    1050 int nel, stat;
     1050int stat;
    10511051unsigned char nbitplanes[3];
    10521052char tmagic[2];
     
    10711071        *scale=readint(infile);                         /* scale factor for digitization        */
    10721072       
    1073         nel = (*nx) * (*ny);
     1073        // nel = (*nx) * (*ny);
    10741074
    10751075        /* sum of all pixels    */
     
    10951095*/
    10961096{
    1097 int nel, stat;
     1097int stat;
    10981098LONGLONG sumall;
    10991099unsigned char nbitplanes[3];
     
    11191119        *scale=readint(infile);                         /* scale factor for digitization        */
    11201120       
    1121         nel = (*nx) * (*ny);
     1121        // nel = (*nx) * (*ny);
    11221122
    11231123        /* sum of all pixels    */
  • trunk/Ohana/src/libfits/extern/ricecomp.c

    r18269 r34088  
    5959{
    6060Buffer bufmem, *buffer = &bufmem;
    61 int bsize, i, j, thisblock;
     61int i, j, thisblock;
    6262int lastpix, nextpix, pdiff;
    6363int v, fs, fsmask, top, fsmax, fsbits, bbits;
     
    7373     * compression of short & byte images.
    7474     */
    75     bsize = 4;
     75// int bsize = 4;
    7676
    7777/*    nblock = 32; now an input parameter*/
     
    277277{
    278278Buffer bufmem, *buffer = &bufmem;
    279 int bsize, i, j, thisblock;
     279int i, j, thisblock;
    280280
    281281/*
     
    299299     * compression of short & byte images.
    300300     */
    301     bsize = 2;
     301// bsize = 2;
    302302
    303303/*    nblock = 32; now an input parameter */
     
    501501{
    502502Buffer bufmem, *buffer = &bufmem;
    503 int bsize, i, j, thisblock;
     503int i, j, thisblock;
    504504
    505505/*
     
    523523     * compression of short & byte images.
    524524     */
    525     bsize = 1;
     525    // bsize = 1;
    526526
    527527/*    nblock = 32; now an input parameter */
     
    826826             int nblock)                /* coding block size            */
    827827{
    828 int bsize, i, k, imax;
     828int i, k, imax;
    829829int nbits, nzero, fs;
    830830unsigned char *cend, bytevalue;
     
    839839     * compression of short & byte images.
    840840     */
    841     bsize = 4;
     841// bsize = 4;
    842842
    843843/*    nblock = 32; now an input parameter */
     
    10141014{
    10151015int i, imax;
    1016 int bsize, k;
     1016int k;
    10171017int nbits, nzero, fs;
    10181018unsigned char *cend, bytevalue;
     
    10281028     */
    10291029
    1030     bsize = 2;
     1030// bsize = 2;
    10311031   
    10321032/*    nblock = 32; now an input parameter */
     
    12001200{
    12011201int i, imax;
    1202 int bsize, k;
     1202int k;
    12031203int nbits, nzero, fs;
    12041204unsigned char *cend;
     
    12141214     */
    12151215
    1216     bsize = 1;
     1216// bsize = 1;
    12171217   
    12181218/*    nblock = 32; now an input parameter */
  • trunk/Ohana/src/libfits/matrix/F_compress_M.c

    r33648 r34088  
    4545  float zscale, zzero;
    4646
    47   int zdata_pixsize, odata_pixsize, idata_pixsize;
     47  int zdata_pixsize, odata_pixsize;
    4848
    4949  int *ztile = NULL;
     
    236236  zdata_pixsize = gfits_vartable_heap_pixsize (zdef.format);
    237237
    238   // size of a pixel in the final image
    239   idata_pixsize = abs(header[0].bitpix) / 8;
     238  // size of a pixel in the final image (not needed)
     239  // idata_pixsize = abs(header[0].bitpix) / 8;
    240240
    241241  // size of a pixel in the output from the decompression routine
     
    480480int gfits_compressed_is_primary (Header *header) {
    481481
    482     int has_ztension, has_zimage;
    483     int ztension, zimage;
    484 
    485     has_zimage   = gfits_scan_alt (header, "ZIMAGE",   "%t", 1, &zimage);
    486     has_ztension = gfits_scan_alt (header, "ZTENSION", "%t", 1, &ztension);
     482  int zimage = FALSE;
     483  // int ztension = FALSE;
     484
     485    int has_zimage   = gfits_scan_alt (header, "ZIMAGE",   "%t", 1, &zimage);
     486    // int has_ztension = gfits_scan_alt (header, "ZTENSION", "%t", 1, &ztension);
    487487
    488488    if (has_zimage && zimage) return (TRUE);
  • trunk/Ohana/src/libfits/table/F_copy_T.c

    r31663 r34088  
    1717int gfits_copy_vtable (VTable *in, VTable *out) {
    1818
    19   off_t i, Nx, Ny, Nrows;
     19  off_t i;
    2020
    2121  /* find buffer size */
    22   Nx = in[0].header[0].Naxis[0];
    23   Ny = in[0].header[0].Naxis[1];
     22  off_t Nx = in[0].header[0].Naxis[0];
     23  // off_t Ny = in[0].header[0].Naxis[1];
    2424
    2525  // validate these two?
     
    3232  out[0].Nrow     = in[0].Nrow;
    3333
    34   Nrows = out[0].Nrow;
     34  off_t Nrows = out[0].Nrow;
    3535
    3636  ALLOCATE (out[0].row, off_t, MAX (Nrows, 1));
Note: See TracChangeset for help on using the changeset viewer.