pyobs-allsky-cloudcover 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyobs_allsky_cloudcover-0.1.0/.gitattributes +1 -0
- pyobs_allsky_cloudcover-0.1.0/.github/workflows/build.yml +138 -0
- pyobs_allsky_cloudcover-0.1.0/.github/workflows/tests.yaml +58 -0
- pyobs_allsky_cloudcover-0.1.0/.gitignore +74 -0
- pyobs_allsky_cloudcover-0.1.0/Cargo.lock +347 -0
- pyobs_allsky_cloudcover-0.1.0/Cargo.toml +14 -0
- pyobs_allsky_cloudcover-0.1.0/PKG-INFO +19 -0
- pyobs_allsky_cloudcover-0.1.0/Readme.md +52 -0
- pyobs_allsky_cloudcover-0.1.0/data/catalog_v50.csv +8988 -0
- pyobs_allsky_cloudcover-0.1.0/data/mask.npy +0 -0
- pyobs_allsky_cloudcover-0.1.0/data/test_day_image.fits +3 -0
- pyobs_allsky_cloudcover-0.1.0/data/test_night_image.fits +3 -0
- pyobs_allsky_cloudcover-0.1.0/data/test_wcs.fits +3 -0
- pyobs_allsky_cloudcover-0.1.0/day_integration_test.yaml +80 -0
- pyobs_allsky_cloudcover-0.1.0/example.yaml +130 -0
- pyobs_allsky_cloudcover-0.1.0/night_integration_test.yaml +94 -0
- pyobs_allsky_cloudcover-0.1.0/poetry.lock +7 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/application.py +61 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/cloud_coverage_info.py +14 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/cloud_info_calculator/__init__.py +6 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/cloud_info_calculator/cloud_info_calculator_factory.py +18 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/cloud_info_calculator/cloud_info_calculator_options.py +12 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/cloud_info_calculator/coverage_change_calculator.py +28 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/cloud_info_calculator/coverage_info_calculator.py +24 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/cloud_info_calculator/zenith_cloud_coverage_calculator.py +15 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/measurement_log/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/measurement_log/influx.py +31 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/measurement_log/measurement_log.py +10 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/day/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/day/altaz_map_generator.py +36 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/day/color_ratio_calculation.py +10 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/day/debayer_image.py +10 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/day/pipeline.py +54 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/day/pipeline_factory.py +26 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/day/pipeline_options.py +25 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/day/sun_masker.py +18 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/intervall.py +48 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/altaz_grid_generator/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/altaz_grid_generator/altaz_grid_options.py +12 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/altaz_grid_generator/altaz_map_generator_factory.py +11 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/altaz_grid_generator/spherical_alt_az_generator.py +20 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/catalog/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/catalog/altaz_catalog.py +25 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/catalog/altaz_catalog_loader.py +34 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/catalog/catalog_constructor.py +29 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/catalog/catalog_constructor_factory.py +22 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/catalog/catalog_constructor_options.py +32 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/catalog/pixel_catalog.py +109 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/cloud_coverage_calculator/coverage_change_calculator.py +28 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/cloud_map_generator/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/cloud_map_generator/cloud_map_generator.py +17 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/cloud_map_generator/cloud_map_generator_factory.py +10 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/cloud_map_generator/cloud_map_generator_options.py +11 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/lim_magnitude_map_generator/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/lim_magnitude_map_generator/lim_magnitude_map_generator.py +50 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/lim_magnitude_map_generator/lim_magnitude_map_generator_factory.py +10 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/lim_magnitude_map_generator/lim_magnitude_map_generator_options.py +13 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/pipeline.py +50 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/pipeline_factory.py +51 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/pipeline_options.py +55 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/preprocessor/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/preprocessor/image_binner.py +19 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/preprocessor/image_masker.py +21 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/preprocessor/preprocessor.py +18 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/preprocessor/preprocessor_factory.py +22 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/preprocessor/preprocessor_options.py +12 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/star_reverse_matcher/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/star_reverse_matcher/detector/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/star_reverse_matcher/detector/detector.py +10 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/star_reverse_matcher/detector/sigma_treshhold_detector.py +28 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/star_reverse_matcher/star_reverse_matcher.py +23 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/star_reverse_matcher/star_reverse_matcher_factory.py +16 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/star_reverse_matcher/star_reverse_matcher_options.py +15 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/night/star_reverse_matcher/window.py +27 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/pipeline.py +13 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/pipeline_controller.py +44 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/pipeline/pipeline_controller_factory.py +37 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/testing/__init__.py +1 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/testing/module.py +113 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/web_api/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/web_api/coverage_query_executor.py +77 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/web_api/server.py +66 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/web_api/server_factory.py +17 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/world_model/__init__.py +5 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/world_model/hour_angle_converter.py +18 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/world_model/simple_model.py +32 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/world_model/wcs_model.py +45 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/world_model/wcs_model_loader.py +28 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/world_model/world_model.py +18 -0
- pyobs_allsky_cloudcover-0.1.0/pyobs_cloudcover/world_model/world_model_factory.py +22 -0
- pyobs_allsky_cloudcover-0.1.0/pyproject.toml +61 -0
- pyobs_allsky_cloudcover-0.1.0/scripts/data_loader/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/scripts/data_loader/date_indexed.py +25 -0
- pyobs_allsky_cloudcover-0.1.0/scripts/data_loader/image_iterator.py +26 -0
- pyobs_allsky_cloudcover-0.1.0/scripts/data_loader/sun_alt_date_filter.py +23 -0
- pyobs_allsky_cloudcover-0.1.0/scripts/day_pipeline.py +96 -0
- pyobs_allsky_cloudcover-0.1.0/scripts/integrated_plotting.py +94 -0
- pyobs_allsky_cloudcover-0.1.0/scripts/pipeline.py +118 -0
- pyobs_allsky_cloudcover-0.1.0/scripts/plotting.py +110 -0
- pyobs_allsky_cloudcover-0.1.0/src/cloud_map_generator.rs +118 -0
- pyobs_allsky_cloudcover-0.1.0/src/lib.rs +20 -0
- pyobs_allsky_cloudcover-0.1.0/src/main.rs +4 -0
- pyobs_allsky_cloudcover-0.1.0/src/night/alt_az_coord.rs +198 -0
- pyobs_allsky_cloudcover-0.1.0/src/night/average.rs +80 -0
- pyobs_allsky_cloudcover-0.1.0/src/night/cloud_map_generator.rs +94 -0
- pyobs_allsky_cloudcover-0.1.0/src/night/mod.rs +6 -0
- pyobs_allsky_cloudcover-0.1.0/src/night/star.rs +33 -0
- pyobs_allsky_cloudcover-0.1.0/src/night/star_counter.rs +89 -0
- pyobs_allsky_cloudcover-0.1.0/src/night/weighted_value.rs +25 -0
- pyobs_allsky_cloudcover-0.1.0/src/sky_query.rs +134 -0
- pyobs_allsky_cloudcover-0.1.0/tests/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/integration/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/integration/catalog.csv +46 -0
- pyobs_allsky_cloudcover-0.1.0/tests/integration/mask.npy +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/integration/matches_small_20240308.csv +13 -0
- pyobs_allsky_cloudcover-0.1.0/tests/integration/small_dummy_mask.npy +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/integration/test_day_pipeline.py +42 -0
- pyobs_allsky_cloudcover-0.1.0/tests/integration/test_day_pipeline_factory.py +46 -0
- pyobs_allsky_cloudcover-0.1.0/tests/integration/test_night_pipeline.py +62 -0
- pyobs_allsky_cloudcover-0.1.0/tests/integration/test_night_pipeline_factory.py +67 -0
- pyobs_allsky_cloudcover-0.1.0/tests/integration/test_pipeline_controller.py +76 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/cloud_info_calculator/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/cloud_info_calculator/test_coverage_change_calculator.py +17 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/cloud_info_calculator/test_zenith_mask.py +22 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/measurment_log/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/measurment_log/test_influx.py +34 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/day/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/day/test_color_ratio_calculation.py +10 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/altaz_map_generator/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/altaz_map_generator/test_spherical_alt_az_generator.py +7 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/catalog/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/catalog/test_altaz_catalog.py +33 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/catalog/test_altaz_catalog_loader.py +39 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/catalog/test_pixel_catalog.py +51 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/cloud_coverage_calculator/test_coverage_change_calculator.py +26 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/preprocessor/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/preprocessor/test_image_binner.py +12 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/preprocessor/test_image_masker.py +13 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/reverse_matching/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/reverse_matching/detector/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/reverse_matching/detector/sigma_treshhold_detector.py +19 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/reverse_matching/test_star_reverse_matcher.py +2 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/reverse_matching/test_window.py +21 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/test_cloud_map_generator.py +11 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/night/test_lim_magnitude_map_generator.py +44 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/test_interval.py +74 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/pipeline/test_pipeline_controller.py +61 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/web_api/__init__.py +0 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/web_api/conftest.py +8 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/web_api/test_coverage_query_executor.py +62 -0
- pyobs_allsky_cloudcover-0.1.0/tests/unit/web_api/test_server.py +120 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.fits filter=lfs diff=lfs merge=lfs -text
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# This file is autogenerated by maturin v1.5.1
|
|
2
|
+
# To update, run
|
|
3
|
+
#
|
|
4
|
+
# maturin generate-ci github
|
|
5
|
+
#
|
|
6
|
+
name: Build
|
|
7
|
+
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
- master
|
|
13
|
+
tags:
|
|
14
|
+
- '*'
|
|
15
|
+
pull_request:
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
linux:
|
|
23
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
24
|
+
strategy:
|
|
25
|
+
matrix:
|
|
26
|
+
platform:
|
|
27
|
+
- runner: ubuntu-latest
|
|
28
|
+
target: x86_64
|
|
29
|
+
- runner: ubuntu-latest
|
|
30
|
+
target: x86
|
|
31
|
+
- runner: ubuntu-latest
|
|
32
|
+
target: aarch64
|
|
33
|
+
- runner: ubuntu-latest
|
|
34
|
+
target: armv7
|
|
35
|
+
- runner: ubuntu-latest
|
|
36
|
+
target: s390x
|
|
37
|
+
- runner: ubuntu-latest
|
|
38
|
+
target: ppc64le
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: actions/setup-python@v5
|
|
42
|
+
with:
|
|
43
|
+
python-version: '3.11'
|
|
44
|
+
- name: Build wheels
|
|
45
|
+
uses: PyO3/maturin-action@v1
|
|
46
|
+
with:
|
|
47
|
+
target: ${{ matrix.platform.target }}
|
|
48
|
+
args: --release --out dist --find-interpreter
|
|
49
|
+
sccache: 'true'
|
|
50
|
+
manylinux: auto
|
|
51
|
+
- name: Upload wheels
|
|
52
|
+
uses: actions/upload-artifact@v4
|
|
53
|
+
with:
|
|
54
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
55
|
+
path: dist
|
|
56
|
+
|
|
57
|
+
windows:
|
|
58
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
59
|
+
strategy:
|
|
60
|
+
matrix:
|
|
61
|
+
platform:
|
|
62
|
+
- runner: windows-latest
|
|
63
|
+
target: x64
|
|
64
|
+
- runner: windows-latest
|
|
65
|
+
target: x86
|
|
66
|
+
steps:
|
|
67
|
+
- uses: actions/checkout@v4
|
|
68
|
+
- uses: actions/setup-python@v5
|
|
69
|
+
with:
|
|
70
|
+
python-version: '3.11'
|
|
71
|
+
architecture: ${{ matrix.platform.target }}
|
|
72
|
+
- name: Build wheels
|
|
73
|
+
uses: PyO3/maturin-action@v1
|
|
74
|
+
with:
|
|
75
|
+
target: ${{ matrix.platform.target }}
|
|
76
|
+
args: --release --out dist --find-interpreter
|
|
77
|
+
sccache: 'true'
|
|
78
|
+
- name: Upload wheels
|
|
79
|
+
uses: actions/upload-artifact@v4
|
|
80
|
+
with:
|
|
81
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
82
|
+
path: dist
|
|
83
|
+
|
|
84
|
+
macos:
|
|
85
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
86
|
+
strategy:
|
|
87
|
+
matrix:
|
|
88
|
+
platform:
|
|
89
|
+
- runner: macos-latest
|
|
90
|
+
target: x86_64
|
|
91
|
+
- runner: macos-14
|
|
92
|
+
target: aarch64
|
|
93
|
+
steps:
|
|
94
|
+
- uses: actions/checkout@v4
|
|
95
|
+
- uses: actions/setup-python@v5
|
|
96
|
+
with:
|
|
97
|
+
python-version: '3.11'
|
|
98
|
+
- name: Build wheels
|
|
99
|
+
uses: PyO3/maturin-action@v1
|
|
100
|
+
with:
|
|
101
|
+
target: ${{ matrix.platform.target }}
|
|
102
|
+
args: --release --out dist --find-interpreter
|
|
103
|
+
sccache: 'true'
|
|
104
|
+
- name: Upload wheels
|
|
105
|
+
uses: actions/upload-artifact@v4
|
|
106
|
+
with:
|
|
107
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
108
|
+
path: dist
|
|
109
|
+
|
|
110
|
+
sdist:
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
steps:
|
|
113
|
+
- uses: actions/checkout@v4
|
|
114
|
+
- name: Build sdist
|
|
115
|
+
uses: PyO3/maturin-action@v1
|
|
116
|
+
with:
|
|
117
|
+
command: sdist
|
|
118
|
+
args: --out dist
|
|
119
|
+
- name: Upload sdist
|
|
120
|
+
uses: actions/upload-artifact@v4
|
|
121
|
+
with:
|
|
122
|
+
name: wheels-sdist
|
|
123
|
+
path: dist
|
|
124
|
+
|
|
125
|
+
release:
|
|
126
|
+
name: Release
|
|
127
|
+
runs-on: ubuntu-latest
|
|
128
|
+
if: "startsWith(github.ref, 'refs/tags/')"
|
|
129
|
+
needs: [linux, windows, macos, sdist]
|
|
130
|
+
steps:
|
|
131
|
+
- uses: actions/download-artifact@v4
|
|
132
|
+
- name: Publish to PyPI
|
|
133
|
+
uses: PyO3/maturin-action@v1
|
|
134
|
+
env:
|
|
135
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
136
|
+
with:
|
|
137
|
+
command: upload
|
|
138
|
+
args: --non-interactive --skip-existing wheels-*/*
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
on: push
|
|
3
|
+
|
|
4
|
+
jobs:
|
|
5
|
+
cargo-test:
|
|
6
|
+
runs-on: ubuntu-latest
|
|
7
|
+
steps:
|
|
8
|
+
- uses: actions/checkout@v3
|
|
9
|
+
- run: rustup update stable && rustup default stable
|
|
10
|
+
- run: cargo build --verbose
|
|
11
|
+
- run: cargo test --verbose
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
pytest:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
timeout-minutes: 10
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: Check out repository code
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: Install poetry
|
|
23
|
+
run: pipx install poetry
|
|
24
|
+
|
|
25
|
+
- name: Install maturin
|
|
26
|
+
run: pipx install maturin
|
|
27
|
+
|
|
28
|
+
- name: Setup Python
|
|
29
|
+
uses: actions/setup-python@v5
|
|
30
|
+
with:
|
|
31
|
+
python-version: '3.11'
|
|
32
|
+
cache: 'poetry'
|
|
33
|
+
|
|
34
|
+
- run: poetry run maturin develop --release --all-features --extras test
|
|
35
|
+
- run: poetry run pytest -v
|
|
36
|
+
|
|
37
|
+
mypy:
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
timeout-minutes: 10
|
|
40
|
+
|
|
41
|
+
steps:
|
|
42
|
+
- name: Check out repository code
|
|
43
|
+
uses: actions/checkout@v4
|
|
44
|
+
|
|
45
|
+
- name: Install poetry
|
|
46
|
+
run: pipx install poetry
|
|
47
|
+
|
|
48
|
+
- name: Install maturin
|
|
49
|
+
run: pipx install maturin
|
|
50
|
+
|
|
51
|
+
- name: Setup Python
|
|
52
|
+
uses: actions/setup-python@v5
|
|
53
|
+
with:
|
|
54
|
+
python-version: '3.11'
|
|
55
|
+
cache: 'poetry'
|
|
56
|
+
|
|
57
|
+
- run: poetry run maturin develop --release --all-features --extras test
|
|
58
|
+
- run: poetry run mypy ./pyobs_cloudcover
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/target
|
|
2
|
+
|
|
3
|
+
# Byte-compiled / optimized / DLL files
|
|
4
|
+
__pycache__/
|
|
5
|
+
.pytest_cache/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
|
|
11
|
+
# Distribution / packaging
|
|
12
|
+
.Python
|
|
13
|
+
.venv/
|
|
14
|
+
env/
|
|
15
|
+
bin/
|
|
16
|
+
build/
|
|
17
|
+
develop-eggs/
|
|
18
|
+
dist/
|
|
19
|
+
eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
include/
|
|
26
|
+
man/
|
|
27
|
+
venv/
|
|
28
|
+
*.egg-info/
|
|
29
|
+
.installed.cfg
|
|
30
|
+
*.egg
|
|
31
|
+
|
|
32
|
+
# Installer logs
|
|
33
|
+
pip-log.txt
|
|
34
|
+
pip-delete-this-directory.txt
|
|
35
|
+
pip-selfcheck.json
|
|
36
|
+
|
|
37
|
+
# Unit test / coverage reports
|
|
38
|
+
htmlcov/
|
|
39
|
+
.tox/
|
|
40
|
+
.coverage
|
|
41
|
+
.cache
|
|
42
|
+
nosetests.xml
|
|
43
|
+
coverage.xml
|
|
44
|
+
|
|
45
|
+
# Translations
|
|
46
|
+
*.mo
|
|
47
|
+
|
|
48
|
+
# Mr Developer
|
|
49
|
+
.mr.developer.cfg
|
|
50
|
+
.project
|
|
51
|
+
.pydevproject
|
|
52
|
+
|
|
53
|
+
# Rope
|
|
54
|
+
.ropeproject
|
|
55
|
+
|
|
56
|
+
# Django stuff:
|
|
57
|
+
*.log
|
|
58
|
+
*.pot
|
|
59
|
+
|
|
60
|
+
.DS_Store
|
|
61
|
+
|
|
62
|
+
# Sphinx documentation
|
|
63
|
+
docs/_build/
|
|
64
|
+
|
|
65
|
+
# PyCharm
|
|
66
|
+
.idea/
|
|
67
|
+
|
|
68
|
+
# VSCode
|
|
69
|
+
.vscode/
|
|
70
|
+
|
|
71
|
+
# Pyenv
|
|
72
|
+
.python-version
|
|
73
|
+
|
|
74
|
+
*.sh
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 3
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.2.0"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "ball-tree"
|
|
13
|
+
version = "0.5.0"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "de997ffdb01b0ff5078e22b60e482104ec391cfb9ecef9e4b3e08dc129628328"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "bitflags"
|
|
19
|
+
version = "1.3.2"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "cfg-if"
|
|
25
|
+
version = "1.0.0"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "crossbeam-deque"
|
|
31
|
+
version = "0.8.5"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d"
|
|
34
|
+
dependencies = [
|
|
35
|
+
"crossbeam-epoch",
|
|
36
|
+
"crossbeam-utils",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[[package]]
|
|
40
|
+
name = "crossbeam-epoch"
|
|
41
|
+
version = "0.9.18"
|
|
42
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
43
|
+
checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
|
|
44
|
+
dependencies = [
|
|
45
|
+
"crossbeam-utils",
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
[[package]]
|
|
49
|
+
name = "crossbeam-utils"
|
|
50
|
+
version = "0.8.19"
|
|
51
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
52
|
+
checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345"
|
|
53
|
+
|
|
54
|
+
[[package]]
|
|
55
|
+
name = "either"
|
|
56
|
+
version = "1.11.0"
|
|
57
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
58
|
+
checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2"
|
|
59
|
+
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "heck"
|
|
62
|
+
version = "0.4.1"
|
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
64
|
+
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
|
|
65
|
+
|
|
66
|
+
[[package]]
|
|
67
|
+
name = "indoc"
|
|
68
|
+
version = "2.0.5"
|
|
69
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
70
|
+
checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
|
|
71
|
+
|
|
72
|
+
[[package]]
|
|
73
|
+
name = "libc"
|
|
74
|
+
version = "0.2.153"
|
|
75
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
76
|
+
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
|
|
77
|
+
|
|
78
|
+
[[package]]
|
|
79
|
+
name = "lock_api"
|
|
80
|
+
version = "0.4.11"
|
|
81
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
82
|
+
checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45"
|
|
83
|
+
dependencies = [
|
|
84
|
+
"autocfg",
|
|
85
|
+
"scopeguard",
|
|
86
|
+
]
|
|
87
|
+
|
|
88
|
+
[[package]]
|
|
89
|
+
name = "memoffset"
|
|
90
|
+
version = "0.9.1"
|
|
91
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
92
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
93
|
+
dependencies = [
|
|
94
|
+
"autocfg",
|
|
95
|
+
]
|
|
96
|
+
|
|
97
|
+
[[package]]
|
|
98
|
+
name = "once_cell"
|
|
99
|
+
version = "1.19.0"
|
|
100
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
101
|
+
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
|
|
102
|
+
|
|
103
|
+
[[package]]
|
|
104
|
+
name = "parking_lot"
|
|
105
|
+
version = "0.12.1"
|
|
106
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
107
|
+
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
|
|
108
|
+
dependencies = [
|
|
109
|
+
"lock_api",
|
|
110
|
+
"parking_lot_core",
|
|
111
|
+
]
|
|
112
|
+
|
|
113
|
+
[[package]]
|
|
114
|
+
name = "parking_lot_core"
|
|
115
|
+
version = "0.9.9"
|
|
116
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
117
|
+
checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
|
|
118
|
+
dependencies = [
|
|
119
|
+
"cfg-if",
|
|
120
|
+
"libc",
|
|
121
|
+
"redox_syscall",
|
|
122
|
+
"smallvec",
|
|
123
|
+
"windows-targets",
|
|
124
|
+
]
|
|
125
|
+
|
|
126
|
+
[[package]]
|
|
127
|
+
name = "portable-atomic"
|
|
128
|
+
version = "1.6.0"
|
|
129
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
130
|
+
checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
|
|
131
|
+
|
|
132
|
+
[[package]]
|
|
133
|
+
name = "proc-macro2"
|
|
134
|
+
version = "1.0.80"
|
|
135
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
136
|
+
checksum = "a56dea16b0a29e94408b9aa5e2940a4eedbd128a1ba20e8f7ae60fd3d465af0e"
|
|
137
|
+
dependencies = [
|
|
138
|
+
"unicode-ident",
|
|
139
|
+
]
|
|
140
|
+
|
|
141
|
+
[[package]]
|
|
142
|
+
name = "pyo3"
|
|
143
|
+
version = "0.20.3"
|
|
144
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
145
|
+
checksum = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"
|
|
146
|
+
dependencies = [
|
|
147
|
+
"cfg-if",
|
|
148
|
+
"indoc",
|
|
149
|
+
"libc",
|
|
150
|
+
"memoffset",
|
|
151
|
+
"parking_lot",
|
|
152
|
+
"portable-atomic",
|
|
153
|
+
"pyo3-build-config",
|
|
154
|
+
"pyo3-ffi",
|
|
155
|
+
"pyo3-macros",
|
|
156
|
+
"unindent",
|
|
157
|
+
]
|
|
158
|
+
|
|
159
|
+
[[package]]
|
|
160
|
+
name = "pyo3-build-config"
|
|
161
|
+
version = "0.20.3"
|
|
162
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
163
|
+
checksum = "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7"
|
|
164
|
+
dependencies = [
|
|
165
|
+
"once_cell",
|
|
166
|
+
"target-lexicon",
|
|
167
|
+
]
|
|
168
|
+
|
|
169
|
+
[[package]]
|
|
170
|
+
name = "pyo3-ffi"
|
|
171
|
+
version = "0.20.3"
|
|
172
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
173
|
+
checksum = "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa"
|
|
174
|
+
dependencies = [
|
|
175
|
+
"libc",
|
|
176
|
+
"pyo3-build-config",
|
|
177
|
+
]
|
|
178
|
+
|
|
179
|
+
[[package]]
|
|
180
|
+
name = "pyo3-macros"
|
|
181
|
+
version = "0.20.3"
|
|
182
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
183
|
+
checksum = "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158"
|
|
184
|
+
dependencies = [
|
|
185
|
+
"proc-macro2",
|
|
186
|
+
"pyo3-macros-backend",
|
|
187
|
+
"quote",
|
|
188
|
+
"syn",
|
|
189
|
+
]
|
|
190
|
+
|
|
191
|
+
[[package]]
|
|
192
|
+
name = "pyo3-macros-backend"
|
|
193
|
+
version = "0.20.3"
|
|
194
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
195
|
+
checksum = "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185"
|
|
196
|
+
dependencies = [
|
|
197
|
+
"heck",
|
|
198
|
+
"proc-macro2",
|
|
199
|
+
"pyo3-build-config",
|
|
200
|
+
"quote",
|
|
201
|
+
"syn",
|
|
202
|
+
]
|
|
203
|
+
|
|
204
|
+
[[package]]
|
|
205
|
+
name = "pyobs-allsky-cloudcover"
|
|
206
|
+
version = "0.1.0"
|
|
207
|
+
dependencies = [
|
|
208
|
+
"ball-tree",
|
|
209
|
+
"pyo3",
|
|
210
|
+
"rayon",
|
|
211
|
+
]
|
|
212
|
+
|
|
213
|
+
[[package]]
|
|
214
|
+
name = "quote"
|
|
215
|
+
version = "1.0.36"
|
|
216
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
217
|
+
checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
|
|
218
|
+
dependencies = [
|
|
219
|
+
"proc-macro2",
|
|
220
|
+
]
|
|
221
|
+
|
|
222
|
+
[[package]]
|
|
223
|
+
name = "rayon"
|
|
224
|
+
version = "1.10.0"
|
|
225
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
226
|
+
checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa"
|
|
227
|
+
dependencies = [
|
|
228
|
+
"either",
|
|
229
|
+
"rayon-core",
|
|
230
|
+
]
|
|
231
|
+
|
|
232
|
+
[[package]]
|
|
233
|
+
name = "rayon-core"
|
|
234
|
+
version = "1.12.1"
|
|
235
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
236
|
+
checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2"
|
|
237
|
+
dependencies = [
|
|
238
|
+
"crossbeam-deque",
|
|
239
|
+
"crossbeam-utils",
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
[[package]]
|
|
243
|
+
name = "redox_syscall"
|
|
244
|
+
version = "0.4.1"
|
|
245
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
246
|
+
checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
|
|
247
|
+
dependencies = [
|
|
248
|
+
"bitflags",
|
|
249
|
+
]
|
|
250
|
+
|
|
251
|
+
[[package]]
|
|
252
|
+
name = "scopeguard"
|
|
253
|
+
version = "1.2.0"
|
|
254
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
255
|
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
256
|
+
|
|
257
|
+
[[package]]
|
|
258
|
+
name = "smallvec"
|
|
259
|
+
version = "1.13.2"
|
|
260
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
261
|
+
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
|
|
262
|
+
|
|
263
|
+
[[package]]
|
|
264
|
+
name = "syn"
|
|
265
|
+
version = "2.0.59"
|
|
266
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
267
|
+
checksum = "4a6531ffc7b071655e4ce2e04bd464c4830bb585a61cabb96cf808f05172615a"
|
|
268
|
+
dependencies = [
|
|
269
|
+
"proc-macro2",
|
|
270
|
+
"quote",
|
|
271
|
+
"unicode-ident",
|
|
272
|
+
]
|
|
273
|
+
|
|
274
|
+
[[package]]
|
|
275
|
+
name = "target-lexicon"
|
|
276
|
+
version = "0.12.14"
|
|
277
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
278
|
+
checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f"
|
|
279
|
+
|
|
280
|
+
[[package]]
|
|
281
|
+
name = "unicode-ident"
|
|
282
|
+
version = "1.0.12"
|
|
283
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
284
|
+
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
|
|
285
|
+
|
|
286
|
+
[[package]]
|
|
287
|
+
name = "unindent"
|
|
288
|
+
version = "0.2.3"
|
|
289
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
290
|
+
checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
|
|
291
|
+
|
|
292
|
+
[[package]]
|
|
293
|
+
name = "windows-targets"
|
|
294
|
+
version = "0.48.5"
|
|
295
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
296
|
+
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
|
|
297
|
+
dependencies = [
|
|
298
|
+
"windows_aarch64_gnullvm",
|
|
299
|
+
"windows_aarch64_msvc",
|
|
300
|
+
"windows_i686_gnu",
|
|
301
|
+
"windows_i686_msvc",
|
|
302
|
+
"windows_x86_64_gnu",
|
|
303
|
+
"windows_x86_64_gnullvm",
|
|
304
|
+
"windows_x86_64_msvc",
|
|
305
|
+
]
|
|
306
|
+
|
|
307
|
+
[[package]]
|
|
308
|
+
name = "windows_aarch64_gnullvm"
|
|
309
|
+
version = "0.48.5"
|
|
310
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
311
|
+
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
|
|
312
|
+
|
|
313
|
+
[[package]]
|
|
314
|
+
name = "windows_aarch64_msvc"
|
|
315
|
+
version = "0.48.5"
|
|
316
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
317
|
+
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
|
|
318
|
+
|
|
319
|
+
[[package]]
|
|
320
|
+
name = "windows_i686_gnu"
|
|
321
|
+
version = "0.48.5"
|
|
322
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
323
|
+
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
|
|
324
|
+
|
|
325
|
+
[[package]]
|
|
326
|
+
name = "windows_i686_msvc"
|
|
327
|
+
version = "0.48.5"
|
|
328
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
329
|
+
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
|
|
330
|
+
|
|
331
|
+
[[package]]
|
|
332
|
+
name = "windows_x86_64_gnu"
|
|
333
|
+
version = "0.48.5"
|
|
334
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
335
|
+
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
|
|
336
|
+
|
|
337
|
+
[[package]]
|
|
338
|
+
name = "windows_x86_64_gnullvm"
|
|
339
|
+
version = "0.48.5"
|
|
340
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
341
|
+
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
|
|
342
|
+
|
|
343
|
+
[[package]]
|
|
344
|
+
name = "windows_x86_64_msvc"
|
|
345
|
+
version = "0.48.5"
|
|
346
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
347
|
+
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "pyobs-allsky-cloudcover"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
|
|
6
|
+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
7
|
+
[lib]
|
|
8
|
+
name = "cloudmap_rs"
|
|
9
|
+
crate-type = ["cdylib"]
|
|
10
|
+
|
|
11
|
+
[dependencies]
|
|
12
|
+
pyo3 = "0.20.0"
|
|
13
|
+
ball-tree = "0.5.0"
|
|
14
|
+
rayon = "1.10.0"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: pyobs-allsky-cloudcover
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Classifier: Programming Language :: Rust
|
|
5
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
|
+
Requires-Dist: pyobs-core[full] >=1.13.4
|
|
8
|
+
Requires-Dist: influxdb-client >=1.42.0
|
|
9
|
+
Requires-Dist: opencv-python >=4.8.0.76
|
|
10
|
+
Requires-Dist: pytest >=7.4.0 ; extra == 'test'
|
|
11
|
+
Requires-Dist: pytest-cov >=4.1.0 ; extra == 'test'
|
|
12
|
+
Requires-Dist: pytest-mock >=3.11.1 ; extra == 'test'
|
|
13
|
+
Requires-Dist: pytest-asyncio >=0.21.1 ; extra == 'test'
|
|
14
|
+
Requires-Dist: pytest-aiohttp >=1.0.5 ; extra == 'test'
|
|
15
|
+
Requires-Dist: mypy >=1.9.0 ; extra == 'test'
|
|
16
|
+
Requires-Dist: testcontainers[influxdb] >=4.7.1 ; extra == 'test'
|
|
17
|
+
Requires-Dist: matplotlib ; extra == 'test'
|
|
18
|
+
Provides-Extra: test
|
|
19
|
+
Requires-Python: >=3.11
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# pyobs allsky cloudcover
|
|
2
|
+
[](https://github.com/pyobs/pyobs-allsky-cloudcover/actions/workflows/build.yml)
|
|
3
|
+
[](https://github.com/pyobs/pyobs-allsky-cloudcover/actions/workflows/tests.yaml)
|
|
4
|
+
|
|
5
|
+
This module analyzes Allsky images for cloud cover and writes the (zenith) cloud fraction and cloud change into an Influx DB.
|
|
6
|
+
It also includes a web service to query celestial positions for the limiting magnitude, which is calculated in an intermediate step.
|
|
7
|
+
|
|
8
|
+
Best paired with: [pyobs-allsky](https://gitlab.gwdg.de/iag/k.schimpf/pyobs-allsky)
|
|
9
|
+
## How does it work?
|
|
10
|
+
The module listens for a new image from the configured camera. If a new image has been captured, an image analysis pipeline is run on the image, depending on the solar altitude when the image was captured. Currently there is only a "night" pipeline, which works best after astronomical twilight (solar altitude below -18°).
|
|
11
|
+
This pipeline estimates the limiting magnitude of each pixel based on the visibility of the stars. Pixels are considered cloudy if their limiting magnitude falls below a defined threshold.
|
|
12
|
+
|
|
13
|
+
## Web Service
|
|
14
|
+
|
|
15
|
+
### Point Query
|
|
16
|
+
Returns the cloudiness value of the analyzed sky position closest to the requested position. <br>
|
|
17
|
+
**Routes**: <br>
|
|
18
|
+
`/query/point?ra={Right ascension in degree}&dec={Declination in degree}` or <br>
|
|
19
|
+
`/query/point?alt={Altitude in degree}&az={Azimuth in degree}`
|
|
20
|
+
|
|
21
|
+
**Example:** <br>
|
|
22
|
+
`/query/point?alt=90.0&az=0.0`
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
**Result:**
|
|
26
|
+
|
|
27
|
+
| Field | Type | Description |
|
|
28
|
+
|----------|-------|--------------------------------------------------|
|
|
29
|
+
| obs_time | float | Observation Unix time of the last analyzed image |
|
|
30
|
+
| value | bool | If it is cloudy at the requested point |
|
|
31
|
+
|
|
32
|
+
### Area Query
|
|
33
|
+
Returns the cloud fraction within the requested great circle.
|
|
34
|
+
|
|
35
|
+
**Routes**: <br>
|
|
36
|
+
`/query/area?ra={Right ascension in degree}&dec={Declination in degree}&radius={Radius in degree}` or <br>
|
|
37
|
+
`/query/area?alt={Altitude in degree}&az={Azimuth in degree}&radius={Radius in degree}`
|
|
38
|
+
|
|
39
|
+
**Example:** <br>
|
|
40
|
+
`/query/area?alt=90.0&az=0.0&radius=10.0`
|
|
41
|
+
|
|
42
|
+
**Result:**
|
|
43
|
+
|
|
44
|
+
| Field | Type | Description |
|
|
45
|
+
|----------|-------|--------------------------------------------------|
|
|
46
|
+
| obs_time | float | Observation Unix time of the last analyzed image |
|
|
47
|
+
| value | float | Cloud fraction in the requested area in percent |
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## Configuration
|
|
51
|
+
|
|
52
|
+
See [example.yaml](https://github.com/pyobs/pyobs-allsky-cloudcover/blob/main/example.yaml)
|