Skip to content
Snippets Groups Projects
Commit 146db22c authored by Robert Butora's avatar Robert Butora
Browse files

dav: removes debug output

parent 22924b39
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,6 @@ class dav ...@@ -39,8 +39,6 @@ class dav
long n_blocks_with_padding = (n_cardslots==0) ? n_blocks : (n_blocks+1); long n_blocks_with_padding = (n_cardslots==0) ? n_blocks : (n_blocks+1);
this->du_firstbyte_cix = (2880)*n_blocks_with_padding; this->du_firstbyte_cix = (2880)*n_blocks_with_padding;
cout << "du_firstbyte_cix: " << this->du_firstbyte_cix << endl;
} }
...@@ -81,10 +79,6 @@ class dav ...@@ -81,10 +79,6 @@ class dav
int naxis = maxdim; int naxis = maxdim;
// prepare volume[] for coord -> offset calcs // prepare volume[] for coord -> offset calcs
for(int i=1; i<naxis; i++) this->volume[i] = this->volume[i-1] * naxes[i-1]; 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; return *status;
} }
...@@ -159,12 +153,9 @@ class dav ...@@ -159,12 +153,9 @@ class dav
{ {
pixels_off += (fpixel[i]-1) * volume[i]; 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; 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); this->file.readPartial(NULL, array, arraylen, doff, &err);
return *status; return *status;
...@@ -625,8 +616,8 @@ void imcopydav(std::string url, int extnum, std::string pixfilter) ...@@ -625,8 +616,8 @@ void imcopydav(std::string url, int extnum, std::string pixfilter)
dav fdav(url); /* I - input image */ dav fdav(url); /* I - input image */
fitsfile *newfptr; /* I - pointer to output image */ fitsfile *newfptr; /* I - pointer to output image */
fits_create_file(&newfptr, "cut.fits", &status); //fits_create_file(&newfptr, "cut.fits", &status);
//fits_create_file(&newfptr, "stream://", &status); fits_create_file(&newfptr, "stream://", &status);
if (status) if (status)
{ {
string errmsg{ fitsfiles::cfitsio_errmsg(__FILE__, __LINE__, status) }; string errmsg{ fitsfiles::cfitsio_errmsg(__FILE__, __LINE__, status) };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment