tag:blogger.com,1999:blog-9628502.post1872840883460694340..comments2023-10-30T09:30:28.107-05:00Comments on XSPECtor: calculating fluxes and errorsKeith Arnaudhttp://www.blogger.com/profile/02055792987509582228noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-9628502.post-63673650738714467782010-11-03T12:12:38.399-05:002010-11-03T12:12:38.399-05:00Maurizio,
If you have a recent version of xspec, ...Maurizio,<br /><br />If you have a recent version of xspec, cflux is included as a standard model.Keith Arnaudhttps://www.blogger.com/profile/02055792987509582228noreply@blogger.comtag:blogger.com,1999:blog-9628502.post-48075911001549484702010-11-03T11:56:39.233-05:002010-11-03T11:56:39.233-05:00Hi, I'm new to intalling custom models in Xspe...Hi, I'm new to intalling custom models in Xspec, and I'm trying to run cflux. Could you be more specific on what part of the code you had to change to make this work?<br />Thanks,<br />MaurizioAnonymoushttps://www.blogger.com/profile/14975103224931502619noreply@blogger.comtag:blogger.com,1999:blog-9628502.post-36615118062431611542008-08-27T10:01:00.000-05:002008-08-27T10:01:00.000-05:00I believe I have solved the problem by myself. the...I believe I have solved the problem by myself. the initpakage command should have been "initpackage cflux cflux_lmodel.dat". However, when using that I had the error:<BR/><BR/>"Error: package name cannot be identical to the name of a model function (cflux)... exiting"<BR/><BR/>And using a different package name resulted in a compilation error (I can send the log if necessary). To resolve the problem I had to change the name of the function called to something other than "cflux" on both files (cflux_lmodel.dat and cflux.cxx). Now everything works as explected.<BR/><BR/>By the way, this is a *very* useful model component! ThanksUnknownhttps://www.blogger.com/profile/15729935664230459481noreply@blogger.comtag:blogger.com,1999:blog-9628502.post-41211767414199395492008-08-27T08:32:00.000-05:002008-08-27T08:32:00.000-05:00Dear Keith,I have tried the new model but couldn&#...Dear Keith,<BR/><BR/>I have tried the new model but couldn't get it to work. I placed both files (cflux.cxx and cflux_lmodel.dat) in the LOCAL_MODEL_DIRECTORY and from Xspec v12 I issued the commands:<BR/><BR/>> initpackage cflux cflux.cxx<BR/>> lmod cflux<BR/><BR/>However, the cflux convolution model is not recognised by the model command. During the initpackage phase, aside from all the compilation messages, I could see:<BR/><BR/>------<BR/>Gathering information from model initialization file: /home/gamma/folre/vzabalza/bin/HEADAS/LMOD/cflux.cxx...<BR/><BR/>... done<BR/>0 Additive models<BR/>0 Multiplicative models<BR/>0 Convolution models<BR/>0 Mixing models<BR/>0 Pile-up models found altogether.<BR/>-----<BR/><BR/>Am I doing something wrong??<BR/><BR/>Thanks,<BR/><BR/>VĂctorUnknownhttps://www.blogger.com/profile/15729935664230459481noreply@blogger.com