plotastrodata 1.9.4__tar.gz → 1.9.5__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.9.4/plotastrodata.egg-info → plotastrodata-1.9.5}/PKG-INFO +1 -1
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/__init__.py +1 -1
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/fits_utils.py +8 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5/plotastrodata.egg-info}/PKG-INFO +1 -1
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/LICENSE +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/MANIFEST.in +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/README.md +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/analysis_utils.py +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/const_utils.py +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/coord_utils.py +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/ext_utils.py +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/fft_utils.py +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/fitting_utils.py +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/los_utils.py +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/matrix_utils.py +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/noise_utils.py +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/other_utils.py +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata/plot_utils.py +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata.egg-info/SOURCES.txt +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata.egg-info/dependency_links.txt +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata.egg-info/not-zip-safe +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata.egg-info/requires.txt +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/plotastrodata.egg-info/top_level.txt +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/setup.cfg +0 -0
- {plotastrodata-1.9.4 → plotastrodata-1.9.5}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.5
|
|
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
|
|
@@ -422,6 +422,14 @@ def data2fits(d: np.ndarray, h: dict = {},
|
|
|
422
422
|
for k, v in defaults.items():
|
|
423
423
|
for i in range(naxis):
|
|
424
424
|
_h.setdefault(f'{k}{i+1:d}', v[i])
|
|
425
|
+
othernames = {'deg': ['DEG', 'Deg'], 'Hz': ['HZ', 'hz']}
|
|
426
|
+
for i in range(naxis):
|
|
427
|
+
key = f'CUNIT{i+1}'
|
|
428
|
+
old = _h[key].strip()
|
|
429
|
+
for standard, NGlist in othernames.items():
|
|
430
|
+
if old in NGlist:
|
|
431
|
+
_h[key] = standard
|
|
432
|
+
print(f'{key}={old} has been changed to {key}={standard}.')
|
|
425
433
|
w.wcs.ctype = [_h[f'CTYPE{i+1}'] for i in range(naxis)]
|
|
426
434
|
w.wcs.cunit = [_h[f'CUNIT{i+1}'] for i in range(naxis)]
|
|
427
435
|
_h.setdefault('BUNIT', 'Jy/beam')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.5
|
|
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
|
|
File without changes
|