Skip to main content

stardiceonline

Data reduction package for the stardice experiment. The package features:

  • An image processing library "imageproc"
  • A batch processing tool to handle the data archive and its reduction
  • An interactive web interface (build upon bokeh) to manage observations and data reduction

Installation for developpers

We recommend installation within a virtual environment although this step is optionnal:

python3 -m venv online
source online/bin/activate

Afterward you can install the package from sources:

git clone git@gitlab.in2p3.fr:stardice/stardiceonline.git
cd stardiceonline
pip install -e .

Activation of bash/zsh completion

Optionnally, you can activate bash completion making the use of the stardiceonline main script much more convenient and less error prone. The completion is provided by the argcomplete module which supports natively bash and zsh. The following command will add the necessary configuration lines to your environment:

activate-global-python-argcomplete

Of course you need completion to be active in your shell, for zsh on macos the .zshrc files must contain:

autoload -Uz compinit
compinit

Activation of astrometry.net

For the moment, the initial astrometric solution relies on astrometry.net. You need a working installation with suitable index files for that to work. For example in debian:

sudo apt install astrometry.net astrometry-data-tycho2

Given the depth of StarDICE images, there should be no points in downloading more substantial catalogs. The astrometry is latter refined using subsamples of gaia downloaded on demand.

Setup

You need to provide a local storage point to reduce the StarDICE images. The provided path must be an existing directory on your local disk. If you want to dedicate a directory "ohparchive" in your home directory to this task enter:

mkdir ~/ohp_archive
stardiceonline config archive.local ~/ohp_archive

You then need to setup ssh connection to the host machine, in order to be able to retrieve the data and talk to the scheduler. The host machine is only reachable through a proxy which you need to specify. If you have key-based access to CC-IN2P3 compute farm, you can use it for this purpose. The default proxy value is thus cca.in2p3.fr. You also need to specify the username that you are using to connect to the proxy.

stardiceonline config ssh.proxy cca.in2p3.fr
stardiceonline config ssh.proxyuser username

The tool relies on an ssh agent to manage connections. SSH keys to access to the ssh proxy and the stardice host machine must be set up approprietly.

The rest of the configuration should be correct by default. If you want to see the rest of the configuration type:

stardiceonline config show

Offline usage

Browse the archive. If ssh connections are setup properly the following command should display a list of the nights available in the archive, with nights already available in the local archive displayed in green:

stardiceonline archive list 

Retrieve one of the available nights of data:

stardiceonline archive retrieve 2024_07_11

Optionnally you can retrieve all available data (this is very long):

stardiceonline archive retrieve all

Process one night of data:

stardiceonline process 2024_07_11

Stop the processing server:

stardiceonline process stop

Online usage

Start the web interface to browse the data and monitor the data taking:

stardiceonline webapp serve

The default port is 5006 Watch it in your browser at localhost:5006/online

Start the automatic processing of incoming live data:

stardiceonline process live

Once done you can stop everything with:

stardiceonline process stop

and Ctrl-C the server of the web application

Support

Submit issues and ideas to the issue page:

https://gitlab.in2p3.fr/stardice/stardiceonline/-/issues

Roadmap

Known bugs:

  • Led catalog is not properly presented (because it lacks astrometry...)
  • Display of Skylevels and other sensors no longer work

In development:

  • Presentation of meteo station data in the monitoring page of the web interface
  • Target selection page
  • Focus adjustment
  • Live reduction of spectra (big chunk)

Authors and acknowledgment

StarDICEonline is currently developed by Marc Betoule and Sébastien Bongard. New contributors are welcome.

License

StarDICEonline is licensed under the terms of GPL V2

Metadata

Release files for stardiceonline 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stardiceonline 0.1.3
File Size Uploaded Provenance Actions
stardiceonline-0.1.3.tar.gz 111.4 kB Without provenance Details for stardiceonline-0.1.3.tar.gz

Release files / stardiceonline-0.1.3.tar.gz

Download URL stardiceonline-0.1.3.tar.gz
Size 111.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1a4b7eaedebe30cd095b9de7b8dfcd76f0e3203e7d036e02e2a76e411bb39606
BLAKE2b-256 checksum
How to use checksums
cac67bceffaa44d9fea9c82841f00eeecd3f61132d3aaf570d679ed130d08838
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Security for stardiceonline 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page