USNavalResearchLaboratory / eispac

Read the Docs
https://eispac.readthedocs.io/en/latest/
MIT License
23 stars 6 forks source link

Help with fit templates: missing template and how to make a new one #69

Open AlexandrosKoukras opened 1 year ago

AlexandrosKoukras commented 1 year ago

Hello,

I am studying a set of EIS observations but I noticed that there are not fit templates for all the lines in my dataset. Even for lines that spectral windows are centered on, like S VIII 198.55 or Mg VII 280.720.

I was able to fit the data of these lines with other methods (e.g. astropy.modeling) but when I tried to build a new template for these lines and then do the fit with eispac, it didn't work. I am interested in keeping my analysis in the eispac framework, so if you could help me with that I would appreciated it. My main question is how I can create a new fit template for an EIS line.

To give you more context I have documented my efforts in this notebook.

hpwarren commented 1 year ago

Alexandros,

Sorry for the delayed response.

We have not yet implemented template construction in python.

Would it be ok if you gave us the list of new lines that you were interested in? We can then construct them in IDL and export them to python.

Best wishes,

Harry

On Thu, Mar 30, 2023 at 12:00 PM Alexandros Koukras < @.***> wrote:

Hello,

I am studying a set of EIS observations but I noticed that there are not fit templates for all the lines in my dataset. Even for lines that spectral windows are centered on, like S VIII 198.55 or Mg VII 280.720.

I was able to fit the data of these lines with other methods (e.g. astropy.modeling) but when I tried to build a new template for these lines and then do the fit with eispac, it didn't work. I am interested in keeping my analysis in the eispac framework, so if you could help me with that I would appreciated it. My main question is how I can create a new fit template for an EIS line.

To give you more context I have documented my efforts in this notebook https://github.com/AlexandrosKoukras/EIS_data_analysis/blob/main/Making_an_EIS_fit_template.ipynb .

— Reply to this email directly, view it on GitHub https://github.com/USNavalResearchLaboratory/eispac/issues/69, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYJPCJQG4GHEXCEDT7BOLTW6WUY5ANCNFSM6AAAAAAWNQCQDU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

AlexandrosKoukras commented 1 year ago

Hello Harry,

The lines that I am currently interested in are:

  1. S VIII 198.550
  2. Mg VII 278.390

If you could provide these it would be great. But as my analysis progress I might encounter other lines for which a template is necessary too.

Looking at the existing templates I managed to make one myself for S VIII 198.55 that works with the eispac.fit_spectra (see the updated notebook from above). Of course this is an unpolished initial attempt but if you are interested in having this functionality in eispac I could try to polish it and added it as a function. Additionally, and since you mentioned that you can create the fit_templates in IDL, I looked a bit at the IDL routines and is it the 'eis_fit_template' that you are using to create the fit_templates? If that is the case, do you plan on making a similar function for eispac?

Thank you for your help.

All the best,

Alexandros