Commit 001c7942 authored by Johan Richard's avatar Johan Richard
Browse files

renamed index into s_index

parent 647e94c2
......@@ -292,16 +292,16 @@ void o_print_res(double chi0, double evidence)
fprintf(best, "\ts_sigy %.6lf\n", source[i].E.b);
fprintf(best, "\ts_eps %.6lf\n", source[i].eps);
fprintf(best, "\ts_angle %.6lf\n", source[i].E.theta * RTD);
fprintf(best, "\tmag %.6lf\n", source[i].mag);
fprintf(best, "\tindex %.6lf\n", source[i].var1);
fprintf(best, "\ts_mag %.6lf\n", source[i].mag);
fprintf(best, "\ts_index %.6lf\n", source[i].var1);
if(source[i].type==6) // double Sersic
{
fprintf(best, "\ts_sigx2 %.6lf\n", source[i].E2.a);
fprintf(best, "\ts_sigy2 %.6lf\n", source[i].E2.b);
fprintf(best, "\ts_eps2 %.6lf\n", source[i].eps2);
fprintf(best, "\ts_angle2 %.6lf\n", source[i].E2.theta * RTD);
fprintf(best, "\tmag2 %.6lf\n", source[i].mag2);
fprintf(best, "\tindex2 %.6lf\n", source[i].var2);
fprintf(best, "\ts_mag2 %.6lf\n", source[i].mag2);
fprintf(best, "\ts_index2 %.6lf\n", source[i].var2);
}
fprintf(best, "\tend\n");
}
......@@ -589,7 +589,7 @@ void o_print_res(double chi0, double evidence)
fprintf(besto, "\ts_eps %.6lf\n", source[i].eps);
fprintf(besto, "\ts_angle %.6lf\n", source[i].E.theta * RTD);
fprintf(besto, "\ts_mag %.6lf\n", source[i].mag);
fprintf(besto, "\tindex %.6lf\n", source[i].var1);
fprintf(besto, "\ts_index %.6lf\n", source[i].var1);
if(source[i].type==6) //double Sersic
{
fprintf(besto, "\ts_sigx2 %.6lf\n", source[i].E2.a);
......@@ -597,7 +597,7 @@ void o_print_res(double chi0, double evidence)
fprintf(besto, "\ts_eps2 %.6lf\n", source[i].eps2);
fprintf(besto, "\ts_angle2 %.6lf\n", source[i].E2.theta * RTD);
fprintf(besto, "\ts_mag2 %.6lf\n", source[i].mag2);
fprintf(besto, "\tindex2 %.6lf\n", source[i].var2);
fprintf(besto, "\ts_index2 %.6lf\n", source[i].var2);
fprintf(besto, "\tend\n");
}
......@@ -616,7 +616,7 @@ void o_print_res(double chi0, double evidence)
if( sblock[i][SFLUX] )
fprintf(besto, "\ts_mag %d %.6lf %.6lf\n", sblock[i][SFLUX], smin[i].mag, smax[i].mag);
if( sblock[i][SINDEX] )
fprintf(besto, "\tindex %d %.6lf %.6lf\n", sblock[i][SINDEX], smin[i].var1, smax[i].var1);
fprintf(besto, "\ts_index %d %.6lf %.6lf\n", sblock[i][SINDEX], smin[i].var1, smax[i].var1);
if(source[i].type==6) //double Sersic
{
if( sblock[i][SA2] )
......@@ -628,7 +628,7 @@ void o_print_res(double chi0, double evidence)
if( sblock[i][SFLUX2] )
fprintf(besto, "\ts_mag2 %d %.6lf %.6lf\n", sblock[i][SFLUX2], smin[i].mag2, smax[i].mag2);
if( sblock[i][SINDEX2] )
fprintf(besto, "\tindex2 %d %.6lf %.6lf\n", sblock[i][SINDEX2], smin[i].var2, smax[i].var2);
fprintf(besto, "\ts_index2 %d %.6lf %.6lf\n", sblock[i][SINDEX2], smin[i].var2, smax[i].var2);
}
fprintf(besto, "\tend\n");
}
......
......@@ -87,7 +87,8 @@ void r_shapelimit(FILE *IN, FILE *OUT, long int i)
fprintf(OUT, "\t%s\t%d %lf %lf\n", second, sblock[i][SFLUX],
smin[i].mag, smax[i].mag);
}
else if (!strcmp(second,"index"))
else if (!strcmp(second,"s_index") ||
!strcmp(second,"index"))
{
sscanf(third, "%d %lf %lf", &sblock[i][SINDEX],
&smin[i].var1, &smax[i].var1);
......@@ -124,7 +125,8 @@ void r_shapelimit(FILE *IN, FILE *OUT, long int i)
fprintf(OUT, "\t%s\t%d %lf %lf\n", second, sblock[i][SFLUX2],
smin[i].mag2, smax[i].mag2);
}
else if (!strcmp(second,"index2"))
else if (!strcmp(second,"s_index2") ||
!strcmp(second,"index2"))
{
sscanf(third, "%d %lf %lf", &sblock[i][SINDEX2],
&smin[i].var2, &smax[i].var2);
......
......@@ -87,7 +87,8 @@ void r_shapemodel(FILE *IN,FILE *OUT, long int i)
sscanf(third,"%lf",&sshape->mag);
fprintf(OUT,"\t%s\t%lf\n",second,sshape->mag);
}
else if (!strcmp(second,"index"))
else if (!strcmp(second,"s_index") ||
!strcmp(second,"index"))
{
sscanf(third,"%lf",&sshape->var1);
fprintf(OUT,"\t%s\t%lf\n",second,sshape->var1);
......@@ -130,7 +131,8 @@ void r_shapemodel(FILE *IN,FILE *OUT, long int i)
sscanf(third,"%lf",&sshape->mag2);
fprintf(OUT,"\t%s\t%lf\n",second,sshape->mag2);
}
else if (!strcmp(second,"index2") )
else if (!strcmp(second,"s_index2") ||
!strcmp(second,"index2"))
{
sscanf(third,"%lf",&sshape->var2);
fprintf(OUT,"\t%s\t%lf\n",second,sshape->var2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment