fitsfile.h | fitsfile.h | |||
---|---|---|---|---|
/*** File fitsfile.h FITS and IRAF file access subroutines | /*** File fitsfile.h FITS and IRAF file access subroutines | |||
*** February 23, 2006 | *** October 5, 2006 | |||
*** By Doug Mink, dmink@cfa.harvard.edu | *** By Doug Mink, dmink@cfa.harvard.edu | |||
*** Harvard-Smithsonian Center for Astrophysics | *** Harvard-Smithsonian Center for Astrophysics | |||
*** Copyright (C) 1996-2006 | *** Copyright (C) 1996-2006 | |||
*** Smithsonian Astrophysical Observatory, Cambridge, MA, USA | *** Smithsonian Astrophysical Observatory, Cambridge, MA, USA | |||
This library is free software; you can redistribute it and/or | This library is free software; you can redistribute it and/or | |||
modify it under the terms of the GNU Lesser General Public | modify it under the terms of the GNU Lesser General Public | |||
License as published by the Free Software Foundation; either | License as published by the Free Software Foundation; either | |||
version 2 of the License, or (at your option) any later version. | version 2 of the License, or (at your option) any later version. | |||
skipping to change at line 249 | skipping to change at line 249 | |||
char *fd2et(); /* UT in FITS format to ET (or TDT or TT) in FITS format */ | char *fd2et(); /* UT in FITS format to ET (or TDT or TT) in FITS format */ | |||
double jd2jed(); /* Convert from Julian Date to Julian Ephemeris Date */ | double jd2jed(); /* Convert from Julian Date to Julian Ephemeris Date */ | |||
double jed2jd(); /* Convert from Julian Ephemeris Date to Julian Date */ | double jed2jd(); /* Convert from Julian Ephemeris Date to Julian Date */ | |||
double ets2ts(); /* ET in seconds since 1950-01-01 to UT in same format */ | double ets2ts(); /* ET in seconds since 1950-01-01 to UT in same format */ | |||
double ts2ets(); /* UT in seconds since 1950-01-01 to ET in same format */ | double ts2ets(); /* UT in seconds since 1950-01-01 to ET in same format */ | |||
void dt2et(); /* yyyy.ddmm and hh.mmsss to Ephemeris Time */ | void dt2et(); /* yyyy.ddmm and hh.mmsss to Ephemeris Time */ | |||
void edt2dt(); /* yyyy.ddmm and hh.mmsss Ephemeris Time to UT */ | void edt2dt(); /* yyyy.ddmm and hh.mmsss Ephemeris Time to UT */ | |||
double utdt(); /* Compute difference between UT and dynamical time (ET-UT) */ | double utdt(); /* Compute difference between UT and dynamical time (ET-UT) */ | |||
char *fd2gst(); /* Convert from FITS UT date to Greenwich Sidereal T ime */ | char *fd2gst(); /* Convert from FITS UT date to Greenwich Sidereal T ime */ | |||
void dt2gst(); /* Convert from UT as yyyy.mmdd hh.mmssss to Greenwich Sider eal Time */ | void dt2gst(); /* Convert from UT as yyyy.mmdd hh.mmssss to Greenwich Sider eal Time */ | |||
double jd2gst(); /* Calculate Greenwich Sidereal Time given Julian Date */ | ||||
double ts2gst(); /* Calculate Greenwich Sidereal Time given Universal Time */ | double ts2gst(); /* Calculate Greenwich Sidereal Time given Universal Time */ | |||
char *fd2lst(); /* Convert from FITS UT date to Local Sidereal Time | ||||
*/ | ||||
void dt2lst(); /* Convert from UT as yyyy.mmdd hh.mmssss to Local Sidereal | ||||
Time */ | ||||
double ts2lst(); /* Calculate Local Sidereal Time given Universal Time */ | ||||
double jd2lst(); /* Calculate Local Sidereal Time given Julian Date */ | ||||
double eqeqnx(); /* Compute equation of eqinoxes from Julian Date */ | ||||
char *fd2mst(); /* Convert from FITS UT date to Mean Sidereal Time * | ||||
/ | ||||
double jd2mst(); /* Convert from Julian Date to Mean Sidereal Time */ | ||||
double jd2mst2(); /* Convert from Julian Date to Mean Sidereal Time */ | ||||
void dt2mst(); /* Convert from UT as yyyy.mmdd hh.mmssss to Mean Sidereal T | ||||
ime */ | ||||
double lst2ts(); /* Calculate Universal Time given Local Sidereal Time */ | ||||
double lst2dt(); /* Calculate UT as yyyy.mmdd hh.mmsss given UT date and Lo | ||||
cal Sidereal Time */ | ||||
double lst2jd(); /* Calculate UT as Julian Date given UT date and Local Sid | ||||
ereal Time */ | ||||
char *lst2fd(); /* Calculate FITS UT date and time given UT date and Local | ||||
Sidereal Time */ | ||||
char *gst2fd(); /* Calculate FITS UT date and time given Greenwich Sidereal | ||||
Time */ | ||||
double gst2jd(); /* Calculate FITS UT Julian Date given Greenwich Sidereal | ||||
Time */ | ||||
char *mst2fd(); /* Calculate FITS UT date and time given Mean Sidereal Time | ||||
*/ | ||||
double mst2jd(); /* Calculate FITS UT Julian Date given Mean Sidereal Time | ||||
*/ | ||||
char *fd2mst(); /* Convert from FITS UT date to Mean Sidereal Time * / | char *fd2mst(); /* Convert from FITS UT date to Mean Sidereal Time * / | |||
void dt2mst(); /* Convert from UT as yyyy.mmdd hh.mmssss to Mean Sidereal T ime */ | void dt2mst(); /* Convert from UT as yyyy.mmdd hh.mmssss to Mean Sidereal T ime */ | |||
double ts2mst(); /* Calculate Mean Sidereal Time given Universal Time */ | double ts2mst(); /* Calculate Mean Sidereal Time given Universal Time */ | |||
double mjd2mhjd(); /* Convert from Modified Julian Date to Heliocentric MJD | ||||
*/ | ||||
double mjd2hjd(); /* Convert from Modified Julian Date to Heliocentric JD * | ||||
/ | ||||
double mhjd2mjd(); /* Convert from Heliocentric Modified Julian Date to MJD | ||||
*/ | ||||
void mjd2doy(); /* Convert from Modified Julian Date to Day of Year */ | ||||
double jd2hjd(); /* Convert from Julian Date to Heliocentric Julian Date */ | ||||
double jd2mhjd(); /* Convert from Julian Date to Modified Heliocentric JD * | ||||
/ | ||||
double hjd2jd(); /* Convert from Heliocentric Julian Date to Julian Date */ | ||||
double hjd2mjd(); /* Convert from Heliocentric Julian Date to Modified JD * | ||||
/ | ||||
double hjd2mhjd(); /* Convert from Heliocentric Julian Date to Modified HJD | ||||
*/ | ||||
void setdatedec(); /* Set number of decimal places in FITS dates */ | ||||
void setlongitude(); /* Longitude for sidereal time in or out */ | ||||
void compnut(); /* Compute nutation in longitude and obliquity and m ean obliquity*/ | void compnut(); /* Compute nutation in longitude and obliquity and m ean obliquity*/ | |||
#endif /* fitsfile_h_ */ | #endif /* fitsfile_h_ */ | |||
/* May 31 1996 Use stream I/O for reading as well as writing | /* May 31 1996 Use stream I/O for reading as well as writing | |||
* Jun 12 1996 Add byte-swapping subroutines | * Jun 12 1996 Add byte-swapping subroutines | |||
* Jul 10 1996 FITS header now allocated in subroutines | * Jul 10 1996 FITS header now allocated in subroutines | |||
* Jul 17 1996 Add FITS table column extraction subroutines | * Jul 17 1996 Add FITS table column extraction subroutines | |||
* Aug 6 1996 Add MOVEPIX, HDEL and HCHANGE declarations | * Aug 6 1996 Add MOVEPIX, HDEL and HCHANGE declarations | |||
* | * | |||
skipping to change at line 310 | skipping to change at line 340 | |||
* | * | |||
* Feb 27 2004 Add fillvec() and fillvec1() | * Feb 27 2004 Add fillvec() and fillvec1() | |||
* May 3 2004 Add setfitsinherit() | * May 3 2004 Add setfitsinherit() | |||
* May 6 2004 Add fitswexhead() | * May 6 2004 Add fitswexhead() | |||
* Aug 27 2004 Add fitsheadsize() | * Aug 27 2004 Add fitsheadsize() | |||
* | * | |||
* Oct 14 2005 Add tsd2fd(), tsd2dt(), epj2ep(), epb2ep(), tsi2dt() | * Oct 14 2005 Add tsd2fd(), tsd2dt(), epj2ep(), epb2ep(), tsi2dt() | |||
* | * | |||
* Feb 23 2006 Add fitsrtail() to read appended FITS header | * Feb 23 2006 Add fitsrtail() to read appended FITS header | |||
* Feb 23 2006 Add istiff(), isjpeg(), isgif() to check TIFF, JPEG, GIF fil es | * Feb 23 2006 Add istiff(), isjpeg(), isgif() to check TIFF, JPEG, GIF fil es | |||
* Sep 6 2006 Add heliocentric time conversions | ||||
* Oct 5 2006 Add local sidereal time conversions | ||||
*/ | */ | |||
End of changes. 5 change blocks. | ||||
1 lines changed or deleted | 50 lines changed or added | |||
fitshead.h | fitshead.h | |||
---|---|---|---|---|
/*** File fitshead.h FITS header access subroutines | /*** File fitshead.h FITS header access subroutines | |||
*** May 22, 2006 | *** June 29, 2006 | |||
*** By Doug Mink, dmink@cfa.harvard.edu | *** By Doug Mink, dmink@cfa.harvard.edu | |||
*** Harvard-Smithsonian Center for Astrophysics | *** Harvard-Smithsonian Center for Astrophysics | |||
*** Copyright (C) 1996-2006 | *** Copyright (C) 1996-2006 | |||
*** Smithsonian Astrophysical Observatory, Cambridge, MA, USA | *** Smithsonian Astrophysical Observatory, Cambridge, MA, USA | |||
This library is free software; you can redistribute it and/or | This library is free software; you can redistribute it and/or | |||
modify it under the terms of the GNU Lesser General Public | modify it under the terms of the GNU Lesser General Public | |||
License as published by the Free Software Foundation; either | License as published by the Free Software Foundation; either | |||
version 2 of the License, or (at your option) any later version. | version 2 of the License, or (at your option) any later version. | |||
skipping to change at line 148 | skipping to change at line 148 | |||
const char* in); /* Character string (hh:mm:ss.sss or dd.dddd ) */ | const char* in); /* Character string (hh:mm:ss.sss or dd.dddd ) */ | |||
double str2dec( /* Return Dec in degrees from string */ | double str2dec( /* Return Dec in degrees from string */ | |||
const char* in); /* Character string (dd:mm:ss.sss or dd.dddd ) */ | const char* in); /* Character string (dd:mm:ss.sss or dd.dddd ) */ | |||
int isnum( /* Return 1 if number, else 0 */ | int isnum( /* Return 1 if number, else 0 */ | |||
const char* string); /* Character string which may be a number */ | const char* string); /* Character string which may be a number */ | |||
int notnum( /* Return 0 if number, else 1 */ | int notnum( /* Return 0 if number, else 1 */ | |||
const char* string); /* Character string which may be a number */ | const char* string); /* Character string which may be a number */ | |||
int numdec( /* Return number of decimal places i n number */ | int numdec( /* Return number of decimal places i n number */ | |||
const char* string); /* Character string which may be a number */ | const char* string); /* Character string which may be a number */ | |||
void strfix( /* Clean up extraneous characters in string | ||||
*/ | ||||
char* string, /* Character string which may be a number */ | ||||
int fillblank, /* If 1, blanks are replaced by underscores | ||||
*/ | ||||
int dropzero); /* If 1, drop trailing zeroes from string */ | ||||
char *getltime(); /* Return current local time in ISO format * / | char *getltime(); /* Return current local time in ISO format * / | |||
char *getutime(); /* Return current UT as an ISO-format string */ | char *getutime(); /* Return current UT as an ISO-format string */ | |||
/* Subroutines in iget.c */ | /* Subroutines in iget.c */ | |||
int mgetstr( /* Extract string from multiline FITS keywor d */ | int mgetstr( /* Extract string from multiline FITS keywor d */ | |||
const char* hstring, /* FITS header string */ | const char* hstring, /* FITS header string */ | |||
const char* mkey, /* FITS keyword root _n added for extra line s */ | const char* mkey, /* FITS keyword root _n added for extra line s */ | |||
const char* keyword, /* IRAF keyword */ | const char* keyword, /* IRAF keyword */ | |||
const int lstr, /* maximum length of returned string */ | const int lstr, /* maximum length of returned string */ | |||
skipping to change at line 319 | skipping to change at line 323 | |||
extern char *ksearch(); | extern char *ksearch(); | |||
/* Find beginning of fillable blank line before FITS header keyword */ | /* Find beginning of fillable blank line before FITS header keyword */ | |||
extern char *blsearch(); | extern char *blsearch(); | |||
/* Search for substring s2 within string s1 */ | /* Search for substring s2 within string s1 */ | |||
extern char *strsrch (); /* s1 null-terminated */ | extern char *strsrch (); /* s1 null-terminated */ | |||
extern char *strnsrch (); /* s1 ls1 characters long */ | extern char *strnsrch (); /* s1 ls1 characters long */ | |||
extern char *strcsrch (); /* s1 null-terminated (case-insensitive) */ | extern char *strcsrch (); /* s1 null-terminated (case-insensitive) */ | |||
extern char *strncsrch (); /* s1 ls1 characters long (case-insensitive) */ | extern char *strncsrch (); /* s1 ls1 characters long (case-insensitive) */ | |||
extern void strfix(); /* Drop or change extraneous characters in string */ | ||||
/* Set length of header which is not null-terminated */ | /* Set length of header which is not null-terminated */ | |||
extern int hlength(); | extern int hlength(); | |||
/* Get length of current FITS header */ | /* Get length of current FITS header */ | |||
extern int gethlength(); | extern int gethlength(); | |||
/* Subroutines in iget.c */ | /* Subroutines in iget.c */ | |||
extern int mgetstr(); /* Previously allocated string from multiline keywor d */ | extern int mgetstr(); /* Previously allocated string from multiline keywor d */ | |||
extern int mgetr8(); /* double from multiline keyword */ | extern int mgetr8(); /* double from multiline keyword */ | |||
skipping to change at line 420 | skipping to change at line 425 | |||
* Aug 30 2002 Add strcsrch() and strncsrch() | * Aug 30 2002 Add strcsrch() and strncsrch() | |||
* | * | |||
* Sep 23 2003 Change mgets() to mgetstr() to avoid name collision at UCO L ick | * Sep 23 2003 Change mgets() to mgetstr() to avoid name collision at UCO L ick | |||
* Oct 20 2003 Add numdec() to return the number of decimal places in a str ing | * Oct 20 2003 Add numdec() to return the number of decimal places in a str ing | |||
* | * | |||
* Feb 26 2004 Add igetc(), formerly internal to iget.c | * Feb 26 2004 Add igetc(), formerly internal to iget.c | |||
* Jul 1 2004 Add setheadshrink() for hdel() | * Jul 1 2004 Add setheadshrink() for hdel() | |||
* Aug 30 2004 Add numdec() to non-C++ declarations | * Aug 30 2004 Add numdec() to non-C++ declarations | |||
* | * | |||
* May 22 2006 Add setleaveblank() to leave blank line where keyword is del eted | * May 22 2006 Add setleaveblank() to leave blank line where keyword is del eted | |||
* Jun 28 2006 Add strfix() to clean up characters in strings | ||||
*/ | */ | |||
End of changes. 4 change blocks. | ||||
1 lines changed or deleted | 9 lines changed or added | |||