plotastrodata 1.6.3__tar.gz → 1.6.3.post1__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.6.3 → plotastrodata-1.6.3.post1}/PKG-INFO +4 -2
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/README.md +2 -1
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/__init__.py +1 -1
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/coord_utils.py +23 -23
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata.egg-info/PKG-INFO +4 -2
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/setup.cfg +2 -2
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/LICENSE +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/analysis_utils.py +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/const_utils.py +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/ext_utils.py +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/fft_utils.py +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/fits_utils.py +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/fitting_utils.py +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/los_utils.py +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/matrix_utils.py +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/other_utils.py +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata/plot_utils.py +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata.egg-info/SOURCES.txt +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata.egg-info/dependency_links.txt +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata.egg-info/not-zip-safe +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata.egg-info/requires.txt +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata.egg-info/top_level.txt +0 -0
- {plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.6.3
|
|
3
|
+
Version: 1.6.3.post1
|
|
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
|
|
@@ -9,6 +9,7 @@ License: GNU General Public License Version 3
|
|
|
9
9
|
Keywords: astronomy,FITS,plot
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
12
13
|
License-File: LICENSE
|
|
13
14
|
Requires-Dist: astropy
|
|
14
15
|
Requires-Dist: corner
|
|
@@ -28,6 +29,8 @@ Dynamic: license-file
|
|
|
28
29
|
|
|
29
30
|
# plotastrodata
|
|
30
31
|
Python package to make figures from radio astronomical data by astropy and matplotlib.
|
|
32
|
+
The API, examples, and gallery are available in [readthedocs](https://plotastrodata.readthedocs.io/en/latest/).
|
|
33
|
+
The PDF manual is available [here](https://github.com/yusukeaso-astron/plotastrodata/blob/main/plotastrodata_manual.pdf).
|
|
31
34
|
|
|
32
35
|
|
|
33
36
|
## Demo and Usage
|
|
@@ -58,7 +61,6 @@ Or directly in your script,
|
|
|
58
61
|
import sys
|
|
59
62
|
sys.path.append( "/YOUR_PATH_TO/plotastrodata" )
|
|
60
63
|
```
|
|
61
|
-
The Sphinx html document is available from docs/_build/index.html or [readthedocs](https://plotastrodata.readthedocs.io/en/latest/).
|
|
62
64
|
|
|
63
65
|
## Features
|
|
64
66
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# plotastrodata
|
|
2
2
|
Python package to make figures from radio astronomical data by astropy and matplotlib.
|
|
3
|
+
The API, examples, and gallery are available in [readthedocs](https://plotastrodata.readthedocs.io/en/latest/).
|
|
4
|
+
The PDF manual is available [here](https://github.com/yusukeaso-astron/plotastrodata/blob/main/plotastrodata_manual.pdf).
|
|
3
5
|
|
|
4
6
|
|
|
5
7
|
## Demo and Usage
|
|
@@ -30,7 +32,6 @@ Or directly in your script,
|
|
|
30
32
|
import sys
|
|
31
33
|
sys.path.append( "/YOUR_PATH_TO/plotastrodata" )
|
|
32
34
|
```
|
|
33
|
-
The Sphinx html document is available from docs/_build/index.html or [readthedocs](https://plotastrodata.readthedocs.io/en/latest/).
|
|
34
35
|
|
|
35
36
|
## Features
|
|
36
37
|
|
|
@@ -3,6 +3,29 @@ from astropy.coordinates import SkyCoord, FK5, FK4
|
|
|
3
3
|
from astropy import units
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
def _updateframe(frame: str) -> str:
|
|
7
|
+
"""Internal function to str frame to astropy frame.
|
|
8
|
+
|
|
9
|
+
Args:
|
|
10
|
+
frame (str): This should be one of 'J2000', 'B1950', 'FK5', 'FK4', and 'ICRS'.
|
|
11
|
+
|
|
12
|
+
Returns:
|
|
13
|
+
str: frame as is, FK5(equinox='J2000'), FK4(equinox='B1950'), or 'icrs'.
|
|
14
|
+
"""
|
|
15
|
+
if 'ICRS' in frame:
|
|
16
|
+
a = 'icrs'
|
|
17
|
+
elif 'J2000' in frame or 'FK5' in frame:
|
|
18
|
+
a = FK5(equinox='J2000')
|
|
19
|
+
elif 'B1950' in frame or 'FK4' in frame:
|
|
20
|
+
a = FK4(equinox='B1950')
|
|
21
|
+
elif type(frame) is str:
|
|
22
|
+
print(f'Unknown frame ({frame}) was found. Use ICRS instead.')
|
|
23
|
+
a = 'icrs'
|
|
24
|
+
else:
|
|
25
|
+
a = frame
|
|
26
|
+
return a
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
def _getframe(coord: str) -> tuple:
|
|
7
30
|
"""Internal function to pick up the frame name from the coordinates. When coord is a list, frame and framename are picked up from the first element.
|
|
8
31
|
|
|
@@ -30,29 +53,6 @@ def _getframe(coord: str) -> tuple:
|
|
|
30
53
|
return hmsdms, frame, framename
|
|
31
54
|
|
|
32
55
|
|
|
33
|
-
def _updateframe(frame: str) -> str:
|
|
34
|
-
"""Internal function to str frame to astropy frame.
|
|
35
|
-
|
|
36
|
-
Args:
|
|
37
|
-
frame (str): _description_
|
|
38
|
-
|
|
39
|
-
Returns:
|
|
40
|
-
str: frame as is, FK5(equinox='J2000'), FK4(equinox='B1950'), or 'icrs'.
|
|
41
|
-
"""
|
|
42
|
-
if 'ICRS' in frame:
|
|
43
|
-
a = 'icrs'
|
|
44
|
-
elif 'J2000' in frame or 'FK5' in frame:
|
|
45
|
-
a = FK5(equinox='J2000')
|
|
46
|
-
elif 'B1950' in frame or 'FK4' in frame:
|
|
47
|
-
a = FK4(equinox='B1950')
|
|
48
|
-
elif type(frame) is str:
|
|
49
|
-
print(f'Unknown frame ({frame}) was found. Use ICRS instead.')
|
|
50
|
-
a = 'icrs'
|
|
51
|
-
else:
|
|
52
|
-
a = frame
|
|
53
|
-
return a
|
|
54
|
-
|
|
55
|
-
|
|
56
56
|
def coord2xy(coords: str | list, coordorg: str = '00h00m00s 00d00m00s',
|
|
57
57
|
frame: str | None = None, frameorg: str | None = None,
|
|
58
58
|
) -> np.ndarray:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.6.3
|
|
3
|
+
Version: 1.6.3.post1
|
|
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
|
|
@@ -9,6 +9,7 @@ License: GNU General Public License Version 3
|
|
|
9
9
|
Keywords: astronomy,FITS,plot
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
12
13
|
License-File: LICENSE
|
|
13
14
|
Requires-Dist: astropy
|
|
14
15
|
Requires-Dist: corner
|
|
@@ -28,6 +29,8 @@ Dynamic: license-file
|
|
|
28
29
|
|
|
29
30
|
# plotastrodata
|
|
30
31
|
Python package to make figures from radio astronomical data by astropy and matplotlib.
|
|
32
|
+
The API, examples, and gallery are available in [readthedocs](https://plotastrodata.readthedocs.io/en/latest/).
|
|
33
|
+
The PDF manual is available [here](https://github.com/yusukeaso-astron/plotastrodata/blob/main/plotastrodata_manual.pdf).
|
|
31
34
|
|
|
32
35
|
|
|
33
36
|
## Demo and Usage
|
|
@@ -58,7 +61,6 @@ Or directly in your script,
|
|
|
58
61
|
import sys
|
|
59
62
|
sys.path.append( "/YOUR_PATH_TO/plotastrodata" )
|
|
60
63
|
```
|
|
61
|
-
The Sphinx html document is available from docs/_build/index.html or [readthedocs](https://plotastrodata.readthedocs.io/en/latest/).
|
|
62
64
|
|
|
63
65
|
## Features
|
|
64
66
|
|
|
@@ -4,6 +4,7 @@ author = yusukeaso-astron
|
|
|
4
4
|
version = attr: plotastrodata.__version__
|
|
5
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
|
+
long_description_content_type = text/markdown
|
|
7
8
|
keywords = astronomy, FITS, plot
|
|
8
9
|
license = GNU General Public License Version 3
|
|
9
10
|
url = https://github.com/yusukeaso-astron/plotastrodata
|
|
@@ -11,9 +12,8 @@ download_url = https://github.com/yusukeaso-astron/plotastrodata
|
|
|
11
12
|
classifiers = Programming Language :: Python :: 3
|
|
12
13
|
|
|
13
14
|
[options]
|
|
14
|
-
packages =
|
|
15
|
+
packages = find:
|
|
15
16
|
zip_safe = False
|
|
16
|
-
include_packge_data = True
|
|
17
17
|
python_requires = >=3.10
|
|
18
18
|
install_requires =
|
|
19
19
|
astropy
|
|
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
|
{plotastrodata-1.6.3 → plotastrodata-1.6.3.post1}/plotastrodata.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|