RadioImagerGPU 1.0
|
Functions | |
load_config (config_file) | |
read_xyz_coordinates (filename) | |
compute_uvw (x_m, y_m, z_m, HAs, Decs, optimized=True) | |
save_uvw (u, v, w, directory) | |
uniform_image (visibilities, u, v, image_size, predefined_max_uv, use_predefined_params=False, optimized=True) | |
save_images (images, image_size, directory, save_as_csv=False) | |
str2bool (v) | |
main () | |
imaging_cpu.compute_uvw | ( | x_m, | |
y_m, | |||
z_m, | |||
HAs, | |||
Decs, | |||
optimized = True ) |
Compute UVW coordinates from XYZ coordinates for multiple directions. Parameters: x_m, y_m, z_m (array-like): XYZ coordinates of the antennas. HAs, Decs (array-like): Hour angles and declinations for multiple directions. optimized (bool): Use optimized implementation if True, else use non-optimized implementation. Returns: tuple: Lists of U, V, and W coordinates for each direction.
imaging_cpu.load_config | ( | config_file | ) |
Load configuration from a JSON file. Parameters: config_file (str): The path to the JSON configuration file. Returns: dict: Configuration dictionary.
imaging_cpu.main | ( | ) |
imaging_cpu.read_xyz_coordinates | ( | filename | ) |
Read XYZ coordinates from a CSV file. Parameters: filename (str): The path to the CSV file. Returns: tuple: Arrays of X, Y, and Z coordinates.
imaging_cpu.save_images | ( | images, | |
image_size, | |||
directory, | |||
save_as_csv = False ) |
Save images to the specified directory as PNG files and optionally as CSV files. Parameters: images (list): List of images to save. image_size (int): The size of the images. directory (str): The directory to save the images. save_as_csv (bool): Save images as CSV files if True.
imaging_cpu.save_uvw | ( | u, | |
v, | |||
w, | |||
directory ) |
Save UVW coordinates to CSV files in the specified directory. Parameters: u, v, w (list): Lists of U, V, and W coordinates for each direction. directory (str): The directory to save the UVW coordinate files.
imaging_cpu.str2bool | ( | v | ) |
imaging_cpu.uniform_image | ( | visibilities, | |
u, | |||
v, | |||
image_size, | |||
predefined_max_uv, | |||
use_predefined_params = False, | |||
optimized = True ) |
Generate a uniform image from visibilities using FFT. Parameters: visibilities (array-like): The visibilities for multiple directions. u, v (array-like): U and V coordinates. image_size (int): The size of the output image. predefined_max_uv (float): Predefined maximum UV value. use_predefined_params (bool): Whether to use predefined UVW parameters. optimized (bool): Use optimized implementation if True, else use non-optimized implementation. Returns: ndarray: The generated dirty image.