plotastrodata 1.0.5.post1__tar.gz → 1.0.6__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.0.5.post1 → plotastrodata-1.0.6}/PKG-INFO +2 -2
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata/__init__.py +1 -1
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata/analysis_utils.py +3 -4
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata/const_utils.py +1 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata/fits_utils.py +3 -2
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata.egg-info/PKG-INFO +2 -2
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/setup.cfg +1 -1
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/LICENSE +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/README.md +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata/fft_utils.py +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata/fitting_utils.py +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata/los_utils.py +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata/other_utils.py +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata/plot_utils.py +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata.egg-info/SOURCES.txt +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata.egg-info/dependency_links.txt +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata.egg-info/not-zip-safe +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata.egg-info/requires.txt +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata.egg-info/top_level.txt +0 -0
- {plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/setup.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.0.
|
|
4
|
-
Summary: plotastrodata is a tool for astronomers to create figures from FITS files and perform
|
|
3
|
+
Version: 1.0.6
|
|
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
|
|
7
7
|
Author: yusukeaso-astron
|
|
@@ -3,11 +3,11 @@ from dataclasses import dataclass
|
|
|
3
3
|
from scipy.interpolate import RegularGridInterpolator as RGI
|
|
4
4
|
from scipy.optimize import curve_fit
|
|
5
5
|
from scipy.signal import convolve
|
|
6
|
-
from astropy import constants
|
|
7
6
|
|
|
8
7
|
from plotastrodata.other_utils import (coord2xy, rel2abs, estimate_rms, trim,
|
|
9
8
|
Mfac, Mrot, dot2d, gaussian2d)
|
|
10
9
|
from plotastrodata.fits_utils import FitsData, data2fits, Jy2K
|
|
10
|
+
from plotastrodata import const_utils as cu
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def to4dim(data: np.ndarray) -> np.ndarray:
|
|
@@ -510,11 +510,10 @@ class AstroData():
|
|
|
510
510
|
h['CRVAL2'] = cy
|
|
511
511
|
h['CDELT2'] = (self.y[1] - self.y[0]) / 3600
|
|
512
512
|
if self.v is not None:
|
|
513
|
-
clight = constants.c.to('km*s**(-1)').value
|
|
514
513
|
h['NAXIS3'] = len(self.v)
|
|
515
514
|
h['CRPIX3'] = i = np.argmin(np.abs(self.v)) + 1
|
|
516
|
-
h['CRVAL3'] = (1 - self.v[i]/
|
|
517
|
-
h['CDELT3'] = (self.v[0]-self.v[1]) /
|
|
515
|
+
h['CRVAL3'] = (1 - self.v[i]/cu.c_kms) * self.restfreq
|
|
516
|
+
h['CDELT3'] = (self.v[0]-self.v[1]) / cu.c_kms * self.restfreq
|
|
518
517
|
if None not in self.beam:
|
|
519
518
|
h['BMAJ'] = self.beam[0] / 3600
|
|
520
519
|
h['BMIN'] = self.beam[1] / 3600
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import numpy as np
|
|
2
2
|
from astropy.io import fits
|
|
3
|
-
from astropy import
|
|
3
|
+
from astropy import units, wcs
|
|
4
4
|
|
|
5
5
|
from plotastrodata.other_utils import coord2xy, xy2coord, estimate_rms, trim
|
|
6
|
+
from plotastrodata import const_utils as cu
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
def Jy2K(header=None, bmaj: float | None = None, bmin: float | None = None,
|
|
@@ -219,7 +220,7 @@ class FitsData:
|
|
|
219
220
|
if freq == 0:
|
|
220
221
|
print('v is frequency because restfreq=0.')
|
|
221
222
|
else:
|
|
222
|
-
s = (1 - s / freq) *
|
|
223
|
+
s = (1 - s / freq) * cu.c_kms - vsys
|
|
223
224
|
self.v, self.dv = s, s[1] - s[0]
|
|
224
225
|
|
|
225
226
|
if h['NAXIS'] > 0 and h['NAXIS1'] > 1:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.0.
|
|
4
|
-
Summary: plotastrodata is a tool for astronomers to create figures from FITS files and perform
|
|
3
|
+
Version: 1.0.6
|
|
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
|
|
7
7
|
Author: yusukeaso-astron
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name = plotastrodata
|
|
3
3
|
author = yusukeaso-astron
|
|
4
4
|
version = attr: plotastrodata.__version__
|
|
5
|
-
description = plotastrodata is a tool for astronomers to create figures from FITS files and perform
|
|
5
|
+
description = plotastrodata is a tool for astronomers to create figures from FITS files and perform fundamental data analyses with ease.
|
|
6
6
|
long_description = file: README.md
|
|
7
7
|
keywords = astronomy, FITS, plot
|
|
8
8
|
license = GNU General Public License Version 3
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plotastrodata-1.0.5.post1 → plotastrodata-1.0.6}/plotastrodata.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|