Hello! I know it's been ~10 years since this issue was last brought up (ie #133), but I was wondering if there is now a way to read in templates from another file? I have something like 100 templates (I am trying to fit individual stellar velocities as opposed to galaxy redshifts, so I have my own set of specific synthetic spectra I'd like to use), and it is pain when all the spectral fluxes are just hardcoded into the templates.js file -- I wrote a python script to write the javascript dictionary part of the templates.js file for my given set of templates which I then copy/paste into the .js file, but this makes the file huge and laggy (though it works -- I am able to use my own set of templates). I tried reformatting the code to read in the template arrays from another file, but I don't know enough about javascript (this is my first time trying to read/modify js code) to make it work...
Another small question: if I understand correctly, the template arrays just take in the starting and ending wavelengths of the templates and whether the spacing is log-linear or not, but there's nowhere that specifies what the actual spacing is between wavelengths -- does it just assume that the templates are rebinned with one angstrom per bin/pixel? And is end_wavelength inclusive or exclusive?
Thank you!
Hello! I know it's been ~10 years since this issue was last brought up (ie #133), but I was wondering if there is now a way to read in templates from another file? I have something like 100 templates (I am trying to fit individual stellar velocities as opposed to galaxy redshifts, so I have my own set of specific synthetic spectra I'd like to use), and it is pain when all the spectral fluxes are just hardcoded into the templates.js file -- I wrote a python script to write the javascript dictionary part of the templates.js file for my given set of templates which I then copy/paste into the .js file, but this makes the file huge and laggy (though it works -- I am able to use my own set of templates). I tried reformatting the code to read in the template arrays from another file, but I don't know enough about javascript (this is my first time trying to read/modify js code) to make it work...
Another small question: if I understand correctly, the template arrays just take in the starting and ending wavelengths of the templates and whether the spacing is log-linear or not, but there's nowhere that specifies what the actual spacing is between wavelengths -- does it just assume that the templates are rebinned with one angstrom per bin/pixel? And is end_wavelength inclusive or exclusive?
Thank you!