Script to calculate the temperature and luminosity of the stars.
You should know: - spectral type in number (see the conversion table below), - extinction, - distance, - V or J magnitude of the star.
Use the standard values, like Kenyon and Hartamann 1995.
For information to estimate the spectral type, can see this web page: http://www.cida.gob.ve/~hernandj/SPTclass/sptclass.html
Conversion table of spectral type
SPT ---> NSPT
B ---> 20
A ---> 30
F ---> 40
G ---> 50
K0 ---> 60
K5 ---> 65
K6 ---> 66
K7 ---> 67
M0 ---> 68
M1 ---> 69
M2 ---> 70
M3 ---> 71