azcam-server


Nameazcam-server JSON
Version 24.2.1 PyPI version JSON
download
home_pageNone
SummaryServer package for AzCam acquisition and analysis package
upload_time2024-02-27 21:24:33
maintainerNone
docs_urlNone
authorMichael Lesser
requires_python>= 3.10
licenseNone
keywords ccd imaging astronomy sensors
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # AzCam Server

*azcam-server* is the main server application for the *azcam* acquisition and analysis package. It usually runs in an IPython window and is mainly used to control data acquistion. 

## Documentation

See https://azcam.readthedocs.io/.

## Installation

`pip install azcam-server`

Or download the latest version from from github: https://github.com/mplesser/azcam-server.git.

## Configuration and startup 

An example code snippet to start an *azcamserver* process is:

```
ipython -m azcam_server.server_mock --profile azcamserver  -i
```

and then in the IPython window:

```python
instrument.set_wavelength(450)
wavelength = instrument.get_wavelength()
print(f"Current wavelength is {wavelength}")
exposure.expose(2., 'flat', "a 450 nm flat field image")
```

## Observe tool script example

Import observe for observing command use:
```
from azcam_server.tools.observe.observe import Observe
```

```
# this is a single line comment python style
```

This block shows some direct commands
```
observe = Observe()
observe.test(et=1.0,object="flat", filter="400")
observe.comment("a different new comment 123")
observe.delay(1)
observe.obs(et=2.0,object="zero", filter="400", dec="12:00:00.23", ra="-23:34:2.1")
```

This block shows an example of commands using python flow control
```
alt_start = 0.0
step_size = 0.01
num_steps = 100
for count in range(num_steps):
    altitude = alt_start + count*step_size
    observe.steptel(altitude=altitude)
    print(f"On loop {count} altitude is {altitude}")
```
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "azcam-server",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">= 3.10",
    "maintainer_email": null,
    "keywords": "ccd,imaging,astronomy,sensors",
    "author": "Michael Lesser",
    "author_email": "mlesser@arizona.edu",
    "download_url": "https://files.pythonhosted.org/packages/7d/ae/3c3ac208e99dfdcbd9ab43fbce946723c24df75867d28457688de1754f84/azcam_server-24.2.1.tar.gz",
    "platform": null,
    "description": "# AzCam Server\n\n*azcam-server* is the main server application for the *azcam* acquisition and analysis package. It usually runs in an IPython window and is mainly used to control data acquistion. \n\n## Documentation\n\nSee https://azcam.readthedocs.io/.\n\n## Installation\n\n`pip install azcam-server`\n\nOr download the latest version from from github: https://github.com/mplesser/azcam-server.git.\n\n## Configuration and startup \n\nAn example code snippet to start an *azcamserver* process is:\n\n```\nipython -m azcam_server.server_mock --profile azcamserver  -i\n```\n\nand then in the IPython window:\n\n```python\ninstrument.set_wavelength(450)\nwavelength = instrument.get_wavelength()\nprint(f\"Current wavelength is {wavelength}\")\nexposure.expose(2., 'flat', \"a 450 nm flat field image\")\n```\n\n## Observe tool script example\n\nImport observe for observing command use:\n```\nfrom azcam_server.tools.observe.observe import Observe\n```\n\n```\n# this is a single line comment python style\n```\n\nThis block shows some direct commands\n```\nobserve = Observe()\nobserve.test(et=1.0,object=\"flat\", filter=\"400\")\nobserve.comment(\"a different new comment 123\")\nobserve.delay(1)\nobserve.obs(et=2.0,object=\"zero\", filter=\"400\", dec=\"12:00:00.23\", ra=\"-23:34:2.1\")\n```\n\nThis block shows an example of commands using python flow control\n```\nalt_start = 0.0\nstep_size = 0.01\nnum_steps = 100\nfor count in range(num_steps):\n    altitude = alt_start + count*step_size\n    observe.steptel(altitude=altitude)\n    print(f\"On loop {count} altitude is {altitude}\")\n```",
    "bugtrack_url": null,
    "license": null,
    "summary": "Server package for AzCam acquisition and analysis package",
    "version": "24.2.1",
    "project_urls": {
        "Documentation": "https://azcam-server.readthedocs.io/",
        "Repository": "https://github.com/mplesser/azcam-server/"
    },
    "split_keywords": [
        "ccd",
        "imaging",
        "astronomy",
        "sensors"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "346d18be5e656e1ede837de3d8e19a35060700e1d95a43953a10bafd6d2d30f7",
                "md5": "92e174adf86e5bfc36250e8239776c3a",
                "sha256": "0a3fc7bd8d9e3f67a0a11471f0e2aec5c1e7cb9802149d65a777af852db37985"
            },
            "downloads": -1,
            "filename": "azcam_server-24.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "92e174adf86e5bfc36250e8239776c3a",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">= 3.10",
            "size": 136565,
            "upload_time": "2024-02-27T21:24:30",
            "upload_time_iso_8601": "2024-02-27T21:24:30.861913Z",
            "url": "https://files.pythonhosted.org/packages/34/6d/18be5e656e1ede837de3d8e19a35060700e1d95a43953a10bafd6d2d30f7/azcam_server-24.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7dae3c3ac208e99dfdcbd9ab43fbce946723c24df75867d28457688de1754f84",
                "md5": "0953ef2d8c870c47c7426a1621c042f3",
                "sha256": "0104335f63e4441b3d1cbacdf1ce588c4504a991e1d423651d0ad06571ad4a52"
            },
            "downloads": -1,
            "filename": "azcam_server-24.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0953ef2d8c870c47c7426a1621c042f3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">= 3.10",
            "size": 203183,
            "upload_time": "2024-02-27T21:24:33",
            "upload_time_iso_8601": "2024-02-27T21:24:33.518612Z",
            "url": "https://files.pythonhosted.org/packages/7d/ae/3c3ac208e99dfdcbd9ab43fbce946723c24df75867d28457688de1754f84/azcam_server-24.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-27 21:24:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mplesser",
    "github_project": "azcam-server",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "azcam-server"
}
        
Elapsed time: 0.18678s