measure.c
/* Build the observation descriptor with specification string spec. */
Build the observation descriptor with specification string spec.
Build the observation descriptor with specification string spec .
int buildobs (measdesc *desc, char *spec) {
	real tmin = 0, tmax = 0, pmin = 0, pmax = 0;
	char *obsloc[2];
	int ntheta = 0, nphi = 0;
	splitstr (obsloc, spec, ",", 2);
	ntheta = measrange (obsloc[0], &tmin, &tmax, 180);
	nphi = measrange (obsloc[1], &pmin, &pmax, 360);
	buildlocs (desc, 1, ntheta, tmin, tmax, nphi, pmin, pmax);
	return desc->count;
}
int buildobs ( measdesc * desc , char * spec ) { real tmin = 0 , tmax = 0 , pmin = 0 , pmax = 0 ; char * obsloc [ 2 ] ; int ntheta = 0 , nphi = 0 ; splitstr ( obsloc , spec , " " , 2 ) ; ntheta = measrange ( obsloc [ 0 ] , & tmin , & tmax , 180 ) ; nphi = measrange ( obsloc [ 1 ] , & pmin , & pmax , 360 ) ; buildlocs ( desc , 1 , ntheta , tmin , tmax , nphi , pmin , pmax ) ; return desc -> count ; }
Build the observation descriptor with specification string spec.
Build the observation descriptor with specification string spec .
/* Split the observer locations into a theta and phi range. */ /* Parse the theta and phi ranges. */ /* Build the observer locations. The type is always a plane-wave. */