-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
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
Labels
No labels