Skip to content

Run it all the time with fit_spectra #95

@zhenxuanSUN

Description

@zhenxuanSUN

I'm trying to fit a moment in time EIS data with dimensions (512, 123, 24) using fit_spectra, but it shows:
Found a wavelength 195.12 [Angstroms] in window 8
INFO: uncertainty should have attribute uncertainty_type. [astropy.nddata.] + computing fits for 123 exposures, each with 512 spectra+ running mpfit on 24 cores (of 24)

It ran for a long time with no results, I don't know if it's a result of the amount of data or if there's something wrong with my code. But after reducing the range (raster_cutout = data_cube.crop(lower_left, upper_right)) I can get the result soon. Here is the code for my fitting part:

if name == 'main':

# Read in the fit template and EIS observation
tmplt = eispac.read_template("F:/SW_evolution_plus/data_EIS_2021_01_10_26_region_2/fe_12_195_119.2c.template.h5")
data_cube = eispac.read_cube("F:/SW_evolution_plus/data_EIS_2021_01_10_26_region_2/eis_20210117_072949.data.h5", 195.120)

# Select a cutout of the raster
# raster_cutout = data_cube.crop(lower_left, upper_right)
raster_cutout = data_cube

# Fit the data and save it to disk
fit_res = eispac.fit_spectra(raster_cutout, tmplt, ncpu='max', unsafe_mp=True, min_points=10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions