ctao-calibpipe 0.1.0rc7__py3-none-any.whl
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.
Potentially problematic release.
This version of ctao-calibpipe might be problematic. Click here for more details.
- calibpipe/__init__.py +5 -0
- calibpipe/_dev_version/__init__.py +9 -0
- calibpipe/_version.py +21 -0
- calibpipe/atmosphere/__init__.py +1 -0
- calibpipe/atmosphere/atmosphere_containers.py +109 -0
- calibpipe/atmosphere/meteo_data_handlers.py +485 -0
- calibpipe/atmosphere/models/README.md +14 -0
- calibpipe/atmosphere/models/__init__.py +1 -0
- calibpipe/atmosphere/models/macobac.ecsv +23 -0
- calibpipe/atmosphere/models/reference_MDPs/__init__.py +1 -0
- calibpipe/atmosphere/models/reference_MDPs/ref_density_at_15km_ctao-north_intermediate.ecsv +8 -0
- calibpipe/atmosphere/models/reference_MDPs/ref_density_at_15km_ctao-north_summer.ecsv +8 -0
- calibpipe/atmosphere/models/reference_MDPs/ref_density_at_15km_ctao-north_winter.ecsv +8 -0
- calibpipe/atmosphere/models/reference_MDPs/ref_density_at_15km_ctao-south_summer.ecsv +8 -0
- calibpipe/atmosphere/models/reference_MDPs/ref_density_at_15km_ctao-south_winter.ecsv +8 -0
- calibpipe/atmosphere/models/reference_atmospheres/__init__.py +1 -0
- calibpipe/atmosphere/models/reference_atmospheres/reference_atmo_model_v0_ctao-north_intermediate.ecsv +73 -0
- calibpipe/atmosphere/models/reference_atmospheres/reference_atmo_model_v0_ctao-north_summer.ecsv +73 -0
- calibpipe/atmosphere/models/reference_atmospheres/reference_atmo_model_v0_ctao-north_winter.ecsv +73 -0
- calibpipe/atmosphere/models/reference_atmospheres/reference_atmo_model_v0_ctao-south_summer.ecsv +73 -0
- calibpipe/atmosphere/models/reference_atmospheres/reference_atmo_model_v0_ctao-south_winter.ecsv +73 -0
- calibpipe/atmosphere/models/reference_rayleigh_scattering_profiles/__init__.py +1 -0
- calibpipe/atmosphere/models/reference_rayleigh_scattering_profiles/reference_rayleigh_extinction_profile_v0_ctao-north_intermediate.ecsv +857 -0
- calibpipe/atmosphere/models/reference_rayleigh_scattering_profiles/reference_rayleigh_extinction_profile_v0_ctao-north_summer.ecsv +857 -0
- calibpipe/atmosphere/models/reference_rayleigh_scattering_profiles/reference_rayleigh_extinction_profile_v0_ctao-north_winter.ecsv +857 -0
- calibpipe/atmosphere/models/reference_rayleigh_scattering_profiles/reference_rayleigh_extinction_profile_v0_ctao-south_summer.ecsv +857 -0
- calibpipe/atmosphere/models/reference_rayleigh_scattering_profiles/reference_rayleigh_extinction_profile_v0_ctao-south_winter.ecsv +857 -0
- calibpipe/atmosphere/templates/request_templates/__init__.py +1 -0
- calibpipe/atmosphere/templates/request_templates/copernicus.json +11 -0
- calibpipe/atmosphere/templates/request_templates/gdas.json +12 -0
- calibpipe/core/__init__.py +39 -0
- calibpipe/core/common_metadata_containers.py +195 -0
- calibpipe/core/exceptions.py +87 -0
- calibpipe/database/__init__.py +24 -0
- calibpipe/database/adapter/__init__.py +23 -0
- calibpipe/database/adapter/adapter.py +80 -0
- calibpipe/database/adapter/database_containers/__init__.py +61 -0
- calibpipe/database/adapter/database_containers/atmosphere.py +199 -0
- calibpipe/database/adapter/database_containers/common_metadata.py +148 -0
- calibpipe/database/adapter/database_containers/container_map.py +59 -0
- calibpipe/database/adapter/database_containers/observatory.py +61 -0
- calibpipe/database/adapter/database_containers/table_version_manager.py +39 -0
- calibpipe/database/adapter/database_containers/version_control.py +17 -0
- calibpipe/database/connections/__init__.py +28 -0
- calibpipe/database/connections/calibpipe_database.py +60 -0
- calibpipe/database/connections/postgres_utils.py +97 -0
- calibpipe/database/connections/sql_connection.py +103 -0
- calibpipe/database/connections/user_confirmation.py +19 -0
- calibpipe/database/interfaces/__init__.py +71 -0
- calibpipe/database/interfaces/hashable_row_data.py +54 -0
- calibpipe/database/interfaces/queries.py +180 -0
- calibpipe/database/interfaces/sql_column_info.py +67 -0
- calibpipe/database/interfaces/sql_metadata.py +6 -0
- calibpipe/database/interfaces/sql_table_info.py +131 -0
- calibpipe/database/interfaces/table_handler.py +351 -0
- calibpipe/database/interfaces/types.py +96 -0
- calibpipe/tests/data/atmosphere/molecular_atmosphere/__init__.py +0 -0
- calibpipe/tests/data/atmosphere/molecular_atmosphere/contemporary_MDP.ecsv +34 -0
- calibpipe/tests/data/atmosphere/molecular_atmosphere/macobac.csv +852 -0
- calibpipe/tests/data/atmosphere/molecular_atmosphere/macobac.ecsv +23 -0
- calibpipe/tests/data/atmosphere/molecular_atmosphere/merged_file.ecsv +1082 -0
- calibpipe/tests/data/atmosphere/molecular_atmosphere/meteo_data_copernicus.ecsv +1082 -0
- calibpipe/tests/data/atmosphere/molecular_atmosphere/meteo_data_gdas.ecsv +66 -0
- calibpipe/tests/data/atmosphere/molecular_atmosphere/observatory_configurations.json +71 -0
- calibpipe/tests/data/utils/__init__.py +0 -0
- calibpipe/tests/data/utils/meteo_data_winter_and_summer.ecsv +12992 -0
- calibpipe/tests/unittests/atmosphere/astral_testing.py +107 -0
- calibpipe/tests/unittests/atmosphere/test_meteo_data_handler.py +775 -0
- calibpipe/tests/unittests/atmosphere/test_molecular_atmosphere.py +327 -0
- calibpipe/tests/unittests/database/test_table_handler.py +66 -0
- calibpipe/tests/unittests/database/test_types.py +38 -0
- calibpipe/tests/unittests/test_bootstrap_db.py +79 -0
- calibpipe/tests/unittests/utils/test_observatory.py +309 -0
- calibpipe/tools/atmospheric_base_tool.py +78 -0
- calibpipe/tools/atmospheric_model_db_loader.py +181 -0
- calibpipe/tools/basic_tool_with_db.py +38 -0
- calibpipe/tools/contemporary_mdp_producer.py +87 -0
- calibpipe/tools/init_db.py +37 -0
- calibpipe/tools/macobac_calculator.py +82 -0
- calibpipe/tools/molecular_atmospheric_model_producer.py +197 -0
- calibpipe/tools/observatory_data_db_loader.py +71 -0
- calibpipe/tools/reference_atmospheric_model_selector.py +201 -0
- calibpipe/utils/__init__.py +10 -0
- calibpipe/utils/observatory.py +486 -0
- calibpipe/utils/observatory_containers.py +26 -0
- calibpipe/version.py +24 -0
- ctao_calibpipe-0.1.0rc7.dist-info/METADATA +86 -0
- ctao_calibpipe-0.1.0rc7.dist-info/RECORD +93 -0
- ctao_calibpipe-0.1.0rc7.dist-info/WHEEL +5 -0
- ctao_calibpipe-0.1.0rc7.dist-info/entry_points.txt +8 -0
- ctao_calibpipe-0.1.0rc7.dist-info/licenses/AUTHORS.md +13 -0
- ctao_calibpipe-0.1.0rc7.dist-info/licenses/LICENSE +21 -0
- ctao_calibpipe-0.1.0rc7.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# %ECSV 1.0
|
|
2
|
+
# ---
|
|
3
|
+
# datatype:
|
|
4
|
+
# - {name: Latitude, unit: deg, datatype: float64}
|
|
5
|
+
# - {name: Longitude, unit: deg, datatype: float64}
|
|
6
|
+
# - {name: Timestamp.year, datatype: int32}
|
|
7
|
+
# - {name: Timestamp.month, datatype: int32}
|
|
8
|
+
# - {name: Timestamp.day, datatype: int32}
|
|
9
|
+
# - {name: Timestamp.hour, datatype: int32}
|
|
10
|
+
# - {name: Timestamp.minute, datatype: int32}
|
|
11
|
+
# - {name: Timestamp.second, datatype: float64}
|
|
12
|
+
# - {name: Pressure, unit: hPa, datatype: float64}
|
|
13
|
+
# - {name: V component of wind, unit: m / s, datatype: float64}
|
|
14
|
+
# - {name: Geopotential Height, unit: gpm, datatype: float64}
|
|
15
|
+
# - {name: Temperature, unit: K, datatype: float64}
|
|
16
|
+
# - {name: Relative humidity, unit: '%', datatype: float64}
|
|
17
|
+
# - {name: Total Cloud Cover, unit: '%', datatype: float64}
|
|
18
|
+
# - {name: U component of wind, unit: m / s, datatype: float64}
|
|
19
|
+
# - {name: Altitude, unit: m, datatype: float64}
|
|
20
|
+
# - {name: Density, unit: 1 / cm3, datatype: float64}
|
|
21
|
+
# - {name: Exponential Density, unit: '', datatype: float64}
|
|
22
|
+
# - {name: Wind Speed, unit: m / s, datatype: float64}
|
|
23
|
+
# - {name: Wind Direction, unit: rad, datatype: float64}
|
|
24
|
+
# meta: !!omap
|
|
25
|
+
# - __serialized_columns__:
|
|
26
|
+
# Timestamp:
|
|
27
|
+
# __class__: astropy.time.core.Time
|
|
28
|
+
# format: ymdhms
|
|
29
|
+
# in_subfmt: '*'
|
|
30
|
+
# out_subfmt: '*'
|
|
31
|
+
# precision: 3
|
|
32
|
+
# scale: utc
|
|
33
|
+
# value: !astropy.table.SerializedColumn
|
|
34
|
+
# __class__: astropy.table.column.Column
|
|
35
|
+
# data: !astropy.table.SerializedColumn
|
|
36
|
+
# day: !astropy.table.SerializedColumn {name: Timestamp.day}
|
|
37
|
+
# hour: !astropy.table.SerializedColumn {name: Timestamp.hour}
|
|
38
|
+
# minute: !astropy.table.SerializedColumn {name: Timestamp.minute}
|
|
39
|
+
# month: !astropy.table.SerializedColumn {name: Timestamp.month}
|
|
40
|
+
# second: !astropy.table.SerializedColumn {name: Timestamp.second}
|
|
41
|
+
# year: !astropy.table.SerializedColumn {name: Timestamp.year}
|
|
42
|
+
# schema: astropy-2.0
|
|
43
|
+
Latitude Longitude Timestamp.year Timestamp.month Timestamp.day Timestamp.hour Timestamp.minute Timestamp.second Pressure "V component of wind" "Geopotential Height" Temperature "Relative humidity" "Total Cloud Cover" "U component of wind" Altitude Density "Exponential Density" "Wind Speed" "Wind Direction"
|
|
44
|
+
29.0 -18.0 2023 7 10 0 0 0.0 20.0 -0.34 26744.190000000002 221.92000000000002 0.2 "" -20.79 26896.73352135424 6.527506099783492e+17 0.025701895484736767 20.792779996912387 0.016352558606386774
|
|
45
|
+
29.0 -18.0 2023 7 10 0 0 0.0 50.0 -3.99 20902.850000000002 213.27 1.2000000000000002 100.0 -13.23 21002.43172643879 1.6980636677263004e+18 0.066819370126472 13.818574456144164 0.29291239752552334
|
|
46
|
+
29.0 -18.0 2023 7 10 0 0 0.0 100.0 8.76 16682.18 204.48000000000002 12.700000000000001 100.0 0.87 16750.32655347717 3.5421169641626373e+18 0.13932110800609834 8.803096046278265 4.6133985237881925
|
|
47
|
+
29.0 -18.0 2023 7 10 0 0 0.0 150.0 10.44 14233.460000000001 210.98000000000002 12.3 100.0 15.14 14285.996166523593 5.149483909602637e+18 0.20249069447263318 18.390573672400762 3.7452802452529825
|
|
48
|
+
29.0 -18.0 2023 7 10 0 0 0.0 200.0 8.0 12418.03 219.83 19.8 100.0 12.9 12460.238391292041 6.589565362616351e+18 0.2590685352535051 15.17926216915697 3.696700363010778
|
|
49
|
+
29.0 -18.0 2023 7 10 0 0 0.0 250.0 5.9 10954.58 228.79 17.6 100.0 8.1 10989.234985193742 7.914376467852358e+18 0.31110526218765455 10.020977996183806 3.771122615588919
|
|
50
|
+
29.0 -18.0 2023 7 10 0 0 0.0 300.0 4.3 9710.960000000001 238.23000000000002 16.2 100.0 4.800000000000001 9739.737827288503 9.120917728648486e+18 0.3584858925706872 6.444377394287209 3.8721009543930873
|
|
51
|
+
29.0 -18.0 2023 7 10 0 0 0.0 350.0 4.7 8617.3 246.34 9.1 100.0 6.7 8641.320605661853 1.029074559110139e+19 0.40441770335155214 8.18413098624405 3.7533196186456674
|
|
52
|
+
29.0 -18.0 2023 7 10 0 0 0.0 400.0 4.4 7640.1900000000005 253.75 7.2 100.0 7.9 7660.285881766605 1.1417412048582875e+19 0.4486484208654178 9.042676594902641 3.649765271425123
|
|
53
|
+
29.0 -18.0 2023 7 10 0 0 0.0 450.0 4.94 6754.26 260.02 7.9 100.0 9.0 6771.062939030003 1.2534860186692921e+19 0.49251256178731484 10.266625541043172 3.6435824039413958
|
|
54
|
+
29.0 -18.0 2023 7 10 0 0 0.0 500.0 7.83 5943.28 266.03000000000003 8.5 100.0 9.53 5957.289981635525 1.3612977424199832e+19 0.5348275126003231 12.33409096772032 3.8293757839707943
|
|
55
|
+
29.0 -18.0 2023 7 10 0 0 0.0 550.0 6.24 5192.650000000001 271.92 7.5 100.0 8.56 5204.263451365906 1.464992064789596e+19 0.5755213820859726 10.59297880673798 3.771499433718646
|
|
56
|
+
29.0 -18.0 2023 7 10 0 0 0.0 600.0 5.48 4493.22 277.16 11.200000000000001 100.0 6.53 4502.763557260965 1.5679580246037875e+19 0.6159260236992511 8.524746330536763 3.8397854068832875
|
|
57
|
+
29.0 -18.0 2023 7 10 0 0 0.0 650.0 3.5700000000000003 3837.59 281.77 15.200000000000001 100.0 4.96 3845.3362165643607 1.6708302869034482e+19 0.6562909363518287 6.111178282459121 3.765456352483122
|
|
58
|
+
29.0 -18.0 2023 7 10 0 0 0.0 700.0 2.14 3222.036 284.90000000000003 24.3 100.0 3.09 3228.220628366412 1.7795874123635778e+19 0.6989646002929445 3.758683280086259 3.747305582379108
|
|
59
|
+
29.0 -18.0 2023 7 10 0 0 0.0 750.0 1.46 2642.746 287.64 26.3 100.0 1.6300000000000001 2647.572394860044 1.888537955861432e+19 0.7417115281405761 2.188264152244879 3.8720300424658203
|
|
60
|
+
29.0 -18.0 2023 7 10 0 0 0.0 800.0 -0.24 2095.642 290.02 32.6 100.0 -0.24 2099.2847714167046 1.9979093216522342e+19 0.7846211660265835 0.33941125496954283 0.7853981633974483
|
|
61
|
+
29.0 -18.0 2023 7 10 0 0 0.0 850.0 -2.19 1577.8500000000001 291.26 41.6 100.0 -3.0 1580.461272747416 2.11374121165687e+19 0.830065460813609 3.7143101647546883 0.6305777572149348
|
|
62
|
+
29.0 -18.0 2023 7 10 0 0 0.0 900.0 -5.13 1088.489 291.24 49.2 100.0 -5.16 1090.2047049342898 2.2382326230901617e+19 0.8789078380419366 7.2761597013809425 0.7824827197626731
|
|
63
|
+
29.0 -18.0 2023 7 10 0 0 0.0 925.0 -6.09 853.82 291.14 60.300000000000004 100.0 -5.84 855.1335780979898 2.3011958888149275e+19 0.9036098557990451 8.437635924831078 0.8063506709385121
|
|
64
|
+
29.0 -18.0 2023 7 10 0 0 0.0 950.0 -5.72 625.725 290.19 96.0 100.0 -6.34 626.6646983150741 2.3711274440551965e+19 0.9310474659327563 8.538969492860364 0.7340337641358586
|
|
65
|
+
29.0 -18.0 2023 7 10 0 0 0.0 975.0 -5.49 402.741 292.03000000000003 90.5 100.0 -6.36 403.33137837038873 2.4181925655281197e+19 0.9495057457452701 8.401767671151113 0.7121119280341688
|
|
66
|
+
29.0 -18.0 2023 7 10 0 0 0.0 1000.0 -5.25 183.899 294.13 81.7 100.0 -6.41 184.16210297794294 2.4624896366639796e+19 0.9668767287911388 8.285565762215638 0.6862390217317615
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"north_site": {
|
|
3
|
+
"name": "CTAO-North",
|
|
4
|
+
"latitude": 28.761795,
|
|
5
|
+
"longitude": -17.890701,
|
|
6
|
+
"elevation": 2150,
|
|
7
|
+
"seasons": [
|
|
8
|
+
{
|
|
9
|
+
"Season": {
|
|
10
|
+
"name": "spring",
|
|
11
|
+
"start_month": 5,
|
|
12
|
+
"start_day": 1,
|
|
13
|
+
"stop_month": 6,
|
|
14
|
+
"stop_day": 20
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"Season": {
|
|
19
|
+
"name": "summer",
|
|
20
|
+
"start_month": 6,
|
|
21
|
+
"start_day": 21,
|
|
22
|
+
"stop_month": 10,
|
|
23
|
+
"stop_day": 4
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"Season": {
|
|
28
|
+
"name": "winter",
|
|
29
|
+
"start_month": 11,
|
|
30
|
+
"start_day": 16,
|
|
31
|
+
"stop_month": 4
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"Season": {
|
|
36
|
+
"name": "fall",
|
|
37
|
+
"start_month": 10,
|
|
38
|
+
"start_day": 5,
|
|
39
|
+
"stop_month": 11,
|
|
40
|
+
"stop_day": 15
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"south_site": {
|
|
46
|
+
"name": "CTAO-South",
|
|
47
|
+
"latitude": -24.6272,
|
|
48
|
+
"longitude": -70.4039,
|
|
49
|
+
"elevation": 2200,
|
|
50
|
+
"seasons": [
|
|
51
|
+
{
|
|
52
|
+
"Season": {
|
|
53
|
+
"name": "summer",
|
|
54
|
+
"start_month": 11,
|
|
55
|
+
"start_day": 1,
|
|
56
|
+
"stop_month": 5,
|
|
57
|
+
"stop_day": 1
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"Season": {
|
|
62
|
+
"name": "winter",
|
|
63
|
+
"start_month": 5,
|
|
64
|
+
"start_day": 2,
|
|
65
|
+
"stop_month": 10,
|
|
66
|
+
"stop_day": 31
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
File without changes
|