Skip to content

Software package for cosmostatistics

License

Notifications You must be signed in to change notification settings

jstarck/cosmostat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cosmostat

Software package for cosmostatistics

Install

To install without thinking:

$ pip install git+https://github.com/CosmoStat/cosmostat.git

To install by cloning:

$ git clone git@github.com:CosmoStat/cosmostat.git
$ cd cosmostat
$ pip install -e .

Example

import numpy as np
import matplotlib.pyplot as plt
import pycs

# Generate a test image
img = np.random.randn(256, 256)

# Take the starlet transform with 5 wavelet scales
st = pycs.astro.wl.image.transforms.starlet2d(img, nscales=5)

# Compute the aperture mass map at scale 4 using the starlet filter
apm = pycs.astro.wl.image.filters.aperture_mass(img, theta=2**4, filter='starlet')

# Plot
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(6, 5))
ax1.imshow(st[3], cmap='magma')
ax2.imshow(apm, cmap='magma')
for ax in (ax1, ax2, ax3):
    ax.set_axis_off()

About

Software package for cosmostatistics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 63.8%
  • IDL 25.0%
  • C 4.7%
  • MATLAB 3.1%
  • Prolog 1.4%
  • Python 1.3%
  • Other 0.7%