IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 12, 2007, 12:27:55 PM (19 years ago)
Author:
jhoblitt
Message:

dev version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/src/ippdb.h

    r14061 r14169  
    13951395    char            *workdir;
    13961396    char            *workdir_state;
     1397    char            *reduction;
    13971398} newExpRow;
    13981399
     
    14091410    const char      *state,
    14101411    const char      *workdir,
    1411     const char      *workdir_state
     1412    const char      *workdir_state,
     1413    const char      *reduction
    14121414);
    14131415
     
    14451447    const char      *state,
    14461448    const char      *workdir,
    1447     const char      *workdir_state
     1449    const char      *workdir_state,
     1450    const char      *reduction
    14481451);
    14491452
     
    18111814    char            *filelevel;
    18121815    char            *workdir;
     1816    char            *reduction;
    18131817    char            *filter;
    18141818    psF32           airmass;
     
    18491853    const char      *filelevel,
    18501854    const char      *workdir,
     1855    const char      *reduction,
    18511856    const char      *filter,
    18521857    psF32           airmass,
     
    19081913    const char      *filelevel,
    19091914    const char      *workdir,
     1915    const char      *reduction,
    19101916    const char      *filter,
    19111917    psF32           airmass,
     
    25682574typedef struct {
    25692575    psS64           chip_id;
     2576    psS64           exp_id;
    25702577    char            *state;
    25712578    char            *workdir;
     
    25842591chipRunRow *chipRunRowAlloc(
    25852592    psS64           chip_id,
     2593    psS64           exp_id,
    25862594    const char      *state,
    25872595    const char      *workdir,
     
    26212629    psDB            *dbh,               ///< Database handle
    26222630    psS64           chip_id,
     2631    psS64           exp_id,
    26232632    const char      *state,
    26242633    const char      *workdir,
     
    27752784    FILE            *stream,            ///< a stream
    27762785    chipRunRow *object,    ///< an chipRunRow object
    2777     bool            mdcf                ///< format as mdconfig or simple
    2778 );
    2779 /** chipInputImfileRow data structure
    2780  *
    2781  * Structure for representing a single row of chipInputImfile table data.
    2782  */
    2783 
    2784 typedef struct {
    2785     psS64           chip_id;
    2786     psS64           exp_id;
    2787     char            *class_id;
    2788 } chipInputImfileRow;
    2789 
    2790 /** Creates a new chipInputImfileRow object
    2791  *
    2792  *  @return A new chipInputImfileRow object or NULL on failure.
    2793  */
    2794 
    2795 chipInputImfileRow *chipInputImfileRowAlloc(
    2796     psS64           chip_id,
    2797     psS64           exp_id,
    2798     const char      *class_id
    2799 );
    2800 
    2801 /** Creates a new chipInputImfile table
    2802  *
    2803  * @return true on success
    2804  */
    2805 
    2806 bool chipInputImfileCreateTable(
    2807     psDB            *dbh                ///< Database handle
    2808 );
    2809 
    2810 /** Deletes a chipInputImfile table
    2811  *
    2812  * @return true on success
    2813  */
    2814 
    2815 bool chipInputImfileDropTable(
    2816     psDB            *dbh                ///< Database handle
    2817 );
    2818 
    2819 /** Insert a single row into a table
    2820  *
    2821  * This function constructs and inserts a single row based on it's parameters.
    2822  *
    2823  * @return true on success
    2824  */
    2825 
    2826 bool chipInputImfileInsert(
    2827     psDB            *dbh,               ///< Database handle
    2828     psS64           chip_id,
    2829     psS64           exp_id,
    2830     const char      *class_id
    2831 );
    2832 
    2833 /** Deletes up to limit rows from the database and returns the number of rows actually deleted.
    2834  *
    2835  * @return A The number of rows removed or a negative value on error
    2836  */
    2837 
    2838 long long chipInputImfileDelete(
    2839     psDB            *dbh,               ///< Database handle
    2840     const psMetadata *where,            ///< Row match criteria
    2841     unsigned long long limit            ///< Maximum number of elements to delete
    2842 );
    2843 
    2844 /** Insert a single chipInputImfileRow object into a table
    2845  *
    2846  * This function constructs and inserts a single row based on it's parameters.
    2847  *
    2848  * @return true on success
    2849  */
    2850 
    2851 bool chipInputImfileInsertObject(
    2852     psDB            *dbh,               ///< Database handle
    2853     chipInputImfileRow *object             ///< chipInputImfileRow object
    2854 );
    2855 
    2856 /** Insert an array of chipInputImfileRow object into a table
    2857  *
    2858  * This function constructs and inserts multiple rows based on it's parameters.
    2859  *
    2860  * @return true on success
    2861  */
    2862 
    2863 bool chipInputImfileInsertObjects(
    2864     psDB            *dbh,               ///< Database handle
    2865     psArray         *objects            ///< array of chipInputImfileRow objects
    2866 );
    2867 
    2868 /** Insert data from a binary FITS table chipInputImfileRow into the database
    2869  *
    2870  * This function expects a psFits object with a FITS table as the first
    2871  * extension.  The table must have at least one row of data in it, that is of
    2872  * the appropriate format (number of columns and their type).  All other
    2873  * extensions are ignored.
    2874  *
    2875  * @return true on success
    2876  */
    2877 
    2878 bool chipInputImfileInsertFits(
    2879     psDB            *dbh,               ///< Database handle
    2880     const psFits    *fits               ///< psFits object
    2881 );
    2882 
    2883 /** Selects up to limit from the database and returns them in a binary FITS table
    2884  *
    2885  * This function assumes an empty psFits object and will create a FITS table
    2886  * as the first extension.
    2887  *
    2888  *  See psDBSelectRows() for documentation on the format of where.
    2889  *
    2890  * @return true on success
    2891  */
    2892 
    2893 bool chipInputImfileSelectRowsFits(
    2894     psDB            *dbh,               ///< Database handle
    2895     psFits          *fits,              ///< psFits object
    2896     const psMetadata *where,            ///< Row match criteria
    2897     unsigned long long limit            ///< Maximum number of elements to return
    2898 );
    2899 
    2900 /** Convert a chipInputImfileRow into an equivalent psMetadata
    2901  *
    2902  * @return A psMetadata pointer or NULL on error
    2903  */
    2904 
    2905 psMetadata *chipInputImfileMetadataFromObject(
    2906     const chipInputImfileRow *object             ///< fooRow to convert into a psMetadata
    2907 );
    2908 
    2909 /** Convert a psMetadata into an equivalent fooRow
    2910  *
    2911  * @return A chipInputImfileRow pointer or NULL on error
    2912  */
    2913 
    2914 chipInputImfileRow *chipInputImfileObjectFromMetadata(
    2915     psMetadata      *md                 ///< psMetadata to convert into a fooRow
    2916 );
    2917 /** Selects up to limit rows from the database and returns as chipInputImfileRow objects in a psArray
    2918  *
    2919  *  See psDBSelectRows() for documentation on the format of where.
    2920  *
    2921  * @return A psArray pointer or NULL on error
    2922  */
    2923 
    2924 psArray *chipInputImfileSelectRowObjects(
    2925     psDB            *dbh,               ///< Database handle
    2926     const psMetadata *where,            ///< Row match criteria
    2927     unsigned long long limit            ///< Maximum number of elements to return
    2928 );
    2929 /** Deletes a row from the database coresponding to an chipInputImfile
    2930  *
    2931  *  Note that a 'where' search psMetadata is constructed from each object and
    2932  *  used to find rows to delete.
    2933  *
    2934  * @return A The number of rows removed or a negative value on error
    2935  */
    2936 
    2937 bool chipInputImfileDeleteObject(
    2938     psDB            *dbh,               ///< Database handle
    2939     const chipInputImfileRow *object    ///< Object to delete
    2940 );
    2941 /** Deletes up to limit rows from the database and returns the number of rows actually deleted.
    2942  *
    2943  *  Note that a 'where' search psMetadata is constructed from each object and
    2944  *  used to find rows to delete.
    2945  *
    2946  * @return A The number of rows removed or a negative value on error
    2947  */
    2948 
    2949 long long chipInputImfileDeleteRowObjects(
    2950     psDB            *dbh,               ///< Database handle
    2951     const psArray   *objects,           ///< Array of objects to delete
    2952     unsigned long long limit            ///< Maximum number of elements to delete
    2953 );
    2954 /** Formats and prints an array of chipInputImfileRow objects
    2955  *
    2956  * When mdcf is set the formated output is in psMetadataConfig
    2957  * format, otherwise it is in a simple tabular format.
    2958  *
    2959  * @return true on success
    2960  */
    2961 
    2962 bool chipInputImfilePrintObjects(
    2963     FILE            *stream,            ///< a stream
    2964     psArray         *objects,           ///< An array of chipInputImfileRow objects
    2965     bool            mdcf                ///< format as mdconfig or simple
    2966 );
    2967 /** Formats and prints an chipInputImfileRow object
    2968  *
    2969  * When mdcf is set the formated output is in psMetadataConfig
    2970  * format, otherwise it is in a simple tabular format.
    2971  *
    2972  * @return true on success
    2973  */
    2974 
    2975 bool chipInputImfilePrintObject(
    2976     FILE            *stream,            ///< a stream
    2977     chipInputImfileRow *object,    ///< an chipInputImfileRow object
    29782786    bool            mdcf                ///< format as mdconfig or simple
    29792787);
     
    47314539    psF64           bg;
    47324540    psF64           bg_stdev;
     4541    psS16           fault;
    47334542} warpSkyfileRow;
    47344543
     
    47454554    const char      *path_base,
    47464555    psF64           bg,
    4747     psF64           bg_stdev
     4556    psF64           bg_stdev,
     4557    psS16           fault
    47484558);
    47494559
     
    47814591    const char      *path_base,
    47824592    psF64           bg,
    4783     psF64           bg_stdev
     4593    psF64           bg_stdev,
     4594    psS16           fault
    47844595);
    47854596
     
    53655176    psF64           bg;
    53665177    psF64           bg_stdev;
     5178    psS16           fault;
    53675179} diffSkyfileRow;
    53685180
     
    53775189    const char      *path_base,
    53785190    psF64           bg,
    5379     psF64           bg_stdev
     5191    psF64           bg_stdev,
     5192    psS16           fault
    53805193);
    53815194
     
    54115224    const char      *path_base,
    54125225    psF64           bg,
    5413     psF64           bg_stdev
     5226    psF64           bg_stdev,
     5227    psS16           fault
    54145228);
    54155229
     
    59835797    psF64           bg;
    59845798    psF64           bg_stdev;
     5799    psS16           fault;
    59855800} stackSumSkyfileRow;
    59865801
     
    59955810    const char      *path_base,
    59965811    psF64           bg,
    5997     psF64           bg_stdev
     5812    psF64           bg_stdev,
     5813    psS16           fault
    59985814);
    59995815
     
    60295845    const char      *path_base,
    60305846    psF64           bg,
    6031     psF64           bg_stdev
     5847    psF64           bg_stdev,
     5848    psS16           fault
    60325849);
    60335850
Note: See TracChangeset for help on using the changeset viewer.