diff --git a/stim/envi/binary.h b/stim/envi/binary.h index e2eb6b4..1c0dc6c 100644 --- a/stim/envi/binary.h +++ b/stim/envi/binary.h @@ -542,7 +542,7 @@ public: size_t size_bytes = sx * sy * sz * sizeof(T); //size of the block to read in bytes size_t start = z * R[0] * R[1] + y * R[0] + x; //calculate the start postion - size_t start_bytes = start * sizeof(T); //start position in bytes + //size_t start_bytes = start * sizeof(T); //start position in bytes file.seekg(start * sizeof(T), std::ios::beg); //seek to the start position diff --git a/stim/envi/envi.h b/stim/envi/envi.h index 28e58bd..dc04811 100644 --- a/stim/envi/envi.h +++ b/stim/envi/envi.h @@ -110,6 +110,7 @@ public: std::cout << "ERROR: unidentified file type" << std::endl; exit(1); } + return false; } //test to determine if the specified file is an ENVI file @@ -1993,7 +1994,7 @@ public: void fft(std::string outfile, double band_min, double band_max, size_t samples = 0, void* ratio = NULL, size_t rx = 0, size_t ry = 0, bool PROGRESS = false, int cuda_device = 0){ if(samples == 0) samples = header.bands; - double B = (double)header.bands; + //double B = (double)header.bands; double delta = header.wavelength[1] - header.wavelength[0]; //calculate spacing in the current domain double span = samples * delta; //calculate the span in the current domain double fft_delta = 1.0 / span; //calculate the span in the FFT domain -- libgit2 0.21.4