to fill the array object bolcon if it has the right temperature, but after adding the if it doesn’t fill the array, if i remove the array it fills the array but add bolcon -2 to all values.
This function creates a new array with the columns:
I created >temperature = Object.values(newDataPlanetas).map(d => d.st_teff)
this flat array to use instead of >newDataPlanetas.st_teff
(which doesn’t give me the entire column)
I want to iterate that column so i can compare temperatures and assign the right bolcon and spect class according to the temperature.
Here’s the link.
I need to iterate through the st_teff (star temp) column, so i can assign the correct spec and bolcon, to calculate the absolute magnitude and then calculate the luminosity.