commit
6035634552
|
@ -21,6 +21,7 @@ Consider using a VirtualEnv to run stvid on a separate python virtual environmen
|
||||||
* `sextractor` needs to be executable in your path
|
* `sextractor` needs to be executable in your path
|
||||||
* [Astromentry.net](https://github.com/dstndstn/astrometry.net)
|
* [Astromentry.net](https://github.com/dstndstn/astrometry.net)
|
||||||
* `solve-field` needs to be executable in your path, with index files appropriate for your FOV
|
* `solve-field` needs to be executable in your path, with index files appropriate for your FOV
|
||||||
|
* [ZWO ASI SDK](https://astronomy-imaging-camera.com/software-drivers) if using a ZWO camera
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
* Copy the `configuration.ini-dist` file to `configuration.ini`
|
* Copy the `configuration.ini-dist` file to `configuration.ini`
|
||||||
|
|
|
@ -78,12 +78,13 @@ def capture_cv2(buf, z1, t1, z2, t2, nx, ny, nz, tend, device_id, live):
|
||||||
|
|
||||||
# Capture images
|
# Capture images
|
||||||
def capture_asi(buf, z1, t1, z2, t2, nx, ny, nz, tend, device_id, live, gain,
|
def capture_asi(buf, z1, t1, z2, t2, nx, ny, nz, tend, device_id, live, gain,
|
||||||
maxgain, autogain, exposure, bins, brightness, bandwidth, high_speed):
|
maxgain, autogain, exposure, bins, brightness, bandwidth,
|
||||||
|
high_speed, sdk):
|
||||||
# Array flag
|
# Array flag
|
||||||
first = True
|
first = True
|
||||||
|
|
||||||
# Initialize device
|
# Initialize device
|
||||||
asi.init(os.getenv("ZWO_ASI_LIB"))
|
asi.init(sdk)
|
||||||
|
|
||||||
camera = asi.Camera(device_id)
|
camera = asi.Camera(device_id)
|
||||||
camera_info = camera.get_camera_property()
|
camera_info = camera.get_camera_property()
|
||||||
|
@ -405,6 +406,7 @@ if __name__ == '__main__':
|
||||||
binning = cfg.getint(camera_type, 'bin')
|
binning = cfg.getint(camera_type, 'bin')
|
||||||
brightness = cfg.getint(camera_type, 'brightness')
|
brightness = cfg.getint(camera_type, 'brightness')
|
||||||
bandwidth = cfg.getint(camera_type, 'bandwidth')
|
bandwidth = cfg.getint(camera_type, 'bandwidth')
|
||||||
|
sdk = cfg.get(camera_type, 'sdk')
|
||||||
high_speed = cfg.getint(camera_type, 'high_speed')
|
high_speed = cfg.getint(camera_type, 'high_speed')
|
||||||
|
|
||||||
# Initialize arrays
|
# Initialize arrays
|
||||||
|
@ -431,7 +433,7 @@ if __name__ == '__main__':
|
||||||
args=(buf, z1, t1, z2, t2,
|
args=(buf, z1, t1, z2, t2,
|
||||||
nx, ny, nz, tend.unix, device_id, live, gain,
|
nx, ny, nz, tend.unix, device_id, live, gain,
|
||||||
maxgain, autogain, exposure, binning,
|
maxgain, autogain, exposure, binning,
|
||||||
brightness, bandwidth, high_speed))
|
brightness, bandwidth, high_speed, sdk))
|
||||||
|
|
||||||
# Start
|
# Start
|
||||||
pcapture.start()
|
pcapture.start()
|
||||||
|
|
|
@ -41,6 +41,7 @@ bin = 2 # Binning factor (1: 1x2, 2: 2x2 etc)
|
||||||
brightness = 10 # Target brightness of pixels
|
brightness = 10 # Target brightness of pixels
|
||||||
bandwidth = 90 # Bandwidth usage (percent)
|
bandwidth = 90 # Bandwidth usage (percent)
|
||||||
high_speed = 1 # High speed mode (0 for False, 1 for True)
|
high_speed = 1 # High speed mode (0 for False, 1 for True)
|
||||||
|
sdk = /path/to/libASICamera2.so # path to the SDK library
|
||||||
|
|
||||||
[Astrometry]
|
[Astrometry]
|
||||||
sex_config = /path/to/solve.sex
|
sex_config = /path/to/solve.sex
|
||||||
|
|
Loading…
Reference in New Issue