Commit 146db22c authored by Robert Butora's avatar Robert Butora
Browse files

dav: removes debug output

parent 22924b39
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -39,8 +39,6 @@ class dav
      long n_blocks_with_padding = (n_cardslots==0) ? n_blocks : (n_blocks+1);

      this->du_firstbyte_cix = (2880)*n_blocks_with_padding;

      cout << "du_firstbyte_cix: " << this->du_firstbyte_cix << endl;
   }


@@ -81,10 +79,6 @@ class dav
         int naxis = maxdim;
         // prepare volume[] for coord -> offset calcs
         for(int i=1; i<naxis; i++) this->volume[i] = this->volume[i-1] * naxes[i-1];
         cout << "volume:  [ ";
         for(int i=0; i<naxis; i++) cout << this->volume[i] << " ";
         cout << "]" << endl;

         return *status;
      }

@@ -159,12 +153,9 @@ class dav
         {
            pixels_off += (fpixel[i]-1) * volume[i];
         }
         //cout << "pixels_off: " << pixels_off << endl;

         dav_off_t doff = du_firstbyte_cix + (abs(bitpix)/8) * pixels_off;

         //cout << "file offset: " << doff << endl;

         this->file.readPartial(NULL, array, arraylen, doff, &err);

         return *status;
@@ -625,8 +616,8 @@ void imcopydav(std::string url, int extnum, std::string pixfilter)
   dav fdav(url);     /* I - input image */
   fitsfile *newfptr; /* I - pointer to output image */

   fits_create_file(&newfptr, "cut.fits", &status);
   //fits_create_file(&newfptr, "stream://", &status);
   //fits_create_file(&newfptr, "cut.fits", &status);
   fits_create_file(&newfptr, "stream://", &status);
   if (status)
   {
      string errmsg{ fitsfiles::cfitsio_errmsg(__FILE__, __LINE__, status) };