SpiralMap 0.0.4__py3-none-any.whl → 0.0.5__py3-none-any.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.
SpiralMap/models_.py CHANGED
@@ -59,6 +59,7 @@ class spiral_poggio_maps(object):
59
59
  func_ = lambda s: 'yval' in s
60
60
  yval_file = list(filter(func_,flist1))[0]
61
61
 
62
+
62
63
  # # read overdensity contours
63
64
  xvalues_overdens=np.load(self.loc+'/'+xval_file)
64
65
  yvalues_overdens=np.load(self.loc+'/'+yval_file)
@@ -67,6 +68,8 @@ class spiral_poggio_maps(object):
67
68
  Rvalues_dens=sqrtsum(ds=[xvalues_overdens, yvalues_overdens])
68
69
  Rgcvalues_dens=sqrtsum(ds=[xvalues_overdens+xsun, yvalues_overdens])
69
70
 
71
+ self.over_dens_grid = over_dens_grid
72
+
70
73
  fl = pickleread(self.loc+'/'+self.model_+'_pproj_contours.pkl')
71
74
  self.dout = {'xhc':xvalues_overdens,'yhc':yvalues_overdens,'xgc':xvalues_overdens+xsun,'ygc':yvalues_overdens}
72
75
  self.dout['phi4'] =fl['phi4'].copy()
@@ -998,11 +1001,11 @@ class main_(object):
998
1001
  if plotattrs_['plot'] and plotattrs_['polarproj']==False :
999
1002
  plt.plot(spimod.dout['x'+plotattrs_['coordsys'].lower()],
1000
1003
  spimod.dout['y'+plotattrs_['coordsys'].lower()],
1001
- plotattrs_['linestyle'],color=plotattrs_['armcolour'])
1004
+ plotattrs_['linestyle'],linewidth=plotattrs_['linewidth'],color=plotattrs_['armcolour'])
1002
1005
  if 'xhc_ex' in spimod.dout.keys():
1003
1006
  plt.plot(spimod.dout['x'+plotattrs_['coordsys'].lower()+'_ex'],
1004
1007
  spimod.dout['y'+plotattrs_['coordsys'].lower()+'_ex'],
1005
- '--',color=plotattrs_['armcolour'])
1008
+ '--',linewidth=plotattrs_['linewidth'],color=plotattrs_['armcolour'])
1006
1009
 
1007
1010
  plt.xlabel('X$_{'+plotattrs_['coordsys']+'}$ [Kpc]')
1008
1011
  plt.ylabel('Y$_{'+plotattrs_['coordsys']+'}$ [Kpc]')
SpiralMap/test.py CHANGED
@@ -325,7 +325,58 @@ if makegif:
325
325
  curdir = os.getcwd()
326
326
  mytools.png2movie(figdir_primer,curdir,flname='movie_',duration=3.5,fmt='gif')
327
327
 
328
+
329
+
330
+
331
+ templot = False
332
+ if templot:
333
+
334
+ # grab data (poggio and ceph)
335
+ plotattrs = {'plot':False,'coordsys':'GC','markersize':3,'polarproj':True,'armcolour':''}
336
+ pg = spiral_poggio_maps()
337
+ pg.xsun = 8.277
338
+ pg.output_(plotattrs)
339
+ xvalues = pg.dout['xhc']
340
+ yvalues = pg.dout['yhc']
341
+ overdens_grid = pg.over_dens_grid
342
+
343
+
344
+ plotattrs = {'plot':True,'coordsys':'HC','markersize':5,'linewidth':4,'linestyle':'-','polargrid':False}
345
+ Rsun=8.277
346
+ spirals = sp.main_(Rsun=Rsun)
347
+ use_model2 = 'Drimmel_Ceph_2024'
348
+ use_arm = 'all'
349
+
350
+ plt.close('all')
351
+
352
+ fgsize=(6.5,5.)
353
+ fig = plt.figure(figsize=fgsize, dpi=150)
354
+
355
+ ax = fig.gca()
356
+
357
+ iniz=-1.18
358
+ fin=1.18
359
+ N_levels=50
360
+ levels=np.linspace(iniz,fin,N_levels)
361
+ cset1 = ax.contourf(xvalues, yvalues,overdens_grid.T, levels=levels, cmap='seismic',vmin=-1.18,vmax=1.18)
362
+
363
+ cbar=plt.colorbar(mappable=cset1,orientation="vertical",ticks=[-1,-0.5, 0, 0.5, 1])
364
+
365
+ cbar.set_label('Overdensity', fontsize=18)
366
+ cbar.ax.tick_params(labelsize=18)
367
+
368
+ spirals.readout(plotattrs,model=use_model2,arm=use_arm)
369
+
370
+ ax.set_xlabel('X (kpc)', fontsize=18)
371
+ ax.set_ylabel('Y (kpc)', fontsize=18)
372
+
373
+ ax.set_xlim([-5.5,5.1])
374
+ ax.set_ylim([-5.8,5.5])
375
+ ax.tick_params(axis="x", labelsize=15)
376
+ ax.tick_params(axis="y", labelsize=15)
377
+ plt.tight_layout()
328
378
 
379
+ # # plt.show()
329
380
 
330
381
 
331
382
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SpiralMap
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: Python Library of Milky Way's Spiral Arms
5
5
  Project-URL: Homepage, https://github.com/Abhaypru/SpiralMap
6
6
  Project-URL: Issues, https://github.com/Abhaypru/SpiralMap/issues
@@ -1,8 +1,8 @@
1
1
  SpiralMap/__init__.py,sha256=7F5e52HrtZpHq8kNmLG8e1jtNlf6jkufCDgoIKlKZGs,100
2
- SpiralMap/models_.py,sha256=EW7I4EYdlK6cJtugIdL1CJonkM-ATh4ks78GMjHrPbo,40204
2
+ SpiralMap/models_.py,sha256=YGgqs_GVZ1XsDshwH09ljYFdcS3j0KxuSEFCj1OxqmQ,40317
3
3
  SpiralMap/movie_.gif,sha256=famzvY320Jz8xjKjB0FndkXdGPZ4P8pJGlVKEHQuoto,125026
4
4
  SpiralMap/mytools.py,sha256=rmUT9Wsg3NhRHTlV-RvoZ3TWvYSEs5epX3zydEonnHM,7237
5
- SpiralMap/test.py,sha256=C7h_h-P1FFJlVv9CHGxO_2x_Zud12j1Xf-tUmmh0tdc,9987
5
+ SpiralMap/test.py,sha256=oE2N05eKLdcBN2yrgnEt0YSFvNJzRTNB0gqtpekmIbU,11264
6
6
  SpiralMap/version.py,sha256=G_9nHD5j8EWxdjfiRE8uUrh0l_FRWN5WAnCM9wjLIJw,78
7
7
  SpiralMap/datafiles/flim.pkl,sha256=VmwuaFXQbAc0P3ey2sPrZa3BgpXk4KSlwZrb3aoKYzU,11235
8
8
  SpiralMap/datafiles/flim_all.pkl,sha256=HWjuVpmOfdtLqsZK6eMajoGGXTdUfF9nXodRMjKYHbU,2112
@@ -27,14 +27,7 @@ SpiralMap/datafiles/Poggio_cont_2021/Poggio_cont_2021_pproj_contours.pkl,sha256=
27
27
  SpiralMap/datafiles/Poggio_cont_2021/overdens_grid_locscale03.npy,sha256=peM4jyLQsE8X4bMTCCe-7UD3Hayi2qmRcOQzCudBfHM,117256
28
28
  SpiralMap/datafiles/Poggio_cont_2021/xvalues.npy,sha256=uhY3STTfBhTer8pWNAkLezyu4o94VmNZgft0RZPFcTk,1096
29
29
  SpiralMap/datafiles/Poggio_cont_2021/yvalues.npy,sha256=uhY3STTfBhTer8pWNAkLezyu4o94VmNZgft0RZPFcTk,1096
30
- SpiralMap/figdir_primer/map_0png.png,sha256=OMkJAkxqk9a9rvwphY6cvboY7RmYylApkKXINLiQtUs,75636
31
- SpiralMap/figdir_primer/map_1png.png,sha256=tA2OgSICQlC0N7VxypEZDucHvCKq3HsFStgo0eq95rM,83668
32
- SpiralMap/figdir_primer/map_2png.png,sha256=kBvhJb4KZJ5We6wnLo0YdnWQHmys1BF-kaXweQCYto8,71296
33
- SpiralMap/figdir_primer/map_3png.png,sha256=J8MUzu100rOaWxd1LGvhNItXJdtvQpt_cecgebSDxOI,86123
34
- SpiralMap/figdir_primer/map_4png.png,sha256=IBBJYP7boTzGUhIDdOnjsjK549YWeoEQgZABB7Lu7FA,84457
35
- SpiralMap/figdir_primer/map_5png.png,sha256=DzqQO-CBwKpq1wW75yqi4msLA5hslsUs8f3qfI-jkY4,71955
36
- SpiralMap/figdir_primer/map_8png.png,sha256=YNKex-pu4Vo8ULBuGKNhWXuuvNOEd6Xl_2KXtPcfAUw,74856
37
- spiralmap-0.0.4.dist-info/METADATA,sha256=S-0G9efx74yll5vU35rkIKLePi7Y3X0UahHCqISGpew,2151
38
- spiralmap-0.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
39
- spiralmap-0.0.4.dist-info/licenses/LICENSE.md,sha256=5w1L9A7eVMqU0wNIsBTTZA8K2JBIK0KKbqMSaQ1z9m0,1076
40
- spiralmap-0.0.4.dist-info/RECORD,,
30
+ spiralmap-0.0.5.dist-info/METADATA,sha256=3yJr-O7r9wRGOQTS3Zw4Zh0L_nWwn3XeqcAJYdv-1ms,2151
31
+ spiralmap-0.0.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
+ spiralmap-0.0.5.dist-info/licenses/LICENSE.md,sha256=5w1L9A7eVMqU0wNIsBTTZA8K2JBIK0KKbqMSaQ1z9m0,1076
33
+ spiralmap-0.0.5.dist-info/RECORD,,
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file