Title: | Reduction of Speckle Data from BTA 6-m Telescope |
---|---|
Description: | A set of functions for obtaining positional parameters and magnitude difference between components of binary and multiple stellar systems from series of speckle images. |
Authors: | Denis Rastegaev |
Maintainer: | Denis Rastegaev <[email protected]> |
License: | GPL-2 |
Version: | 0.0.1.7 |
Built: | 2024-11-25 06:58:38 UTC |
Source: | CRAN |
Average image of the series of 512 x 512 px images
middle_frame(filename, subtrahend, threshold = 50000L)
middle_frame(filename, subtrahend, threshold = 50000L)
filename |
A string. |
subtrahend |
512 x 512 matrix to subtract. |
threshold |
An integer (default 50000). |
The 512 x 512 matrix of middle speckle image.
obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") zero_matrix <- matrix(0, 512, 512) mf <- middle_frame(obj_filename, subtrahend = zero_matrix)
obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") zero_matrix <- matrix(0, 512, 512) mf <- middle_frame(obj_filename, subtrahend = zero_matrix)
Autocorrelation function of power spectrum
speckle_acf(ps)
speckle_acf(ps)
ps |
513 x 1024 power spectrum double matrix. |
The 513 x 1024 double matrix of ACF.
obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") pow_spec_diff <- speckle_ps_diff(obj_filename) acf <- speckle_acf(pow_spec_diff)
obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") pow_spec_diff <- speckle_ps_diff(obj_filename) acf <- speckle_acf(pow_spec_diff)
Get selected speckle frame Get specified speckle frame as matrix from file
speckle_frame(data_file = file.choose(), frame = 1)
speckle_frame(data_file = file.choose(), frame = 1)
data_file |
a character string with the path name to a file. |
frame |
an integer. |
512 x 512 matrix with given frame.
## Not run: # On Unix-like operating systems only # Read frame number 2 from file to matrix obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") frame2 <- speckle_frame(obj_filename, 2) ## End(Not run)
## Not run: # On Unix-like operating systems only # Read frame number 2 from file to matrix obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") frame2 <- speckle_frame(obj_filename, 2) ## End(Not run)
Generate model 512 x 512 x 2 (bytes) speckle image of binary star
speckle_generator(rho, theta, dm, seeing, speckle_sigma, wind)
speckle_generator(rho, theta, dm, seeing, speckle_sigma, wind)
rho |
a separation (an arcsec). |
theta |
a positional angle. |
dm |
a magnitude difference. |
seeing |
a number. |
speckle_sigma |
a number. |
wind |
a wind speed. |
The vector of model speckle image.
speckle_vector <- speckle_generator(rho = 0.5, theta = 70, dm = 0.3, seeing = 20, speckle_sigma = 1, wind = 0) speckle_matrix <- matrix(speckle_vector, nrow = 512, ncol = 512)
speckle_vector <- speckle_generator(rho = 0.5, theta = 70, dm = 0.3, seeing = 20, speckle_sigma = 1, wind = 0) speckle_matrix <- matrix(speckle_vector, nrow = 512, ncol = 512)
Power spectrum of the series of 512 x 512 speckle images
speckle_ps(filename, dark, flat, threshold = 50000L)
speckle_ps(filename, dark, flat, threshold = 50000L)
filename |
a character string with the path name to a file. |
dark |
512 x 512 middle frame matrix. |
flat |
512 x 512 middle flat field matrix. |
threshold |
an integer (default is 50000). |
The 513 x 1024 double matrix of power spectrum.
obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") midd_dark <- matrix(0, 512, 512) midd_flat <- matrix(1, 512, 512) pow_spec <- speckle_ps(obj_filename, dark = midd_dark, flat = midd_flat)
obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") midd_dark <- matrix(0, 512, 512) midd_flat <- matrix(1, 512, 512) pow_spec <- speckle_ps(obj_filename, dark = midd_dark, flat = midd_flat)
Power spectrum of the difference of neighboring frames in the series of speckle images
speckle_ps_diff(filename, threshold = 50000L)
speckle_ps_diff(filename, threshold = 50000L)
filename |
a character string with the path name to a file. |
threshold |
an integer (default is 50000). |
The 513 x 1024 double matrix of power spectrum.
obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") pow_spec_diff <- speckle_ps_diff(obj_filename)
obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") pow_spec_diff <- speckle_ps_diff(obj_filename)
Calculate statistics of speckles in the series of 512 x 512 speckle images and filter "bad" frames
speckle_stat(filename, threshold = 50000L)
speckle_stat(filename, threshold = 50000L)
filename |
a character string with the path name to a file. |
threshold |
an integer (default is 50000). |
The list with 2 elements 'badFrames' and 'hist':
1 number of bad frames,
2 double vector of speckle statistics.
obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") spec_stat <- speckle_stat(obj_filename)
obj_filename <- system.file("extdata", "ads15182_550_2_frames.dat", package = "specklestar") spec_stat <- speckle_stat(obj_filename)
The specklestar package provides functions for obtaining power spectrum and autocorrelation function from speckle data.