Francis> Welcome to ISIS Version 1.0.48 Francis> Copyright (C) 1998, 2003 Massachusetts Institute of Technology isis> foo=fits_read_header("acisf02017N001_e2_src2.fits"); Francis> Not implemented Francis> acisf02017N001_e2_src2.fits isis> fp=fits_open_file("acisf02017N001_e2_src2.fits","r"); isis> foo=fits_read_header(fp); Francis> Not implemented Francis> Fits_File_Type isis> Francis> Are these routines really not there yet, or am I missing something? Really not there. I've bugged John D. about this (and he's thinking about it). You can read a keyword with fits_read_key When I work w/ fits files in idl, I usually read data and header, modify the header slightly (history or comment...) and write back. What I resorted to in my contamarf script were some of the low-level fits routines: .. () = system( sprintf("cp %s %s", arf_in, arf_out ) ); () = system( sprintf("chmod u+w %s", arf_out ) ); variable col, hs ; variable fp = fits_open_file( arf_out + "[SPECRESP]", "w" ); () = _fits_get_colnum (fp, "SPECRESP", &col); () = _fits_write_col (fp, col, 1, 1, arf ); hs = sprintf ("contamarf: tstart = %f", tstart); () = _fits_write_history (fp, hs); hs = sprintf ("contamarf: contam file = %s", Acis_Contamination_File); () = _fits_write_history (fp, hs); fp = 0; but the _fits_ ones are undocumented, and should be supplanted with fits_ when they are done. If it's convenient, you could probably import varmm. -- Dave ---- You received this message because you are subscribed to the isis-users list. To unsubscribe, send a message to isis-users-request_at_email.domain.hiddenwith the first line of the message as: unsubscribeReceived on Tue Mar 18 2003 - 14:05:17 EST
This archive was generated by hypermail 2.2.0 : Thu Mar 15 2007 - 08:45:50 EDT