Solar Conventionality-based Organizing Observation data ( SCOOBI )
Project description
scoobi
Solar Conventionality-based Organizing Observation data ( SCOOBI )
New**:
scoobi -cc #this creates new configuration file in local directory called .config
scoobi -rc #this reads the config file .config and return a dictionary for you to see,
scoobi -cc -c=scoobi.config #this can be used to change the name of the config file
scoobi -rc -c=scoobi.config #if config file is scoobi.config
if you need to hardcode for ex.
rootfolder you can now manually open the config file and replace the values,
to use the values run the code normally combining with -rc
for example:
changed the
fits_folder=/home/avi/test-fits/
in .config
and then to generate thumbnails from the new configuration
scoobi -f /path/to/fits/ -th -rc
usage: scoobi [-h] [-f FITS_FOLDER] [-t TIFF_FOLDER] [-r RAW_FOLDER] [-o OUTPUT_FILE] [-c CONFIG_FILE] [-hdr HEADER] [-hf HEADER_FILE]
[-hfo HEADER_FILE_OUTPUT] [-mm MONTH] [-dd DAYS] [--no-datedfolder] [-rt] [-ct] [-rc] [-cc] [-do] [-th]
| | (_)
___ ___ ___ ___ | |__ _
/ __|/ __/ _ \ / _ \| '_ \| |
\__ \ (_| (_) | (_) | |_) | |
|___/\___\___/ \___/|_.__/|_|
Solar Conventionality-based Organizing Observation data ( SCOOBI )
optional arguments:
-h, --help show this help message and exit
-f FITS_FOLDER, --fits_folder FITS_FOLDER
source
-t TIFF_FOLDER, --tiff_folder TIFF_FOLDER
RAW TIFF folder path
-r RAW_FOLDER, --raw_folder RAW_FOLDER
RAW FITS folder path
-o OUTPUT_FILE, --output_file OUTPUT_FILE
complete path for output csv or log file.
-c CONFIG_FILE, --config_file CONFIG_FILE
complete path for config file with inputs
-mm MONTH, --month MONTH
comma separated month names
-dd DAYS, --days DAYS
comma separated month names for range(a,b) Ex --days='1,32'
--no-datedfolder if not needed to create dated folder
-rt, --read-time reads time from a tiff file
-ct, --compare-time compares time from a fits file to a tiff file
-rc, --read-config read config, bool
-cc, --create-config create config, if called with rc would modify from and to the CONFIG_FILE path
-do, --do-conversion create fits from tiff/fits raw file and take care of the folder structure. Requires tiff_folder or raw_folder path
-th, --thumbnail True/False for creating thumbnails; The fits folder path is required but should be more specific e.g atleaset including the
/processed; should not be used with -do
header:
Parameters for injecting and printing headers.
[[Work in Progress]]
-hdr HEADER, --header HEADER
Comma separated input headers to inject to the raw file.
-hf HEADER_FILE, --header-file HEADER_FILE
Input header from path to inject to the raw file.
-hfo HEADER_FILE_OUTPUT, --header-file-output HEADER_FILE_OUTPUT
Header output with the correct padding.
File Conventions
ORGANIZED FOLDER
Front-end Processed data for access through database
Folder structure
- solar_data
-
final
contains fits files and thumbnails
- YEAR (int[4])
- MONTH (str[3])
- DAY (int[8])
- .fits file
- thumbnails/
- .fits file path.stem + 'jpg'
- DAY (int[8])
- MONTH (str[3])
- YEAR (int[4])
-
processed
contains fits files
- YEAR (int[4])
- MONTH (str[3])
- DAY (int[8])
- .fits file
- DAY (int[8])
- MONTH (str[3])
- YEAR (int[4])
-
raw
raw telescope data
- YEAR (int[4])
- Month (int[2])
- Day (int[2])
- Month (int[2])
- YEAR (int[4])
-
Naming Convention suggested by committee
S + DATETIME + TELESCOPE
Example : S-2022-11-01T02:02:20.001-HA.fits
- S : Science data
- F : Flats data
- D : Dark data
- '-' : Separator
- 2022-11-01 : YEAR + Separator + MONTH + Separator + DAY
- T02:02:20.001 : T + hour + minute +seconds +millisecond
- HA : H- alpha telescope
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file scoobi-0.0.1.8.tar.gz
.
File metadata
- Download URL: scoobi-0.0.1.8.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 792d62413fc75acd49fab492b19eb9a10121da5440dc990dd5781cadfa6c86c9 |
|
MD5 | 4ccdfc0ca7039788de2fa2ef27a39e18 |
|
BLAKE2b-256 | 7ffef60f8a472425fb4898e6423f4fe8a53fc8f519868be826b17a4d575125a9 |
File details
Details for the file scoobi-0.0.1.8-py3-none-any.whl
.
File metadata
- Download URL: scoobi-0.0.1.8-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e61b5dadc7ae0fc82f15cb873265b05c1ca0d14778d04b909f46a064526ecde7 |
|
MD5 | a617b09892ef9e9ebdb8a6290a82fac6 |
|
BLAKE2b-256 | 7fe31eb2eaed1c4365cb47b9c83f9bf35ff2d6bb32287a728dd9f1854ceb0ba7 |