jacopo-chevallard / BEAGLE-general

Basic information to get started with the galaxy spectral modelling tool Beagle
https://www.iap.fr/beagle/
9 stars 0 forks source link

Problem with IDs when fitting spectral indices only #42

Closed MarcoCast79 closed 7 years ago

MarcoCast79 commented 7 years ago

I'm trying to fit spectral indices only of one source, with no photometric catalog, but BEAGLE complains about the lack of objects IDs:

>          [ERROR: No column name containing the objects IDs has been provided! ]
> [FUNCTION: "load_indices_configuration" ]
> [MODULE: "spectral_indices" ]
 > [BACKTRACE:   
> #0  0x7FCD5E70EE08
> #1  0x6898EC in print_backtrace at lib_messages.f90:330
> #2  0x4385AC in __spectral_indices_MOD_load_indices_configuration at spectral_indices.f90:279
> #3  0x48E911 in __io_spectra_MOD_initialize_spectroscopy at io_spectra.f90:166
> #4  0x405EBB in MAIN__ at BEAGLE.f90:284 (discriminator 2)
 > ]
 > [ ***************************************** ]
 > [ ----> EXITING FUNCTION / SUBROUTINE <---- ]                                   

where should it find indication of the ID in this case?

I tried adding the information

object_ID:colName:ID

in the spectral indices configuration file, but it doesn't work (though the error message is different)

also trying passing a filter file with such an information (but no actual filter list and no photometric catalogue) does not work

What can I do? Thanks!

jacopo-chevallard commented 7 years ago

Adding the line

object_ID:colName:ID

is indeed the right way to go. Can you report the other error that you're getting? Also, when pasting errors, please put surround them by triple back ticks, to avoid creating spurious references to other issues (see the way I edited your comment above).

MarcoCast79 commented 7 years ago

I'm getting the following:

> At line 2415 of file /root/src/github.com/jacopo-chevallard/BEAGLE/build/dependencies/astrofortran/src/lib_io.f90
>Fortran runtime error: Bad real number in item 1 of list input

in case the error is in the format of the files, I put here in Dropbox the configuration files and catalog file for you to check.

Thanks for your help

jacopo-chevallard commented 7 years ago

Hi Marco, I had to modify a bit the parameter file, and the fitting seems to run now. Remember that the only allowed parameters are those indicated in Section 5 of the manual, so, for instance, neither mass_w_age nor M_star are adjustable parameters, they are just quantities printed in the output file.

Don't hesitate to ask me or @eclake in the case of questions.

MarcoCast79 commented 7 years ago

Yes it runs here too, thanks!