@@ -176,7 +176,7 @@ int phypp_main(int argc, char* argv[]) {
176176
177177 if (count (sky_param == " WAVELENGTH" ) == 0 ) {
178178 sky_param.push_back (" WAVELENGTH" );
179- sky_value.push_back (strn (cat.lambda [b]));
179+ sky_value.push_back (to_string (cat.lambda [b]));
180180
181181 }
182182
@@ -312,7 +312,7 @@ int phypp_main(int argc, char* argv[]) {
312312 tpar.push_back (" IMAGE_NAME" );
313313 tval.push_back (img_dir+img_name+" -sci.fits" );
314314 tpar.push_back (" IMAGE_SIZE" );
315- tval.push_back (strn (sx)+" ," +strn (sy));
315+ tval.push_back (to_string (sx)+" ," +to_string (sy));
316316 tpar.push_back (" IMAGE_HEADER" );
317317 tval.push_back (hdr_file);
318318
@@ -404,8 +404,8 @@ int phypp_main(int argc, char* argv[]) {
404404 tx[idi[idis]] = ttx[idis]; ty[idi[idis]] = tty[idis];
405405
406406 // Write the catalog for this section
407- std::string six = align_right (strn (ix+1 ), strn (nsx).size (), ' 0' );
408- std::string siy = align_right (strn (iy+1 ), strn (nsy).size (), ' 0' );
407+ std::string six = align_right (to_string (ix+1 ), to_string (nsx).size (), ' 0' );
408+ std::string siy = align_right (to_string (iy+1 ), to_string (nsy).size (), ' 0' );
409409
410410 auto spl = file::split_extension (out_file);
411411 write_catalog (spl.first +" -" +six+" -" +siy+spl.second , idi, nx, ny);
0 commit comments