andreatramacere / jetset

JetSeT a framework for self-consistent modeling and fitting of astrophysical relativistic jets
BSD 3-Clause "New" or "Revised" License
30 stars 15 forks source link

How to save the fitted SED component values ? #76

Closed krishnamohana closed 6 months ago

krishnamohana commented 2 years ago

Hi, I am Krishna, a phd scholar from Manipal, Karnataka, India, working in research area of AGN. I wanted to know that how can I save the fitted SED values (theoretical model lines) into a txt file in JetSet? so that one can plot else where. Your response in this matter would be much appreciated. I am sincerely waiting for your reply.

andreatramacere commented 2 years ago

Dear Krishna, thanks a lot for using jetset. The information you need is at the end of this section of the documentation: https://jetset.readthedocs.io/en/latest/user_guide/documentation_notebooks/jet_model_phys_SSC/Jet_example_phys_SSC.html#accessing-individual-spectral-components I remind you that the new version, 1.2.2 has been released, and I suggest you to update to it. Cheers Andrea

krishnamohana commented 2 years ago

Thanks a lot andrea :)

maitreyakun commented 1 year ago

Hello,

I have been experiencing the same issue while using jetset. I was trying to fit an SED using only SSC Fitting with LSB (as described here) and so, unlike the previous link that you posted, I am not using any my_jet per se. In that case, how can I find the array for synch, SSC, etc., for further analyses? Thanks.

krishnamohana commented 1 year ago

May I know from which institute you are from ? what you are currently persuing? you can use the following steps to get the fitted SED values: (my_jet is just an object that how you define your jet model name. The name can be anything.)

my_jet.spectral_components.build_table(restframe='obs') t_obs=my_jet.spectral_components.table t_obs.write('SED_values_output.txt',format='ascii.ecsv',overwrite=True)