3 void readParams(
char *fileName,
float *
params,
float *errors,
int nCent,
int nParams ) {
4 FILE *fIn = fopen(fileName,
"r");
6 printf(
"Could not open file %s\n",fileName);
12 for (
int ic=0;ic<nCent;ic++) {
15 fscanf(fIn,
"%i",&icent);
16 fscanf(fIn,
"%f",&chisq);
17 for (
int ip=0;ip<nParams;ip++) {
18 fscanf(fIn,
"%f(%f)",&p,&pe);
19 params[ic*nParams+ip] = p;
20 errors[ic*nParams+ip] = pe/1000;