1 #include "catch2/catch_all.hpp"
3 #include "purify/config.h"
8 #include "purify/directories.h"
18 const std::vector<double>
u = f.
read(
"u");
19 const std::vector<double>
v = f.
read(
"v");
20 const std::vector<double> w = f.
read(
"w");
21 const std::vector<double> re = f.
read(
"re");
22 const std::vector<double> im = f.
read(
"im");
23 const std::vector<double> sigma = f.
read(
"sigma");
30 CAPTURE(sigma.size());
32 const bool pass =
u.size() > 0 &&
u.size() ==
v.size() &&
u.size() == w.size() &&
33 u.size() == re.size() &&
u.size() == im.size() &&
u.size() == sigma.size();
44 const std::vector<double>
u = f.
read(
"u");
45 const std::vector<double>
v = f.
read(
"v");
47 const std::vector<double> re = f.
read(
"re");
48 const std::vector<double> im = f.
read(
"im");
49 const std::vector<double> sigma = f.
read(
"sigma");
56 CAPTURE(sigma.size());
58 const bool pass =
u.size() == uvfits.u.size() &&
59 u.size() ==
v.size() &&
60 u.size() == re.size() &&
u.size() == im.size() &&
u.size() == sigma.size();
#define CHECK(CONDITION, ERROR)
Purify interface class to handle HDF5 input files.
std::vector< T > read(const std::string &label) const
Method to read the entire dataset.
const std::vector< t_real > u
data for u coordinate
const std::vector< t_real > v
data for v coordinate
void write_visibility(const utilities::vis_params &uv_vis, const std::string &h5name, const bool w_term, const size_t chunksize=0)
Write an HDF5 file with u,v visibilities from a vis_params object.
utilities::vis_params read_measurements(const std::string &name, const bool w_term, const stokes pol, const utilities::vis_units units)
read in single measurement file
std::string atca_filename(std::string const &filename)
Specific atca data.
TEST_CASE("Purify H5 reader", "[HDF5]")