TF++, Miscellaneous classes and modules in C++:

◆ write_grepg_f()

void tfxx::hacks::write_grepg_f ( const blitz::Array< float, 2 > &  array,
const char *  filename,
const double &  dx = 1.,
const double &  dy = 1. 
)

create grepg file from float array

Parameters
array2D float blitz array
filenamename of file to write to
dxx-sampling to simulate
dyy-sampling to simulate

Definition at line 78 of file hack_blitztogrepg.cc.

References tfxx::blitzutil::setToSameDomain(), and write_grepg_c().

81 {
82  // create intermediate complex data
83  blitz::Array<std::complex<float>, 2> tmp(blitz::fortranArray);
84  tfxx::blitzutil::setToSameDomain(tmp, array.domain());
85  tmp=blitz::cast<std::complex<float> >(array);
86  write_grepg_c(tmp, filename, dx, dy);
87 }
void setToSameDomain(blitz::Array< T, N > &array, const blitz::RectDomain< N > &domain, const blitz::GeneralArrayStorage< N > &storage=blitz::fortranArray)
create a second array spanning the same domain
Definition: blitzutil.h:90
void write_grepg_c(const blitz::Array< std::complex< float >, 2 > &array, const char *filename, const double &dx=1., const double &dy=1.)
create grepg file from complex array
Here is the call graph for this function: