예제 #1
0
def return_stellar_metal_img(filename, camera=0, scale_min=None, scale_max=None, size_scale=1.0, non_linear=None):
    image1 = sunpy__load.load_stellar_mass_map(filename, camera=camera)
    image2 = sunpy__load.load_stellar_metal_map(filename, camera=camera)
    image = image2/image1
    image[image<0]      = 0     #image.min()
    image[image*0 != 0] = 0     #image.min()
    return image
예제 #2
0
def return_stellar_mass_img(filename, camera=0, scale_min=1e8, scale_max=1e10, size_scale=1.0, non_linear=1e8):
    image = sunpy__load.load_stellar_mass_map(filename, camera=camera)
    n_pixels = image.shape[0]
    img = np.zeros((n_pixels, n_pixels), dtype=float)
    img[:,:] = asinh(image, scale_min=scale_min, scale_max=scale_max, non_linear=non_linear)
    img[img<0] = 0
    return img
예제 #3
0
def return_stellar_metal_img(filename,
                             camera=0,
                             scale_min=None,
                             scale_max=None,
                             size_scale=1.0,
                             non_linear=None):
    image1 = sunpy__load.load_stellar_mass_map(filename, camera=camera)
    image2 = sunpy__load.load_stellar_metal_map(filename, camera=camera)
    image = image2 / image1
    image[image < 0] = 0  # image.min()
    image[image * 0 != 0] = 0  # image.min()
    return image
예제 #4
0
def return_stellar_mass_img(filename,
                            camera=0,
                            scale_min=1e8,
                            scale_max=1e10,
                            size_scale=1.0,
                            non_linear=1e8):
    image = sunpy__load.load_stellar_mass_map(filename, camera=camera)
    n_pixels = image.shape[0]
    img = np.zeros((n_pixels, n_pixels), dtype=float)
    img[:, :] = asinh(image,
                      scale_min=scale_min,
                      scale_max=scale_max,
                      non_linear=non_linear)
    img[img < 0] = 0
    return img