commit
c5e086f16c
|
@ -98,7 +98,7 @@ GDALAccessor::getStream (char * dataLine, int & numEl)
|
||||||
int ypos0 = LastPosition / LineWidth;
|
int ypos0 = LastPosition / LineWidth;
|
||||||
int xpos0 = LastPosition % LineWidth;
|
int xpos0 = LastPosition % LineWidth;
|
||||||
LastPosition += numEl;
|
LastPosition += numEl;
|
||||||
int ypos1 = (LastPosition - 1) / LineWidth;
|
int ypos1 = (LastPosition - std::streampos(1)) / LineWidth;
|
||||||
if (LastPosition * SizeV >= FileSize)
|
if (LastPosition * SizeV >= FileSize)
|
||||||
{
|
{
|
||||||
numEl -= LastPosition % LineWidth;
|
numEl -= LastPosition % LineWidth;
|
||||||
|
|
|
@ -145,7 +145,7 @@ PyObject * cpxlooks_C(PyObject* self, PyObject* args)
|
||||||
}
|
}
|
||||||
for(int j = 0; j < na; ++j)
|
for(int j = 0; j < na; ++j)
|
||||||
{
|
{
|
||||||
b[j] = b[j] + a[j]*pow(pha,j+1)*pow(phd,lineToGet);
|
b[j] = b[j] + a[j]*pow(pha,j+1.0f)*pow(phd,lineToGet*1.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(eofReached)
|
if(eofReached)
|
||||||
|
|
Loading…
Reference in New Issue