 	{
 		// next we need to get x and y of the 'idx' in the source grid coordinates
 		// to do that we first determine the i and j of the target grid coordinates
-		
+
 		const int i = fmod(static_cast<double> (idx), static_cast<double> (targetInfo.size_x));
 		const int j = floor(static_cast<double> (idx / targetInfo.size_x));
 

	CUDA_CHECK(cudaStreamDestroy(stream));
	
	return true;
}

	assert(rx >= 0 && rx < sourceInfo.size_x);
	assert(ry >= 0 && ry < sourceInfo.size_y);
	if (d_source[Index(rx,ry,sourceInfo.size_x)] == kFloatMissing) printf("missing value returned\n");
	return d_source[Index(rx,ry,sourceInfo.size_x)];

}
