RadioImagerGPU 1.0
Loading...
Searching...
No Matches
data_io.hpp
Go to the documentation of this file.
1// include/data_io.hpp
2#ifndef DATA_IO_HPP
3#define DATA_IO_HPP
4
5#include <vector>
6#include <string>
7
8void readXYZCoordinates(const std::string& filename,
9 std::vector<double>& x_m,
10 std::vector<double>& y_m,
11 std::vector<double>& z_m);
12
13
14void readDirections(const std::string& filename,
15 std::vector<double>& HAs,
16 std::vector<double>& Decs);
17
18
19void saveUVWCoordinates(const std::vector<std::vector<double>>& u,
20 const std::vector<std::vector<double>>& v,
21 const std::vector<std::vector<double>>& w,
22 const std::string& directory);
23
24void saveImages(const std::vector<std::vector<double>>& images,
25 int image_size,
26 const std::string& directory);
27
28#endif
void saveImages(const std::vector< std::vector< double > > &images, int image_size, const std::string &directory)
Saves images to CSV files in the specified directory.
Definition data_io.cpp:77
void saveUVWCoordinates(const std::vector< std::vector< double > > &u, const std::vector< std::vector< double > > &v, const std::vector< std::vector< double > > &w, const std::string &directory)
Saves UVW coordinates to CSV files in the specified directory.
Definition data_io.cpp:50
void readXYZCoordinates(const std::string &filename, std::vector< double > &x_m, std::vector< double > &y_m, std::vector< double > &z_m)
Reads XYZ coordinates from a CSV file.
Definition data_io.cpp:17
void readDirections(const std::string &filename, std::vector< double > &HAs, std::vector< double > &Decs)
Reads HAs and Decs from a CSV file.
Definition data_io.cpp:110