|
Open source Very Long Baseline Interferometry
OpenVLBI
|
Functions | |
| DLL_EXPORT double | vlbi_astro_mean_speed (double speed) |
| Obtain or set the reference constant speed of the radiation to measure. More... | |
| DLL_EXPORT void | vlbi_astro_alt_az_from_ra_dec (double J2000time, double Ra, double Dec, double Lat, double Long, double *Alt, double *Az) |
| Obtain the altitude and azimuth coordinate of a celestial coordinate at a specific time. More... | |
| DLL_EXPORT double | vlbi_astro_get_local_hour_angle (double local_sideral_time, double ra) |
| Returns local hour angle of an object. More... | |
| DLL_EXPORT void | vlbi_astro_get_alt_az_coordinates (double hour_angle, double dec, double latitude, double *alt, double *az) |
| Returns alt-azimuth coordinates of an object. More... | |
| DLL_EXPORT dsp_stream_p | vlbi_astro_load_spectrum (char *filename) |
| Load a spectrum file. More... | |
| DLL_EXPORT int | vlbi_astro_load_spectra_catalog (char *path, dsp_stream_p **catalog, int *catalog_size) |
| Load a spectrum file catalog. More... | |
| DLL_EXPORT dsp_stream_p | vlbi_astro_create_reference_catalog (dsp_stream_p *catalog, int catalog_size) |
| Create a dsp_stream_p containing all the spectral lines of all elements of a catalog. More... | |
| DLL_EXPORT void | vlbi_astro_save_spectrum (dsp_stream_p stream, char *filename) |
| Save a spectrum stream into a file. More... | |
| DLL_EXPORT void | vlbi_astro_scan_spectrum (dsp_stream_p stream, int sample_size) |
| Scan a dsp_stream_p and detect the relevant spectral lines. More... | |
| DLL_EXPORT dsp_align_info | vlbi_astro_align_spectra (dsp_stream_p spectrum, dsp_stream_p catalog, int max_lines, double decimals, double min_score) |
| Align a spectrum to a reference catalog. More... | |
| DLL_EXPORT double | vlbi_astro_diff_spectra (dsp_stream_p spectrum0, dsp_stream_p spectrum, double decades) |
| Compare a spectrum to a reference one. More... | |
| DLL_EXPORT double | vlbi_astro_flux_ratio (double flux0, double flux, double delta_spectrum) |
| Returns the flux ratio of two objects. More... | |
| DLL_EXPORT double | vlbi_astro_estimate_brightness_temperature (double wavelength, double flux) |
| Estimate the brightness temperature from a flux. More... | |
| DLL_EXPORT double | vlbi_astro_estimate_temperature (double wavelength, double flux) |
| Estimate the physical temperature with a given flux. More... | |
| DLL_EXPORT double | vlbi_astro_estimate_flux (double wavelength, double temperature) |
| Estimate the flux from a physical temperature. More... | |
| DLL_EXPORT double | vlbi_astro_estimate_temperature_ratio (double rad_ratio, double flux_ratio) |
| Returns the temperature ratio of two objects. More... | |
| DLL_EXPORT double | vlbi_astro_estimate_size_ratio (double luminosity_ratio, double temperature_ratio) |
| Returns the size ratio of two objects. More... | |
| DLL_EXPORT double | vlbi_astro_estimate_luminosity_ratio (double size_ratio, double flux_ratio) |
| Returns the luminosity ratio between two celestial objects. More... | |
| DLL_EXPORT double | vlbi_astro_estimate_distance_ratio (double luminosity_ratio, double flux_ratio) |
| Returns the distance ratio of two celestial object. More... | |
| DLL_EXPORT double | vlbi_astro_estimate_distance_parallax (double rad, double baseline) |
| Returns the distance of an object from its parallax. More... | |
| DLL_EXPORT double | vlbi_astro_estimate_redshift (double wavelength0, int wavelength) |
| Returns the redshift of an object. More... | |
| DLL_EXPORT double | vlbi_astro_estimate_size_transient (double transient_object_velocity, double transit_time) |
| Returns the size of an object by the observation of a transient body. More... | |
| DLL_EXPORT double | vlbi_astro_redshift_adjust (double distance, double redshift) |
| Returns the distance of a far object adjusted with its measured redshift. More... | |
| DLL_EXPORT dsp_stream_p | vlbi_file_read_fits (char *filename) |
| Returns the distance of a far object adjusted with its measured redshift. More... | |
| DLL_EXPORT dsp_stream_p * | vlbi_file_read_sdfits (char *filename, long *n) |
| Returns the distance of a far object adjusted with its measured redshift. More... | |
| DLL_EXPORT dsp_align_info vlbi_astro_align_spectra | ( | dsp_stream_p | spectrum, |
| dsp_stream_p | catalog, | ||
| int | max_lines, | ||
| double | decimals, | ||
| double | min_score | ||
| ) |
| spectrum | The spectrum to analyze |
| catalog | A catalog of spectra to compare |
| max_lines | The perfomance-needed limit of lines used for comparison |
| decimals | The number of decimals used in comparison |
| min_score | The trigger matching score percent to reach |
| DLL_EXPORT void vlbi_astro_alt_az_from_ra_dec | ( | double | J2000time, |
| double | Ra, | ||
| double | Dec, | ||
| double | Lat, | ||
| double | Long, | ||
| double * | Alt, | ||
| double * | Az | ||
| ) |
| J2000time | Current time offset in seconds from J2000 |
| Ra | Right ascension coordinate of the object |
| Dec | Declination coordinate of object |
| Lat | Latitude of the observatory |
| Long | Longitude of the observatory |
| Alt | Altitude pointer |
| Az | Azimuth pointer |
| DLL_EXPORT dsp_stream_p vlbi_astro_create_reference_catalog | ( | dsp_stream_p * | catalog, |
| int | catalog_size | ||
| ) |
| catalog | A catalog of spectra |
| catalog_size | The size of the catalog |
| DLL_EXPORT double vlbi_astro_diff_spectra | ( | dsp_stream_p | spectrum0, |
| dsp_stream_p | spectrum, | ||
| double | decades | ||
| ) |
| spectrum0 | The reference spectrum |
| spectrum | The spectrum to analyze |
| decades | The number of decades used in comparison |
| DLL_EXPORT double vlbi_astro_estimate_brightness_temperature | ( | double | wavelength, |
| double | flux | ||
| ) |
| wavelength | The radiation wavelength in meters |
| flux | The measured radiation flux |
| DLL_EXPORT double vlbi_astro_estimate_distance_parallax | ( | double | rad, |
| double | baseline | ||
| ) |
| rad | The angular distances from the baselines edges |
| baseline | The baseline |
| DLL_EXPORT double vlbi_astro_estimate_distance_ratio | ( | double | luminosity_ratio, |
| double | flux_ratio | ||
| ) |
| luminosity_ratio | The luminosity ratio |
| flux_ratio | The ratio between their fluxes |
| DLL_EXPORT double vlbi_astro_estimate_flux | ( | double | wavelength, |
| double | temperature | ||
| ) |
| wavelength | The radiation wavelength in meters |
| temperature | The measured temperature in Kelvin |
| DLL_EXPORT double vlbi_astro_estimate_luminosity_ratio | ( | double | size_ratio, |
| double | flux_ratio | ||
| ) |
| size_ratio | The size ratio between the two references |
| flux_ratio | The ratio of their fluxes |
| DLL_EXPORT double vlbi_astro_estimate_redshift | ( | double | wavelength0, |
| int | wavelength | ||
| ) |
| wavelength0 | The laboratory reference wavelength |
| wavelength | The same wavelength observed on the object |
| DLL_EXPORT double vlbi_astro_estimate_size_ratio | ( | double | luminosity_ratio, |
| double | temperature_ratio | ||
| ) |
| luminosity_ratio | The luminosity ratio |
| temperature_ratio | The temperature ratio |
| DLL_EXPORT double vlbi_astro_estimate_size_transient | ( | double | transient_object_velocity, |
| double | transit_time | ||
| ) |
| transient_object_velocity | The velocity of the transient body |
| transit_time | The duration of the transition |
| DLL_EXPORT double vlbi_astro_estimate_temperature | ( | double | wavelength, |
| double | flux | ||
| ) |
| wavelength | The radiation wavelength in meters |
| flux | The measured radiation flux |
| DLL_EXPORT double vlbi_astro_estimate_temperature_ratio | ( | double | rad_ratio, |
| double | flux_ratio | ||
| ) |
| rad_ratio | The angular sizes ratio |
| flux_ratio | The flux ratio |
| DLL_EXPORT double vlbi_astro_flux_ratio | ( | double | flux0, |
| double | flux, | ||
| double | delta_spectrum | ||
| ) |
| flux0 | The angular sizes ratio |
| flux | The flux ratio |
| delta_spectrum | The two objects' spectrum ratio |
| DLL_EXPORT void vlbi_astro_get_alt_az_coordinates | ( | double | hour_angle, |
| double | dec, | ||
| double | latitude, | ||
| double * | alt, | ||
| double * | az | ||
| ) |
| hour_angle | Hour angle in hours (-12 to 12) |
| dec | DEC of object |
| latitude | latitude in INDI format (-90 to +90) |
| alt | ALT of object will be returned here |
| az | AZ of object will be returned here |
| DLL_EXPORT double vlbi_astro_get_local_hour_angle | ( | double | local_sideral_time, |
| double | ra | ||
| ) |
| local_sideral_time | Local Sideral Time |
| ra | RA of object |
| DLL_EXPORT int vlbi_astro_load_spectra_catalog | ( | char * | path, |
| dsp_stream_p ** | catalog, | ||
| int * | catalog_size | ||
| ) |
| path | The path of the folder containing index.txt |
| catalog | A pointer to an array of dsp_stream_p to be allocated and filled |
| catalog_size | The catalog number of elements passed by reference |
| DLL_EXPORT dsp_stream_p vlbi_astro_load_spectrum | ( | char * | filename | ) |
| filename | The spectrum file |
| DLL_EXPORT double vlbi_astro_mean_speed | ( | double | speed | ) |
| speed | The speed constant value (Light meters per second for example) |
| DLL_EXPORT double vlbi_astro_redshift_adjust | ( | double | distance, |
| double | redshift | ||
| ) |
| distance | The calculated distance to be adjusted |
| redshift | The redshift measurement |
| DLL_EXPORT void vlbi_astro_save_spectrum | ( | dsp_stream_p | stream, |
| char * | filename | ||
| ) |
| stream | The stream containing a spectrum |
| filename | The file name where to save the acquired spectrum |
| DLL_EXPORT void vlbi_astro_scan_spectrum | ( | dsp_stream_p | stream, |
| int | sample_size | ||
| ) |
| stream | The stream containing a spectrum |
| sample_size | The sampling size used for detection |
| DLL_EXPORT dsp_stream_p vlbi_file_read_fits | ( | char * | filename | ) |
| filename | The file name of the FITS file to open |
| DLL_EXPORT dsp_stream_p* vlbi_file_read_sdfits | ( | char * | filename, |
| long * | n | ||
| ) |
| filename | The file name of the FITS file to open |
| n | the number of rows extracted and converted into dsp_stream structs |
1.8.17