pygnss 0.7.0__cp312-cp312-musllinux_1_2_x86_64.whl → 1.0.0__cp312-cp312-musllinux_1_2_x86_64.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 pygnss might be problematic. Click here for more details.

pygnss/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.7.0"
1
+ __version__ = "1.0.0"
pygnss/iono/chapman.py ADDED
@@ -0,0 +1,35 @@
1
+ """
2
+ Module to compute the Chapman ionospheric model.
3
+
4
+ This module provides functions to compute the Chapman ionospheric model,
5
+ which is used to estimate the electron density in the ionosphere based on
6
+ solar zenith angle and other parameters.
7
+ """
8
+
9
+ import numpy as np
10
+
11
+ HEIGHTS_KM = np.arange(60, 1000, 10)
12
+
13
+ def compute_chapman_profile(hmF2_km: float, NmF2: float, H_km: float, zenith_angle_deg: float, heights_km: float | np.ndarray =HEIGHTS_KM) -> float | np.ndarray:
14
+ """
15
+ Compute the Chapman ionospheric model.
16
+
17
+ Parameters:
18
+ zenith_angle (float or np.ndarray): Solar zenith angle, the angle between the vertical and the direction to the Sun.
19
+ hmF2_km (float): Height of the F2 layer in kilometers.
20
+ NmF2 (float): Peak electron density at hmF2 in electrons/m^3.
21
+ H_km (float): Scale height in kilometers (typical values between 30 and 50 km).
22
+ heights_km (np.ndarray, optional): Heights at which to compute the electron density.
23
+ If None, defaults to a range from 0 to 100 km.
24
+
25
+ Returns:
26
+ float or np.ndarray: Computed electron density based on the Chapman model.
27
+ """
28
+ # Convert zenith angle from degrees to radians
29
+ zenith_angle_rad = np.radians(zenith_angle_deg)
30
+
31
+ # Include scale height
32
+ z = (heights_km - hmF2_km) / H_km
33
+
34
+ # Compute the Chapman function
35
+ return NmF2 * np.exp( 0.5 * (1 - z - np.exp(-z) / np.cos(zenith_angle_rad)))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygnss
3
- Version: 0.7.0
3
+ Version: 1.0.0
4
4
  Summary: Package with utilities and tools for GNSS data processing
5
5
  Author-email: Miquel Garcia-Fernandez <miquel@mgfernan.com>
6
6
  License: MIT
@@ -1,5 +1,5 @@
1
- pygnss/__init__.py,sha256=RaANGbRu5e-vehwXI1-Qe2ggPPfs1TQaZj072JdbLk4,22
2
- pygnss/_c_ext.cpython-312-x86_64-linux-musl.so,sha256=ctqHTTBBdSAmNdjEjiY4tm7dgr5yDsZfDqepX3tb1Lc,83816
1
+ pygnss/__init__.py,sha256=J-j-u0itpEFT6irdmWmixQqYMadNl1X91TxUmoiLHMI,22
2
+ pygnss/_c_ext.cpython-312-x86_64-linux-musl.so,sha256=DG4vxh2TrbC-g7RuCcQAvm3zUig_pO5xcVg45l0ljUw,83816
3
3
  pygnss/cl.py,sha256=ISmd2RjikUMmj3nLPN0VSjvQLG5rLizp2X2ajeBkoDE,4509
4
4
  pygnss/constants.py,sha256=1hF6K92X6E6Ofo0rAuCBCgrwln9jxio26RV2a6vyURk,133
5
5
  pygnss/decorator.py,sha256=qB-0jl2GTEHJdvmDruNll5X3RrdySssv94u9Hok5-lA,1438
@@ -27,14 +27,15 @@ pygnss/gnss/observables.py,sha256=0x0NLkTjxf8cO9F_f_Q1b-1hEeoNjWB2x-53ecUEv0M,16
27
27
  pygnss/gnss/residuals.py,sha256=8qKGNOYkrqxHGOSjIfH21K82PAqEh2068kf78j5usL8,1244
28
28
  pygnss/gnss/types.py,sha256=lmL15KRckRiTwVkYvGzF4c1BrojnQlegrYCXSz1hGaI,10377
29
29
  pygnss/iono/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
+ pygnss/iono/chapman.py,sha256=u2XTQgEkQxhazfPGNdH5hEZ5YjPvATgMz4eIF4Adsfg,1396
30
31
  pygnss/iono/gim.py,sha256=khKzClxLf46mVO6BCDk9u9DgS_50d-sbWEyoUQu7Jng,3543
31
32
  pygnss/orbit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
33
  pygnss/orbit/kepler.py,sha256=QORTgg5yBtsQXxLWSzoZ1pmh-CwPiZlFdIYqhQhv1a0,1745
33
34
  pygnss/orbit/tle.py,sha256=6CIEielPgui3DXNv46XxOGlig31ROIwjH42xLGaeE5M,5905
34
35
  pygnss/parsers/rtklib/stats.py,sha256=YV6yadxMeQMQYZvsUCaSf4ZTpK8Bbv3f2xgu0l4PekA,5449
35
- pygnss-0.7.0.dist-info/METADATA,sha256=UGioECEGQJ7eQSa5yaZTnf3aNKvXG2dsiJVrhu0sPk0,1666
36
- pygnss-0.7.0.dist-info/WHEEL,sha256=ENczIf-GYPIfQ0_PXY8w5mFbOCUfjnGClbW6hbN_vLc,112
37
- pygnss-0.7.0.dist-info/entry_points.txt,sha256=awWUCMfX3uMIAPPZqZfSUuw7Kd7defip8L7GtthKqgg,292
38
- pygnss-0.7.0.dist-info/top_level.txt,sha256=oZRSR-qOv98VW2PRRMGCVNCJmewcJjyJYmxzxfeimtg,7
39
- pygnss-0.7.0.dist-info/RECORD,,
40
- pygnss-0.7.0.dist-info/licenses/LICENSE,sha256=Wwany6RAAZ9vVHjFLA9KBJ0HE77d52s2NOUA1CPAEug,1067
36
+ pygnss-1.0.0.dist-info/METADATA,sha256=sDTBwqqNfXkPm03E0EEnHedlYv86Gwt1lc-SNlH5mOA,1666
37
+ pygnss-1.0.0.dist-info/WHEEL,sha256=AwHYJA1Do1jwgPIoLQR4DiHSeYY_vU6Ht9Vljq5Yt_M,112
38
+ pygnss-1.0.0.dist-info/entry_points.txt,sha256=awWUCMfX3uMIAPPZqZfSUuw7Kd7defip8L7GtthKqgg,292
39
+ pygnss-1.0.0.dist-info/top_level.txt,sha256=oZRSR-qOv98VW2PRRMGCVNCJmewcJjyJYmxzxfeimtg,7
40
+ pygnss-1.0.0.dist-info/RECORD,,
41
+ pygnss-1.0.0.dist-info/licenses/LICENSE,sha256=Wwany6RAAZ9vVHjFLA9KBJ0HE77d52s2NOUA1CPAEug,1067
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (77.0.3)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-musllinux_1_2_x86_64
5
5