|
RadioImagerGPU 1.0
|
#include "data_io.hpp"#include <fstream>#include <sstream>#include <iostream>#include <filesystem>Functions | |
| 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. | |
| 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. | |
| 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. | |
| void | readDirections (const std::string &filename, std::vector< double > &HAs, std::vector< double > &Decs) |
| Reads HAs and Decs from a CSV file. | |
| void readDirections | ( | const std::string & | filename, |
| std::vector< double > & | HAs, | ||
| std::vector< double > & | Decs ) |
Reads HAs and Decs from a CSV file.
| filename | The path to the CSV file. |
| HAs | Vector to store the Hour Angles. |
| Decs | Vector to store the Declinations. |
| 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.
| filename | The name of the CSV file to read from. |
| x_m | Vector to store the X coordinates. |
| y_m | Vector to store the Y coordinates. |
| z_m | Vector to store the Z coordinates. |
| 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.
| images | Vector of images. |
| image_size | Size of the images. |
| directory | The directory to save the image files. |
| 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.
| u | Vector of U coordinates for multiple directions. |
| v | Vector of V coordinates for multiple directions. |
| w | Vector of W coordinates for multiple directions. |
| directory | The directory to save the UVW coordinate files. |