mwdust 1.6__cp314-cp314-macosx_11_0_arm64.whl

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.

Potentially problematic release.


This version of mwdust might be problematic. Click here for more details.

@@ -0,0 +1,265 @@
1
+ Metadata-Version: 2.4
2
+ Name: mwdust
3
+ Version: 1.6
4
+ Summary: Dust in the Milky Way
5
+ Home-page: https://github.com/jobovy/mwdust
6
+ Author: Jo Bovy
7
+ Author-email: bovy@astro.utoronto.ca
8
+ License: New BSD
9
+ Classifier: Development Status :: 6 - Mature
10
+ Classifier: Intended Audience :: Science/Research
11
+ Classifier: License :: OSI Approved :: BSD License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: C
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Scientific/Engineering :: Astronomy
16
+ Classifier: Topic :: Scientific/Engineering :: Physics
17
+ License-File: LICENSE
18
+ License-File: AUTHORS.txt
19
+ Requires-Dist: numpy
20
+ Requires-Dist: scipy
21
+ Requires-Dist: matplotlib
22
+ Requires-Dist: astropy
23
+ Requires-Dist: h5py
24
+ Requires-Dist: tqdm
25
+ Requires-Dist: requests
26
+ Requires-Dist: healpy
27
+ Dynamic: author
28
+ Dynamic: author-email
29
+ Dynamic: classifier
30
+ Dynamic: description
31
+ Dynamic: home-page
32
+ Dynamic: license
33
+ Dynamic: license-file
34
+ Dynamic: requires-dist
35
+ Dynamic: summary
36
+
37
+ mwdust
38
+ ======
39
+
40
+ **Dust in 3D in the Milky Way**
41
+
42
+
43
+
44
+
45
+
46
+ |
47
+
48
+ .. contents:: **Contents**
49
+ :depth: 3
50
+
51
+ Installation
52
+ -------------
53
+
54
+ Install the latest released version using ``pip``:
55
+
56
+ .. code-block::
57
+
58
+ pip install mwdust
59
+
60
+ To install the latest development version, clone the repository and do
61
+
62
+ .. code-block::
63
+
64
+ python setup.py install
65
+
66
+ or
67
+
68
+ .. code-block::
69
+
70
+ python setup.py install --user
71
+
72
+ Using custom implementations of necessary HEALPIx functions, basic
73
+ evaluation of extinction is available on all platforms (Linux, Mac OS,
74
+ Windows) for all dust maps. However, some HEALPIx-based features like
75
+ plotting require ``healpy``, which is unavailable on Windows.
76
+ Install on Linux/Mac OS for full functionality.
77
+
78
+ Dust Data
79
+ ---------
80
+
81
+ By default, dust maps are download when you use them for the first time.
82
+ If you define an environment variable ``DUST_DIR``, then all dust data
83
+ downloaded by the code will be downloaded to this directory. If you do not
84
+ set the ``DUST_DIR`` variable, then ``mwdust`` will download data to ``~/.mwdust``.
85
+
86
+ The code can download all of the necessary data at by running
87
+
88
+ .. code-block:: python
89
+
90
+ from mwdust import download_all
91
+ download_all()
92
+
93
+ Note that some of the maps are very large (multiple GB) and some of the downloads
94
+ are slow, so this may take a while.
95
+
96
+ The data are put in subdirectories of a directory ``DUST_DIR`` or ``~/.mwdust``, with
97
+ roughly the following lay-out::
98
+
99
+ $DUST_DIR/
100
+ combined15/
101
+ dust-map-3d.h5
102
+ combined19/
103
+ combine19.h5
104
+ green15/
105
+ dust-map-3d.h5
106
+ green17/
107
+ bayestar2017.h5
108
+ green19/
109
+ bayestar2019.h5
110
+ zucker25/
111
+ decaps_mean.h5
112
+ decaps_mean_and_samples.h5
113
+ maps/
114
+ SFD_dust_4096_ngp.fits
115
+ SFD_dust_4096_sgp.fits
116
+ marshall06/
117
+ ReadMe
118
+ table1.dat
119
+ sale14/
120
+ Amap.dat
121
+ ReadMe
122
+
123
+ The data for the Drimmel et al. (2003) map is installed in the code
124
+ directory, because it is not very large.
125
+
126
+ Usage
127
+ ------
128
+
129
+ All of the maps can be initialized similar to
130
+
131
+ .. code-block:: python
132
+
133
+ import mwdust
134
+ drimmel= mwdust.Drimmel03(filter='2MASS H')
135
+ combined= mwdust.Combined15(filter='2MASS H')
136
+ combined19= mwdust.Combined19(filter='2MASS H')
137
+ sfd= mwdust.SFD(filter='2MASS H')
138
+
139
+ which sets up the Drimmel et al. (2003) map, the combined Bovy et
140
+ al. (2016) map, an updated version of the combined map using the Green
141
+ et al. (2019) Bayestar19 map, and the SFD map for the *H*-band
142
+ filter. The maps can be evaluate for a given Galactic longitude *l*,
143
+ Galactic latitude *b*, and an array (or scalar) of distances *D*
144
+
145
+ .. code-block:: python
146
+
147
+ drimmel(60.,0.,3.) # inputs are (l,b,D)
148
+ array([ 0.38813341])
149
+ combined(30.,3.,numpy.array([1.,2.,3.,10.]))
150
+ array([ 0.22304147, 0.55687252, 0.86694602, 1.18779507])
151
+ # SFD is just the constant SFD extinction
152
+ sfd(30.,3.,numpy.array([1.,2.,3.]))
153
+ array([ 1.19977335, 1.19977335, 1.19977335])
154
+
155
+ and they can be plotted as a function of distance at a given (l,b)
156
+
157
+ .. code-block:: python
158
+
159
+ combined.plot(55.,0.5) # inputs are (l,b)
160
+
161
+ (plot not shown). Maps that are derived from the ``HierarchicalHealpixMap.py`` class (currently all Green-type maps and
162
+ the combined maps) can be vectorized to evaluate on array inputs of *l*, *b*, *D*
163
+
164
+ .. code-block:: python
165
+
166
+ combined(numpy.array([30.,40.,50.,60.]),numpy.array([3.,4.,3.,6.]),numpy.array([1.,2.,3.,10.]))
167
+ array([0.22304147, 0.3780736 , 0.42528571, 0.22258065])
168
+
169
+ They can also be plotted on the sky using a Mollweide projection at a given distance using
170
+
171
+ .. code-block:: python
172
+
173
+ combined.plot_mollweide(5.) # input is distance in kpc
174
+
175
+ Note that this requires ``healpy`` to be installed, so this does not work on Windows.
176
+
177
+ Supported bandpasses
178
+ ---------------------
179
+
180
+ Currently only a few filters are supported.
181
+ To obtain E(B-V), specify ``filter='E(B-V)'``.
182
+ To check what bandpasses are supported on the ``sf10=True`` scale
183
+ (these are all the bandpasses from Table 6 in `Schlafly & Finkbeiner
184
+ 2011 <http://adsabs.harvard.edu/abs/2011ApJ...737..103S>`__), do
185
+
186
+ .. code-block:: python
187
+
188
+ from mwdust.util import extCurves
189
+ extCurves.avebvsf.keys()
190
+
191
+ which gives
192
+
193
+ .. code-block:: python
194
+
195
+ ['Stromgren u',
196
+ 'Stromgren v',
197
+ 'ACS clear',
198
+ 'CTIO R',
199
+ 'CTIO V',
200
+ 'CTIO U',
201
+ 'CTIO I',
202
+ ...]
203
+
204
+ To check the bandpasses that are supported on the old SFD scale (``sf10=False``), do
205
+
206
+ .. code-block:: python
207
+
208
+ numpy.array(extCurves.avebv.keys())[True-numpy.isnan(extCurves.avebv.values())]
209
+
210
+ which gives
211
+
212
+ .. code-block:: python
213
+
214
+ array(['CTIO R', 'CTIO V', 'CTIO U', 'CTIO I', 'CTIO B', 'DSS-II i',
215
+ 'DSS-II g', 'WISE-1', 'WISE-2', 'DSS-II r', 'UKIRT H', 'UKIRT J',
216
+ 'UKIRT K', 'IRAC-1', 'IRAC-2', 'IRAC-3', 'IRAC-4', '2MASS H',
217
+ 'SDSS r', 'SDSS u', 'SDSS z', 'SDSS g', 'SDSS i', '2MASS Ks',
218
+ '2MASS J'], dtype='|S14')
219
+
220
+
221
+ If no filter is supplied, *E(B-V)* is returned on the SFD scale if the object is initialized
222
+ with ``sf10=True`` (which tells the code to use re-scalings from
223
+ `Schlafly & Finkbeiner 2011
224
+ <http://adsabs.harvard.edu/abs/2011ApJ...737..103S>`__). ``sf10=True``
225
+ is the default initialization for every map, so be careful in
226
+ interpreting the raw *E(B-V)* that come out of the code when
227
+ not setting ``filter`` or when setting ``filter=None``. *Only use*
228
+ ``sf10=False`` *when you have an extinction map in true E(B-V)*, **not**
229
+ *SFD E(B-V)*. No map currently included in this package is in this
230
+ situation, so using ``sf10=False`` is never recommended.
231
+
232
+ Acknowledging ``mwdust`` and its data
233
+ ---------------------------------------
234
+
235
+ When making use of this code in a publication, please cite `Bovy et
236
+ al. (2015a) <http://arxiv.org/abs/1509.06751>`__. Also cite the relevant papers for the dust
237
+ map that you use:
238
+
239
+ * **mwdust.SFD**: `Schlegel et al. (1998) <http://adsabs.harvard.edu/abs/1998ApJ...500..525S>`__
240
+
241
+ * **mwdust.Drimmel03**: `Drimmel et al. (2003) <http://adsabs.harvard.edu/abs/2003A%26A...409..205D>`__
242
+
243
+ * **mwdust.Marshall06**: `Marshall et al. (2006) <http://adsabs.harvard.edu/abs/2006A%26A...453..635M>`__
244
+
245
+ * **mwdust.Sale14**: `Sale et al. (2014) <http://adsabs.harvard.edu/abs/2014MNRAS.443.2907S>`__
246
+
247
+ * **mwdust.Green15**: `Green et al. (2015) <https://ui.adsabs.harvard.edu/abs/2015ApJ...810...25G>`__
248
+
249
+ * **mwdust.Green17**: `Green et al. (2018) <https://ui.adsabs.harvard.edu/abs/2018MNRAS.478..651G>`__ (added by `@jan-rybizki <https://github.com/jan-rybizki>`__)
250
+
251
+ * **mwdust.Green19**: `Green et al. (2019) <https://ui.adsabs.harvard.edu/abs/2019arXiv190502734G>`__ (added by `@jan-rybizki <https://github.com/jan-rybizki>`__)
252
+
253
+ * **mwdust.Zucker25**: `Zucker et al. (2025) <https://ui.adsabs.harvard.edu/abs/2025arXiv250302657Z>`__
254
+
255
+ * **mwdust.Combined15**: Combination of
256
+
257
+ * `Marshall et al. (2006) <http://adsabs.harvard.edu/abs/2006A%26A...453..635M>`__ (**mwdust.Marshall06**),
258
+ * `Green et al. (2015) <http://adsabs.harvard.edu/abs/2015arXiv150701005G>`__ (**mwdust.Green15**), and
259
+ * `Drimmel et al. (2003) <http://adsabs.harvard.edu/abs/2003A%26A...409..205D>`__ (**mwdust.Drimmel03**);
260
+
261
+ see `Bovy et al. (2015a) <http://adsabs.harvard.edu/abs/2015arXiv150906751B>`__.
262
+
263
+ * **mwdust.Combined19**: Similar to **mwdust.Combined15**, but using **mwdust.Green19** instead of **mwdust.Green15**; see `Bovy et al. (2015a) <http://adsabs.harvard.edu/abs/2015arXiv150906751B>`__ for details on the combination (added by `@jan-rybizki <https://github.com/jan-rybizki>`__)
264
+
265
+ * **mwdust.Zero**: `Bovy et al. (2015b) <http://adsabs.harvard.edu/abs/2015arXiv150905796B>`__ :smirk:
@@ -0,0 +1,33 @@
1
+ sfd_c.cpython-314-darwin.so,sha256=s2w46pxr9uyunLHAZJIYo-21yIs9uvKpwuh7mP54eDY,108024
2
+ healpix_c.cpython-314-darwin.so,sha256=Z1eQT62LBnjmfEdQLGfEpx6KsNZ3E749GhbV5F5SIgo,52688
3
+ mwdust/Marshall06.py,sha256=YuwZ6t4Qq5PUbBS-xQ6hM8JtCALxlxL0OJRiJ6kjfUM,11169
4
+ mwdust/DustMap3D.py,sha256=pOFUBcGHE7cMQgnWmbIEQgBtfTwRlwKUgK91F-nla5Q,3376
5
+ mwdust/Green19.py,sha256=jIIyjV1L-r-tcrHLAexwryKza31WucWZoUqHYJeK9ag,3714
6
+ mwdust/Green17.py,sha256=ycGNlrzfTcXB6pEre889FjyWrthPAxjuh_Yi-Z6wq-s,3761
7
+ mwdust/SFD.py,sha256=ikaMJ2KU1KpOqaDI5TGBfc2j7PeI2BOjfwCcpzazlPs,2734
8
+ mwdust/HierarchicalHealpixMap.py,sha256=iPngVe6z5p5hkkI1c1ne5MF4IF1ZQ4avUEqSM8MtqMI,10324
9
+ mwdust/__init__.py,sha256=y_lzwtz3i9jQgx_jkzVhDckLm5nhu_Tr2M0U-9YdlVA,794
10
+ mwdust/Combined19.py,sha256=H0qzRP2-HhfPT7ScaeDe_OrtR-YOF5qoeHP4E5iRLgA,2831
11
+ mwdust/Zero.py,sha256=EbYTq739rlPi79lkoFgQus_EJZxY0laElAWxkcKEY1A,1949
12
+ mwdust/Green15.py,sha256=daSzGojQw4QsGYUl7dfYF_FGU9NC7iqsVbdlqM4Mgvk,3685
13
+ mwdust/Zucker25.py,sha256=wNT_f719-PV_DnU07uxubtoz5mBCQ0pXlJjh_qRvVXo,4500
14
+ mwdust/Combined15.py,sha256=MsiS3sNe6kpgzY1WJYRwufeeTeaoKUyeVViDWDO6eoo,2819
15
+ mwdust/Drimmel03.py,sha256=qVcXKrDELzf3btiCDU_LdPbGfohzYBkgB36C1l5Czjg,12166
16
+ mwdust/Sale14.py,sha256=TbDYf-FdajMlyuDexF7PwFI8iJpft4MerjY92t9As7Q,9115
17
+ mwdust/util/fortranfile.py,sha256=NYghSGLMBZnmiFYkelw0PZ6TPoMPNGprOXQp6-Pyv3g,8799
18
+ mwdust/util/extCurves.py,sha256=1bO3-MYAxDEbz0t6jutrOO-6vPBVus4jpcibCxf8szQ,2102
19
+ mwdust/util/download.py,sha256=6TzlCwYTAOmmAigKM4y83mjZWT_a-uAxU8gHdiMGvFI,1106
20
+ mwdust/util/tools.py,sha256=F_86rb71azFw5JmE4S0QSxJX_HHXjRqs1BhVbHm3c4o,921
21
+ mwdust/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
+ mwdust/util/combine_dustmaps19.py,sha256=ha3OPAWJpRgQgtUkCLDSf3OmY0sRs2E3wx2hbXHA3hg,9137
23
+ mwdust/util/healpix.py,sha256=zjy-ToIOeln5mnHCv4Hh3ClYReqEMjPGc3aECRlSnCI,12759
24
+ mwdust/util/read_SFD.py,sha256=_Gdn9NCFoTyqbyKx2VjA7KuiAt3oLRkmPjrmMAscP8o,4366
25
+ mwdust/util/read_Drimmel.py,sha256=-rXQHvaozSWLwb9c_GGfjUSO6B58cHp8aDGK0i6aqCg,2487
26
+ mwdust/util/extCurves/extinction.tbl,sha256=YxMdJ8MIryxcFktWOn7Sd_Ro3VOXxjs6j8cm0NY4J9A,4385
27
+ mwdust/util/extCurves/apj398709t6_ascii.txt,sha256=WEE5Z93xpw5MErEbSpH7LEVyv1xkRe_o0Qbp5m3zliw,4228
28
+ mwdust-1.6.dist-info/RECORD,,
29
+ mwdust-1.6.dist-info/WHEEL,sha256=2Id6qreet5t4wZv58bZfijJ58qrc2xkw6OVvWfeqxV0,136
30
+ mwdust-1.6.dist-info/top_level.txt,sha256=Np8Osh_Yamek_ExIk8NZPvP02xYOChGgGHHyth4l2GY,35
31
+ mwdust-1.6.dist-info/METADATA,sha256=gUA21Ie0K3kASDeTaWnzWFJwPra6Bmjc0cTdklaELNc,8611
32
+ mwdust-1.6.dist-info/licenses/LICENSE,sha256=-c8EkMS9umaZ5szXj3P1AtBCbq7saCaDWZDR2GsHFEE,1488
33
+ mwdust-1.6.dist-info/licenses/AUTHORS.txt,sha256=9sv1C5aD1kGrUyto3icM1b4T6v3etsS4-ooHrTYSRfk,333
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-macosx_11_0_arm64
5
+ Generator: delocate 0.13.0
6
+
@@ -0,0 +1,8 @@
1
+ Author:
2
+
3
+ Jo Bovy <bovy@astro.utoronto.ca>
4
+
5
+ Direct contributions to the code base:
6
+
7
+ Henry Leung (Windows support for SFD; custom HEALPIx implementation allowing use on Windows; dust map downloads during use rather than installation; some dependency maintenance)
8
+ Surhud More (fix SFD links in 122343153eca80dc2dae433ed46062e828fc90c1)
@@ -0,0 +1,27 @@
1
+ Copyright (c) 2013-2015, Jo Bovy
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice, this
11
+ list of conditions and the following disclaimer in the documentation and/or
12
+ other materials provided with the distribution.
13
+
14
+ * Neither the name of the {organization} nor the names of its
15
+ contributors may be used to endorse or promote products derived from
16
+ this software without specific prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,4 @@
1
+ healpix_c
2
+ mwdust
3
+ mwdust/util
4
+ sfd_c
Binary file