mwdust 1.6__cp313-cp313-win_amd64.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,264 @@
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
+ Dynamic: author
27
+ Dynamic: author-email
28
+ Dynamic: classifier
29
+ Dynamic: description
30
+ Dynamic: home-page
31
+ Dynamic: license
32
+ Dynamic: license-file
33
+ Dynamic: requires-dist
34
+ Dynamic: summary
35
+
36
+ mwdust
37
+ ======
38
+
39
+ **Dust in 3D in the Milky Way**
40
+
41
+
42
+
43
+
44
+
45
+ |
46
+
47
+ .. contents:: **Contents**
48
+ :depth: 3
49
+
50
+ Installation
51
+ -------------
52
+
53
+ Install the latest released version using ``pip``:
54
+
55
+ .. code-block::
56
+
57
+ pip install mwdust
58
+
59
+ To install the latest development version, clone the repository and do
60
+
61
+ .. code-block::
62
+
63
+ python setup.py install
64
+
65
+ or
66
+
67
+ .. code-block::
68
+
69
+ python setup.py install --user
70
+
71
+ Using custom implementations of necessary HEALPIx functions, basic
72
+ evaluation of extinction is available on all platforms (Linux, Mac OS,
73
+ Windows) for all dust maps. However, some HEALPIx-based features like
74
+ plotting require ``healpy``, which is unavailable on Windows.
75
+ Install on Linux/Mac OS for full functionality.
76
+
77
+ Dust Data
78
+ ---------
79
+
80
+ By default, dust maps are download when you use them for the first time.
81
+ If you define an environment variable ``DUST_DIR``, then all dust data
82
+ downloaded by the code will be downloaded to this directory. If you do not
83
+ set the ``DUST_DIR`` variable, then ``mwdust`` will download data to ``~/.mwdust``.
84
+
85
+ The code can download all of the necessary data at by running
86
+
87
+ .. code-block:: python
88
+
89
+ from mwdust import download_all
90
+ download_all()
91
+
92
+ Note that some of the maps are very large (multiple GB) and some of the downloads
93
+ are slow, so this may take a while.
94
+
95
+ The data are put in subdirectories of a directory ``DUST_DIR`` or ``~/.mwdust``, with
96
+ roughly the following lay-out::
97
+
98
+ $DUST_DIR/
99
+ combined15/
100
+ dust-map-3d.h5
101
+ combined19/
102
+ combine19.h5
103
+ green15/
104
+ dust-map-3d.h5
105
+ green17/
106
+ bayestar2017.h5
107
+ green19/
108
+ bayestar2019.h5
109
+ zucker25/
110
+ decaps_mean.h5
111
+ decaps_mean_and_samples.h5
112
+ maps/
113
+ SFD_dust_4096_ngp.fits
114
+ SFD_dust_4096_sgp.fits
115
+ marshall06/
116
+ ReadMe
117
+ table1.dat
118
+ sale14/
119
+ Amap.dat
120
+ ReadMe
121
+
122
+ The data for the Drimmel et al. (2003) map is installed in the code
123
+ directory, because it is not very large.
124
+
125
+ Usage
126
+ ------
127
+
128
+ All of the maps can be initialized similar to
129
+
130
+ .. code-block:: python
131
+
132
+ import mwdust
133
+ drimmel= mwdust.Drimmel03(filter='2MASS H')
134
+ combined= mwdust.Combined15(filter='2MASS H')
135
+ combined19= mwdust.Combined19(filter='2MASS H')
136
+ sfd= mwdust.SFD(filter='2MASS H')
137
+
138
+ which sets up the Drimmel et al. (2003) map, the combined Bovy et
139
+ al. (2016) map, an updated version of the combined map using the Green
140
+ et al. (2019) Bayestar19 map, and the SFD map for the *H*-band
141
+ filter. The maps can be evaluate for a given Galactic longitude *l*,
142
+ Galactic latitude *b*, and an array (or scalar) of distances *D*
143
+
144
+ .. code-block:: python
145
+
146
+ drimmel(60.,0.,3.) # inputs are (l,b,D)
147
+ array([ 0.38813341])
148
+ combined(30.,3.,numpy.array([1.,2.,3.,10.]))
149
+ array([ 0.22304147, 0.55687252, 0.86694602, 1.18779507])
150
+ # SFD is just the constant SFD extinction
151
+ sfd(30.,3.,numpy.array([1.,2.,3.]))
152
+ array([ 1.19977335, 1.19977335, 1.19977335])
153
+
154
+ and they can be plotted as a function of distance at a given (l,b)
155
+
156
+ .. code-block:: python
157
+
158
+ combined.plot(55.,0.5) # inputs are (l,b)
159
+
160
+ (plot not shown). Maps that are derived from the ``HierarchicalHealpixMap.py`` class (currently all Green-type maps and
161
+ the combined maps) can be vectorized to evaluate on array inputs of *l*, *b*, *D*
162
+
163
+ .. code-block:: python
164
+
165
+ combined(numpy.array([30.,40.,50.,60.]),numpy.array([3.,4.,3.,6.]),numpy.array([1.,2.,3.,10.]))
166
+ array([0.22304147, 0.3780736 , 0.42528571, 0.22258065])
167
+
168
+ They can also be plotted on the sky using a Mollweide projection at a given distance using
169
+
170
+ .. code-block:: python
171
+
172
+ combined.plot_mollweide(5.) # input is distance in kpc
173
+
174
+ Note that this requires ``healpy`` to be installed, so this does not work on Windows.
175
+
176
+ Supported bandpasses
177
+ ---------------------
178
+
179
+ Currently only a few filters are supported.
180
+ To obtain E(B-V), specify ``filter='E(B-V)'``.
181
+ To check what bandpasses are supported on the ``sf10=True`` scale
182
+ (these are all the bandpasses from Table 6 in `Schlafly & Finkbeiner
183
+ 2011 <http://adsabs.harvard.edu/abs/2011ApJ...737..103S>`__), do
184
+
185
+ .. code-block:: python
186
+
187
+ from mwdust.util import extCurves
188
+ extCurves.avebvsf.keys()
189
+
190
+ which gives
191
+
192
+ .. code-block:: python
193
+
194
+ ['Stromgren u',
195
+ 'Stromgren v',
196
+ 'ACS clear',
197
+ 'CTIO R',
198
+ 'CTIO V',
199
+ 'CTIO U',
200
+ 'CTIO I',
201
+ ...]
202
+
203
+ To check the bandpasses that are supported on the old SFD scale (``sf10=False``), do
204
+
205
+ .. code-block:: python
206
+
207
+ numpy.array(extCurves.avebv.keys())[True-numpy.isnan(extCurves.avebv.values())]
208
+
209
+ which gives
210
+
211
+ .. code-block:: python
212
+
213
+ array(['CTIO R', 'CTIO V', 'CTIO U', 'CTIO I', 'CTIO B', 'DSS-II i',
214
+ 'DSS-II g', 'WISE-1', 'WISE-2', 'DSS-II r', 'UKIRT H', 'UKIRT J',
215
+ 'UKIRT K', 'IRAC-1', 'IRAC-2', 'IRAC-3', 'IRAC-4', '2MASS H',
216
+ 'SDSS r', 'SDSS u', 'SDSS z', 'SDSS g', 'SDSS i', '2MASS Ks',
217
+ '2MASS J'], dtype='|S14')
218
+
219
+
220
+ If no filter is supplied, *E(B-V)* is returned on the SFD scale if the object is initialized
221
+ with ``sf10=True`` (which tells the code to use re-scalings from
222
+ `Schlafly & Finkbeiner 2011
223
+ <http://adsabs.harvard.edu/abs/2011ApJ...737..103S>`__). ``sf10=True``
224
+ is the default initialization for every map, so be careful in
225
+ interpreting the raw *E(B-V)* that come out of the code when
226
+ not setting ``filter`` or when setting ``filter=None``. *Only use*
227
+ ``sf10=False`` *when you have an extinction map in true E(B-V)*, **not**
228
+ *SFD E(B-V)*. No map currently included in this package is in this
229
+ situation, so using ``sf10=False`` is never recommended.
230
+
231
+ Acknowledging ``mwdust`` and its data
232
+ ---------------------------------------
233
+
234
+ When making use of this code in a publication, please cite `Bovy et
235
+ al. (2015a) <http://arxiv.org/abs/1509.06751>`__. Also cite the relevant papers for the dust
236
+ map that you use:
237
+
238
+ * **mwdust.SFD**: `Schlegel et al. (1998) <http://adsabs.harvard.edu/abs/1998ApJ...500..525S>`__
239
+
240
+ * **mwdust.Drimmel03**: `Drimmel et al. (2003) <http://adsabs.harvard.edu/abs/2003A%26A...409..205D>`__
241
+
242
+ * **mwdust.Marshall06**: `Marshall et al. (2006) <http://adsabs.harvard.edu/abs/2006A%26A...453..635M>`__
243
+
244
+ * **mwdust.Sale14**: `Sale et al. (2014) <http://adsabs.harvard.edu/abs/2014MNRAS.443.2907S>`__
245
+
246
+ * **mwdust.Green15**: `Green et al. (2015) <https://ui.adsabs.harvard.edu/abs/2015ApJ...810...25G>`__
247
+
248
+ * **mwdust.Green17**: `Green et al. (2018) <https://ui.adsabs.harvard.edu/abs/2018MNRAS.478..651G>`__ (added by `@jan-rybizki <https://github.com/jan-rybizki>`__)
249
+
250
+ * **mwdust.Green19**: `Green et al. (2019) <https://ui.adsabs.harvard.edu/abs/2019arXiv190502734G>`__ (added by `@jan-rybizki <https://github.com/jan-rybizki>`__)
251
+
252
+ * **mwdust.Zucker25**: `Zucker et al. (2025) <https://ui.adsabs.harvard.edu/abs/2025arXiv250302657Z>`__
253
+
254
+ * **mwdust.Combined15**: Combination of
255
+
256
+ * `Marshall et al. (2006) <http://adsabs.harvard.edu/abs/2006A%26A...453..635M>`__ (**mwdust.Marshall06**),
257
+ * `Green et al. (2015) <http://adsabs.harvard.edu/abs/2015arXiv150701005G>`__ (**mwdust.Green15**), and
258
+ * `Drimmel et al. (2003) <http://adsabs.harvard.edu/abs/2003A%26A...409..205D>`__ (**mwdust.Drimmel03**);
259
+
260
+ see `Bovy et al. (2015a) <http://adsabs.harvard.edu/abs/2015arXiv150906751B>`__.
261
+
262
+ * **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>`__)
263
+
264
+ * **mwdust.Zero**: `Bovy et al. (2015b) <http://adsabs.harvard.edu/abs/2015arXiv150905796B>`__ :smirk:
@@ -0,0 +1,33 @@
1
+ healpix_c.cp313-win_amd64.pyd,sha256=B9-KzHdE0AJtNgStC2Jp0OU5_hcy-MSwLbtz_glCF4Q,16384
2
+ sfd_c.cp313-win_amd64.pyd,sha256=iI246liyrc7vFtwjHsvjvJP490kCvOLOefUCRziQfxc,31232
3
+ mwdust/Combined15.py,sha256=5cuO48-HRrLiOruoDj_tOVa1bluF9w3ZDCRqQeURwg8,2879
4
+ mwdust/Combined19.py,sha256=xX0jMGgNXwMZ5KQDWzyk0sQsQFWiiNO1qKKUB3d9mqc,2893
5
+ mwdust/Drimmel03.py,sha256=I64ISgg9I9ltuZpU0MJ_-TgNhdHyxuZ6PcDrkAnyxAk,12459
6
+ mwdust/DustMap3D.py,sha256=hAiju-LJC-vXQ3irceKpz4HUFCFv_fpq0C-xcyc43_A,3475
7
+ mwdust/Green15.py,sha256=xafwf1v53rcXwnn4ijuIoe12GiJEFIqB2dvCl5iohSE,3768
8
+ mwdust/Green17.py,sha256=0HZ_8Bbz8QCrE0BERAM4efu7JLIdhSmJtEf7-QXJhLk,3846
9
+ mwdust/Green19.py,sha256=oVAoS54M10PZEQZTYHPcG9Lq0O3iQgVHWNx9NqmUg3g,3798
10
+ mwdust/HierarchicalHealpixMap.py,sha256=WRT5RmE7MhXqdc7teNrY9xO-zwEMENvgG0QCk9UA2sA,10548
11
+ mwdust/Marshall06.py,sha256=gtiqDaxppOBG0jwA_rX_lSqh1hEeLtBWxgnOw6qxCwo,11434
12
+ mwdust/SFD.py,sha256=YHPTde2iN6TyBOiukT6I8oFrAMCf6gOXDDnImMK-8ug,2805
13
+ mwdust/Sale14.py,sha256=bLdaBv-FGCbBTsqcpYgcsG8XbEI5shpuo4Ne5XDPj78,9332
14
+ mwdust/Zero.py,sha256=lgCGvpjbZzL8iQM30BAm3dTseXtM3BWeHCeHh5UBtp0,2012
15
+ mwdust/Zucker25.py,sha256=IqeLY44s2yClPIg980XzajxW5HZ9ctYd0CepQXIcXEk,4607
16
+ mwdust/__init__.py,sha256=oEgOauDVQ10XXfJ2H-08Phof_s7MVXaLa2B0XGI9xA8,821
17
+ mwdust/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
+ mwdust/util/combine_dustmaps19.py,sha256=ZfsNL-427_x_VCecC9nchmDFYwFIAa7wDxUJX3zXGSc,9339
19
+ mwdust/util/download.py,sha256=t5BStsJLcTK82LrFGUjkV0H-WtLBhOxjfF6FoUOYsdM,1138
20
+ mwdust/util/extCurves.py,sha256=AFWhOtwUS1nLdnkJu7XiSz_COlhUcVddUWOOJ3dA4nc,2167
21
+ mwdust/util/fortranfile.py,sha256=pD4EpGAdi6RcO_A1weEpQWXl13jojejiuDQVIppMoe4,9059
22
+ mwdust/util/healpix.py,sha256=lqwoHGjEnJYAhqvuU36LnKcZMHrH_NjhmfcaOcnh4I8,13199
23
+ mwdust/util/read_Drimmel.py,sha256=r_5BqzNwOO9iRJA6UdAwfG7s0OgMSWQyZNMx4qyCTjs,2542
24
+ mwdust/util/read_SFD.py,sha256=pXdFDVPqZggYncjDBQ2XVLtUCknjdfo5qqApiK8ghOI,4495
25
+ mwdust/util/tools.py,sha256=MbDBVJmphL3IlPSkXIqjIM80wemRNfhgoJmV5IdeRWY,952
26
+ mwdust/util/extCurves/apj398709t6_ascii.txt,sha256=B5UStYt_FpPI5BLh_IiaYYW81wbxCXHI3fSuu66kQ2s,4278
27
+ mwdust/util/extCurves/extinction.tbl,sha256=HheH3Q79xl231_8vj5ZHhvwG5Fn2UPj-_CKUK1ekjrk,4429
28
+ mwdust-1.6.dist-info/licenses/AUTHORS.txt,sha256=biMY8adfUAUlUrrqJbR66TocKK65HjwO7ERDBQSrDXE,341
29
+ mwdust-1.6.dist-info/licenses/LICENSE,sha256=BMHGpzT0WB-u2jowktgd30uA_Nl28hCLqA-rib0wHhk,1515
30
+ mwdust-1.6.dist-info/METADATA,sha256=E4DEz0iFyRsYAex4nBHZv71D-nXiX9nIxSx5bhdqiFc,8853
31
+ mwdust-1.6.dist-info/WHEEL,sha256=qV0EIPljj1XC_vuSatRWjn02nZIz3N1t8jsZz7HBr2U,101
32
+ mwdust-1.6.dist-info/top_level.txt,sha256=Np8Osh_Yamek_ExIk8NZPvP02xYOChGgGHHyth4l2GY,35
33
+ mwdust-1.6.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_amd64
5
+
@@ -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