std::string outputfile) {
std::string const& outputfile) {
void XplorMap::WriteXplorMap(cctbx::uctbx::unit_cell uc,                             af::const_ref<double,af::c_grid<3> > const& data,                             double average,                              double stddev,                             std::string outputfile) {                               //af::const_ref<double,af::c_grid<3> > data_h(data.c_grid());  FILE* fh = fopen(outputfile.c_str(),"ab");  //Unit Cell  fprintf(fh,"%s%s%s%s%s%s\n", pretty(uc.parameters()[0]).get(),                                pretty(uc.parameters()[1]).get(),                                pretty(uc.parameters()[2]).get(),                                pretty(uc.parameters()[3]).get(),                                pretty(uc.parameters()[4]).get(),                                pretty(uc.parameters()[5]).get() );  //Data  fprintf(fh,"ZYX\n");  int xsize = data.accessor()[0];  int ysize = data.accessor()[1];  for (int z = 0; z< data.accessor()[2]; z++){    int eol=0;    int x=0;    int y=0;    fprintf(fh,"%8d\n",z);    for (int xy = 0; xy < xsize*ysize; ++xy){            fprintf(fh,"%s",pretty(data(x,y,z)).get());        ++x;        if (x==xsize) {x = 0;++y;}        ++eol;        if (eol % 6 == 0) {fprintf(fh,"\n");}    }    if (eol % 6 != 0) {fprintf(fh,"\n");}  }  //summary  fprintf(fh,"   -9999\n");  fprintf(fh, "%s%s\n", pretty4(0.0).get(), pretty4(1.0).get());  fclose(fh);}