src/k_binspec.c
float rb_pixel(float lambda) 
{
	float sl,spectrum;
	unsigned long i,ip1;

	k_locate(rb_lambda, rb_nl, lambda, &i);
	if(i>=rb_nl-1 || i<0) return(0.);
	ip1=i+1;
	sl=(lambda-rb_lambda[i])/(rb_lambda[ip1]-rb_lambda[i]);

	spectrum=rb_spectrum[i]+sl*(rb_spectrum[ip1]-rb_spectrum[i]);
	
	return(spectrum);
}
/* element of projection --> multplication of (redshifted by cr_z) spectrum
 * and the filter */
element of projection --> multplication of (redshifted by cr_z) spectrum
and the filter
element of projection -- > multplication of ( redshifted by cr_z ) spectrum and the filter
float rb_pixel(float lambda) 
{
	float sl,spectrum;
	unsigned long i,ip1;
	k_locate(rb_lambda, rb_nl, lambda, &i);
	if(i>=rb_nl-1 || i<0) return(0.);
	ip1=i+1;
	sl=(lambda-rb_lambda[i])/(rb_lambda[ip1]-rb_lambda[i]);
	spectrum=rb_spectrum[i]+sl*(rb_spectrum[ip1]-rb_spectrum[i]);
	return(spectrum);
}
float rb_pixel ( float lambda ) { float sl , spectrum ; unsigned long i , ip1 ; k_locate ( rb_lambda , rb_nl , lambda , & i ) ; if ( i >= rb_nl - 1 || i < 0 ) return ( 0. ) ; ip1 = i + 1 ; sl = ( lambda - rb_lambda [ i ] ) / ( rb_lambda [ ip1 ] - rb_lambda [ i ] ) ; spectrum = rb_spectrum [ i ] + sl * ( rb_spectrum [ ip1 ] - rb_spectrum [ i ] ) ; return ( spectrum ) ; }
element of projection --> multplication of (redshifted by cr_z) spectrum
 and the filter
element of projection -- > multplication of ( redshifted by cr_z ) spectrum and the filter