plotastrodata 1.7.10__tar.gz → 1.7.11__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.
- {plotastrodata-1.7.10/plotastrodata.egg-info → plotastrodata-1.7.11}/PKG-INFO +1 -1
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/__init__.py +1 -1
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/other_utils.py +11 -15
- {plotastrodata-1.7.10 → plotastrodata-1.7.11/plotastrodata.egg-info}/PKG-INFO +1 -1
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/LICENSE +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/MANIFEST.in +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/README.md +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/analysis_utils.py +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/const_utils.py +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/coord_utils.py +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/ext_utils.py +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/fft_utils.py +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/fits_utils.py +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/fitting_utils.py +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/los_utils.py +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/matrix_utils.py +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata/plot_utils.py +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata.egg-info/SOURCES.txt +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata.egg-info/dependency_links.txt +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata.egg-info/not-zip-safe +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata.egg-info/requires.txt +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/plotastrodata.egg-info/top_level.txt +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/setup.cfg +0 -0
- {plotastrodata-1.7.10 → plotastrodata-1.7.11}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.11
|
|
4
4
|
Summary: plotastrodata is a tool for astronomers to create figures from FITS files and perform fundamental data analyses with ease.
|
|
5
5
|
Home-page: https://github.com/yusukeaso-astron/plotastrodata
|
|
6
6
|
Download-URL: https://github.com/yusukeaso-astron/plotastrodata
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import warnings
|
|
2
2
|
import numpy as np
|
|
3
|
-
from scipy.optimize import curve_fit
|
|
4
|
-
from scipy.special import
|
|
3
|
+
from scipy.optimize import curve_fit
|
|
4
|
+
from scipy.special import erf
|
|
5
5
|
from scipy.interpolate import RegularGridInterpolator as RGI
|
|
6
6
|
|
|
7
7
|
from plotastrodata.matrix_utils import Mrot, dot2d
|
|
@@ -108,26 +108,22 @@ def estimate_rms(data: np.ndarray, sigma: float | str | None = 'hist'
|
|
|
108
108
|
m0 + s0 * 3.5))
|
|
109
109
|
hist, hbin = hist * s0, (hbin[:-1] + hbin[1:]) / 2 / s0
|
|
110
110
|
if sigma[4:] == '-pbcor':
|
|
111
|
-
def g(x, s, R):
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
area = 2 * np.sqrt(2 * np.pi) * s * (pbcor - 1)
|
|
117
|
-
p = (exp1(y2) - exp1(y1)) / area
|
|
111
|
+
def g(x, s, c, R):
|
|
112
|
+
y2 = (x - c) / np.sqrt(2) / s
|
|
113
|
+
y1 = (x * 2**(-R**2) - c) / np.sqrt(2) / s
|
|
114
|
+
p = erf(y2) - erf(y1)
|
|
115
|
+
p = p / (2 * np.log(2) * x * R**2)
|
|
118
116
|
return p
|
|
119
|
-
popt, _ = curve_fit(g, hbin, hist, p0=[1, 1],
|
|
120
|
-
bounds=[[0.001, 0.001], [2, 2]])
|
|
121
|
-
ave = 0
|
|
122
|
-
noise = popt[0]
|
|
117
|
+
popt, _ = curve_fit(g, hbin, hist, p0=[1, 0, 1],
|
|
118
|
+
bounds=[[0.001, -2, 0.001], [2, 2, 2]])
|
|
123
119
|
else:
|
|
124
120
|
def g(x, s, c):
|
|
125
121
|
xn = (x - c) / np.sqrt(2) / s
|
|
126
122
|
return np.exp(-xn**2) / np.sqrt(2 * np.pi) / s
|
|
127
123
|
popt, _ = curve_fit(g, hbin, hist, p0=[1, 0],
|
|
128
124
|
bounds=[[0.001, -2], [2, 2]])
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
ave = popt[1]
|
|
126
|
+
noise = popt[0]
|
|
131
127
|
warning_offset(ave, noise)
|
|
132
128
|
noise = noise * s0
|
|
133
129
|
return noise
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.11
|
|
4
4
|
Summary: plotastrodata is a tool for astronomers to create figures from FITS files and perform fundamental data analyses with ease.
|
|
5
5
|
Home-page: https://github.com/yusukeaso-astron/plotastrodata
|
|
6
6
|
Download-URL: https://github.com/yusukeaso-astron/plotastrodata
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|