gkutils 0.3.3__tar.gz → 0.3.4__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.
- {gkutils-0.3.3 → gkutils-0.3.4}/PKG-INFO +4 -1
- gkutils-0.3.4/gkutils/__version__.py +1 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils/commonutils/generalutils.py +8 -1
- gkutils-0.3.4/gkutils/commonutils/generalutils_backup.py +3267 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils.egg-info/PKG-INFO +4 -1
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils.egg-info/SOURCES.txt +1 -0
- gkutils-0.3.3/gkutils/__version__.py +0 -1
- {gkutils-0.3.3 → gkutils-0.3.4}/LICENSE +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/README.md +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils/__init__.py +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils/commonutils/__init__.py +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils/commonutils/bruteForceConeSearchATLAS.py +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils/commonutils/coneSearchCassandra.py +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils/commonutils/far.py +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils/commonutils/getCSVColumnSubset.py +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils/commonutils/getTestSherlockData.py +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils/commonutils/mputils.py +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils/commonutils/test.py +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils/commonutils/testReadGenericDataFile.py +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils.egg-info/dependency_links.txt +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils.egg-info/entry_points.txt +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils.egg-info/requires.txt +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/gkutils.egg-info/top_level.txt +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/setup.cfg +0 -0
- {gkutils-0.3.3 → gkutils-0.3.4}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gkutils
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: A collection useful utilities - mostly related to astronomy
|
|
5
5
|
Home-page: https://github.com/genghisken/gkutils
|
|
6
6
|
Author: genghisken
|
|
@@ -13,6 +13,9 @@ Classifier: Topic :: Utilities
|
|
|
13
13
|
Requires-Python: >=3.6
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
|
+
Requires-Dist: pyyaml
|
|
17
|
+
Requires-Dist: docopt
|
|
18
|
+
Requires-Dist: numpy
|
|
16
19
|
|
|
17
20
|
# gkutils Package #
|
|
18
21
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.3.4'
|
|
@@ -1517,7 +1517,7 @@ def readGenericDataFile(filename, delimiter = ' ', skipLines = 0, fieldnames = N
|
|
|
1517
1517
|
# Sometimes the file has a very annoying initial # character on the first line.
|
|
1518
1518
|
# We need to delete this character or replace it with a space.
|
|
1519
1519
|
|
|
1520
|
-
if type(filename).__name__ == 'file' or type(filename).__name__ == 'instance' or type(filename).__name__ == 'GzipFile' or type(filename).__name__ == 'StringIO':
|
|
1520
|
+
if type(filename).__name__ == 'file' or type(filename).__name__ == 'instance' or type(filename).__name__ == 'GzipFile' or type(filename).__name__ == 'StringIO' or type(filename).__name__ == 'TextIOWrapper':
|
|
1521
1521
|
f = filename
|
|
1522
1522
|
else:
|
|
1523
1523
|
f = open(filename)
|
|
@@ -3028,6 +3028,13 @@ def fluxToMicroJansky(adu, exptime, zp):
|
|
|
3028
3028
|
uJy = adu/exptime*factor
|
|
3029
3029
|
return uJy
|
|
3030
3030
|
|
|
3031
|
+
|
|
3032
|
+
def microJanskyToABMag(flux):
|
|
3033
|
+
#mag = -2.5 * math.log10(flux/1000000) +8.9
|
|
3034
|
+
mag = -2.5 * math.log10(flux) + 23.9
|
|
3035
|
+
return mag
|
|
3036
|
+
|
|
3037
|
+
|
|
3031
3038
|
# 2021-11-18 KWS Added code to grab the SFD extinction for PS1 and ATLAS filters.
|
|
3032
3039
|
def getSFDPanSTARRSATLASExtinction(ra, dec, dustmapDirectory, download = False):
|
|
3033
3040
|
"""getPanSTARRSATLASExtinction.
|