[Mesa-users] Custom color file

Susmita Das susmitadas130 at gmail.com
Mon Mar 7 05:50:07 UTC 2022


Hi Aaron and Rob,
Thank you very much for your reply and sorry for my late reply.
I'm using mesa-r21.12.1.
Restricting to the sub-table with Av=0 indeed did away with the warning.
However, I still get the error of bad filter name (I used the filter names
in lowercase in the filter file as well as the history file). Once again,
it shows no error regarding gaia_rp but only with the other four filters.
[image: mesa.png]
I would be very grateful for your help.
Thank you
Susmita

On Sat, Feb 12, 2022 at 2:33 AM Rob Farmer <robert.j.farmer37 at gmail.com>
wrote:

> Hi  Susmita
>
> The warnings are due to having repeated teff, logg, m/h values in your
> custom bc file (not the overlap with the lcb file).
>
> For the bad column names, can you try setting the names in the filter file
> and the history file as lowercase?
>
> Rob
>
>
> On Fri, 11 Feb 2022, 20:49 Aaron Dotter via Mesa-users, <
> mesa-users at lists.mesastar.org> wrote:
>
>> Hi Susmita,
>>
>> It's difficult to answer your question since you didn't state what MESA
>> version you're using.  However, I can tell you that the MIST bolometric
>> correction tables include multiple "sub-tables" with different values of
>> the extinction (Av).  So all of the Teff, log(g) values will be repeated
>> many times (one for each value of Av).  That may or may not be the reason
>> for the error you have received.  If it is, then you should restrict
>> yourself, presumably, to the first sub-table in the file, which has Av = 0.
>>
>> Aaron
>>
>> On Fri, Feb 11, 2022 at 5:18 AM Susmita Das via Mesa-users <
>> mesa-users at lists.mesastar.org> wrote:
>>
>>> Hello all,
>>> I'm trying to get the absolute magnitudes in the Kepler, TESS and Gaia
>>> passbands using MESA-RSP.
>>>
>>> 1. I get the BC tables from
>>> http://waps.cfa.harvard.edu/MIST/model_grids.html#bolometric and create
>>> a new file "custom_color_file.dat" with the header:
>>>  #Teff log_g M_div_h Kepler TESS Gaia_G Gaia_BP Gaia_RP
>>>
>>> The "custom_color_file.dat" is saved in the $MESA_DIR/data/colors_data
>>> and $MESA_DIR/colors/data directories as well as in my working
>>> directory.
>>>
>>> 2. In the inlist file, I include the following:
>>>           color_num_files=3
>>>       color_file_names(1) = 'lcb98cor.dat'
>>>       color_num_colors(1) = 11
>>>       color_file_names(2)='blackbody_johnson.dat'
>>>       color_num_colors(2)=5
>>>       color_file_names(3)='custom_color_file.dat'
>>>       color_num_colors(3)=5
>>>
>>> 3. Finally, in the "history_columns.list" file, I add the following:
>>>           abs_mag Kepler
>>>       abs_mag TESS
>>>       abs_mag Gaia_G
>>>       abs_mag Gaia_BP
>>>       abs_mag Gaia_RP
>>>
>>> I encounter the warning: "Warning found duplicated color data for (T,
>>> log g, M/H)" (probably because of overlapping parameter space from
>>> 'lcb98cor.dat') and the following error:
>>>
>>>   bad filter name: Kepler
>>>  bad filter name: TESS
>>>  bad filter name: Gaia_G
>>>  bad filter name: Gaia_BP
>>>
>>> (but strangely no mention of Gaia_RP) before it terminates.
>>>
>>> May I please know what I'm missing?
>>> Thank you!
>>> --
>>> Dr. Susmita Das
>>> Department of Physics & Astrophysics
>>> University of Delhi, Delhi - 110007
>>> +91-8373975203
>>> _______________________________________________
>>> mesa-users at lists.mesastar.org
>>> https://lists.mesastar.org/mailman/listinfo/mesa-users
>>>
>>> _______________________________________________
>> mesa-users at lists.mesastar.org
>> https://lists.mesastar.org/mailman/listinfo/mesa-users
>>
>>

-- 
Dr. Susmita Das
Department of Physics & Astrophysics
University of Delhi, Delhi - 110007
+91-8373975203
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20220307/4ee488c8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mesa.png
Type: image/png
Size: 95792 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20220307/4ee488c8/attachment.png>


More information about the Mesa-users mailing list