Basic Webpage source of the Exposure Time calculator (ETC) for the Liverpool Telescope, adapted for limiting magnitude.
jquery.chained.js
file and not loaded from appelsiini.netModifications for the ETC should always be made and tested locally (not on telescope)
script.js
and content.html
files to the correct directory (i.e. /var/www/html/TelInst/calc
) using standard wget commands to the raw github files. First mv the active files to an old version (rollback protection, and stops wget naming content.html.1 / script.js.1)mv content.html content_old.html
mv etc.js etc_old.js
wget https://raw.githubusercontent.com/LivTel/ETC_calcs/master/etc.js
wget https://raw.githubusercontent.com/LivTel/ETC_calcs/master/content.html
wget https://raw.githubusercontent.com/LivTel/ETC_calcs/master/jquery.chained.js
Once the deployment is tested and confirmed remove the old files to tidy up (they'll still be in the github repository should we need to roll back for any reason)
Refactoring should be done of the 'inline' javascript with the Spectroscopic and Imaging calculations, and moved to the etc.js file. The instrument characteristics (e.g. Pixelscale, Readnoise, Zeropoints) should be restructured in a JSON format.