let s_path_file =null// s_path_file = './files/M-31Andromed220221022931.FITS'// s_path_file = './files/2023-10-13T04-00-32_m51_Clear_200s_Jonas-.fts'
s_path_file ='./files/2023-10-12T19-50-50_Coordinates_Halpha_200s_Jonas-.fts'// s_path_file = './files/HorseHead.fits'let a_n_u8 =null;// fetch a file (get the bytes)if(b_deno){
a_n_u8 =awaitDeno.readFile(s_path_file);}if(!b_deno){
a_n_u8 =awaitf_a_n_u8__from_s_url(s_path_file);}
get a o_file object
let o_file__fits =awaitf_o_file__fits__from_a_n_u8(
a_n_u8,false//b_strict (some fits have comments exceeding 80characters etc, wich may break the parsing if here is passed 'true'));
get a canvas with the image data already on it
let o_canvas =awaitf_o_canvas_nonmanipulated__from_o_file__fits(o_file__fits);console.log(o_canvas)// document.body.appendChild(o_canvas)
get a canvas with the autostretched image data
let o_canvas_autostretched =awaitf_o_canvas_autostretched__from_o_file__fits(o_file__fits);console.log(o_canvas_autostretched)// document.body.appendChild(o_canvas_autostretched)console.log(o_file__fits)console.log('done')let a_s_part = s_path_file.split('/').pop().split('.');let s_name_file_out =[...a_s_part.slice(0,-1),'_done', a_s_part.at(-1),'png'].join('.')