Skip to main content

Skymaker camera with sdss-basecam

Project description

skymakercam

Versions Documentation Status Travis (.org) codecov

Virtual camera based on sdss-basecam using remote catalog

from lvmtan run:

poetry run container_start --name lvm.all

from lvmpwi run:

poetry run container_start --name=lvm.sci.pwi --simulator

from skymakercam run:

poetry run python utils/plot_skymakercam.py -v -c python/skymakercam/etc/cameras.yaml lvm.sci.agw.cam
  • Move lvm.sci.foc for focusing - relative 10000 steps.
  • Move lvm.sci.km absolute in degree "DEG".
  • Move lvm.sci.pwi for target.
  • Press 'o' for find stars and recenter.
  • Press 'q' to quit.

image

use it in your own python code:

With this config example python/skymakercam/etc/cameras.yaml and the actors running from before, it can be used like this:

import asyncio
from logging import DEBUG, INFO
from skymakercam.camera import SkymakerCameraSystem, SkymakerCamera

async def example_skymakercam(camname, exptime, verb, config):

   cs = SkymakerCameraSystem(SkymakerCamera, camera_config=config, verbose=verb)
   cam = await cs.add_camera(name=camname, uid=cs._config[camname]["uid"])

   # eg: expose or do whatever u do with a sdss-basecam type camera.
   exp = await cam.expose(exptime, camname)
   

verb = DEBUG
camname = "lvm.sci.agw.cam"
config = "python/skymakercam/etc/cameras.yaml"

asyncio.run(example_skymakercam(camname, 5.0, verb, config))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdss-skymakercam-0.0.28.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

sdss_skymakercam-0.0.28-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file sdss-skymakercam-0.0.28.tar.gz.

File metadata

  • Download URL: sdss-skymakercam-0.0.28.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for sdss-skymakercam-0.0.28.tar.gz
Algorithm Hash digest
SHA256 2cc0d75f3a1af95d3268653b53c14fc2f98f01326de4c38121edef5dfe6b57ed
MD5 0c2dd94cba07a91bbf75e724401933c6
BLAKE2b-256 c38ea656202e96ae046805eaa3a9f89afd39e81af7409681e153149d65637403

See more details on using hashes here.

File details

Details for the file sdss_skymakercam-0.0.28-py3-none-any.whl.

File metadata

File hashes

Hashes for sdss_skymakercam-0.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e7a15daa06c8c0033a7f26bc65fe6532db99b12f4d0b2dc32bf1c6b1625235
MD5 8240cadc9d01445e9ba3c096d96fda40
BLAKE2b-256 cebbe41bae6a6b9a6d3f783fdca0d8a0a73366ad1940306d643ef4cfa63cb7ff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page