Skip to main content

Reader for the calibration database

Project description

Calibration Database Reader

Version 0.6.0 Language Python 3.14 BepiColombo SIMBIO-SYS JUICE JANUS DOI

This software is able to read the calibration database in a standard format.

The database consists of three elements:

  • The version.yml file, which contains the version number of the database
  • The calib_db.csv file, which contains information about the calibration data and their scope of applicability (see the specific section for details)
  • The data folder, which contains the calibration matrices

Installation

via GitHub

To install the code you can use the syntax:

$ python3 -m pip install -U pip
$ pip install git+https://github.com/RomoloPoliti-INAF/Calib_DB_Reader.git

Usage

CalibDB(folder: str, remote: str)

where:

  • folder (str) is the the folder that host the database
  • remote (str, optional) is the git repository that host the db

If the folder does not exist, the software will clone the remote repository. If it is not present, an error will occur.

Example

from CalibDBReader import CalibDB
db=CalibDB(folder = "../../JANUS/Software/janus_cal_db",
            remote = "git@github.com:JANUS-JUICE/janus_cal_db.git")

Methods list

get_calib

Returns information about the calibration data and the calibration data that meets the specified conditions.

CalibDBReader.get_calib(calibration_step: str, date: datetime, channel: str = None, filter: int = None, read_data: bool = False) -> dict

  • calibration_step (str): name of the calibration module
  • date (datetime): acquisition date of the product to calibrate
  • channel (str, optional): channel to calibrate. Defaults to None.
  • filter (int, optional): filter to calibrate. Defaults to None.
  • read_data (bool, optional): read the calibration file and add it to the returned dictionary. Defaults to False.

Database Fields

  • Description Description of the step (used for messaging and log)
  • Channel the channel to calibrate
  • Calibration_Step name of the step will use the matrix
  • Size size of the matrix (used for load the data)
  • Mask value used to mask the pixel. If the value is 0 the mask will not applied.
  • Type Is the data type of the values in the matrix.
  • Func is the type of function will be used for the calibration. The function must be implemened in the code.
  • Filter is the filter number
  • Start is the start date of validity of the matrix
  • End is the end date of validity of the matrix. If the value is "Now" means that there is no end of validity.
  • File is the path and the the name of the file containing the matrix.
  • Arrays is the name of the matrices in the npz file. If the field is not present the software will try to extract one matrix named data

The Supported file format are:

  • binary file 2D or 3D binary matryx
  • numpy compressed file nmz file, in this case the Size and Type fields have only descriptive aim.

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

calibdbreader-0.7.1.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calibdbreader-0.7.1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file calibdbreader-0.7.1.tar.gz.

File metadata

  • Download URL: calibdbreader-0.7.1.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.19.8-200.fc43.x86_64

File hashes

Hashes for calibdbreader-0.7.1.tar.gz
Algorithm Hash digest
SHA256 33dad2a4d91d137cb8a06ce6fff9c69577fdb39dd92167dd3bf61e42580f6ed2
MD5 53cef8c77ada45fdc35484ca8330be62
BLAKE2b-256 271d812261e8ae816ddb93613e3eaaf73e7bf2c66c2ced07f97112d3a39b1b2d

See more details on using hashes here.

File details

Details for the file calibdbreader-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: calibdbreader-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.19.8-200.fc43.x86_64

File hashes

Hashes for calibdbreader-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03b5663dcc4da20a47580802b22e16b5b399de9e530fa0d84ddacada241f7ded
MD5 827b2a52c0feda28beaa49017a5e2a49
BLAKE2b-256 e989f98a12a460e89aacc2a6085d4ec09b6769c94975c14ad51eac4050863902

See more details on using hashes here.

Supported by

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