Loading data-access/engine/src/vlkb/src/imcopydav.cpp +2 −11 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading @@ -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; } Loading Loading @@ -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; Loading Loading @@ -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) }; Loading Loading
data-access/engine/src/vlkb/src/imcopydav.cpp +2 −11 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading @@ -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; } Loading Loading @@ -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; Loading Loading @@ -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) }; Loading