IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 9, 2009, 8:41:52 AM (17 years ago)
Author:
eugene
Message:

changing RA & DEC search options to accept degrees, not radians (human interface)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/regtool.c

    r24014 r24733  
    887887    // XX test this out; need to make this consistent with the list in regtoolConfig.c
    888888    psMetadata *where = psMetadataAlloc();
    889     PXOPT_COPY_S64(config->args, where,  "-exp_id", "exp_id", "==");
    890     PXOPT_COPY_STR(config->args, where,  "-exp_name", "exp_name", "==");
    891     PXOPT_COPY_STR(config->args, where,  "-inst", "camera", "==");
    892     PXOPT_COPY_STR(config->args, where,  "-telescope", "telescope", "==");
    893     PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "dateobs", ">=");
    894     PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "dateobs", "<=");
    895     PXOPT_COPY_STR(config->args, where,  "-exp_tag", "exp_tag", "==");
    896     PXOPT_COPY_STR(config->args, where,  "-exp_type", "exp_type", "==");
    897     PXOPT_COPY_STR(config->args, where,  "-filelevel", "filelevel", "==");
    898     PXOPT_COPY_STR(config->args, where,  "-reduction", "reduction", "==");
    899     PXOPT_COPY_STR(config->args, where,  "-filter", "filter", "==");
    900     PXOPT_COPY_F32(config->args, where,  "-airmass_min", "airmass", ">=");
    901     PXOPT_COPY_F32(config->args, where,  "-airmass_max", "airmass", "<");
    902     PXOPT_COPY_F64(config->args, where,  "-ra_min", "ra", ">=");
    903     PXOPT_COPY_F64(config->args, where,  "-ra_max", "ra", "<");
    904     PXOPT_COPY_F64(config->args, where,  "-decl_min", "decl", ">=");
    905     PXOPT_COPY_F64(config->args, where,  "-decl_max", "decl", "<");
    906     PXOPT_COPY_F32(config->args, where,  "-exp_time_min", "exp_time", ">=");
    907     PXOPT_COPY_F32(config->args, where,  "-exp_time_max", "exp_time", "<");
    908     PXOPT_COPY_F32(config->args, where,  "-sat_pixel_frac_min", "sat_pixel_frac", ">=");
    909     PXOPT_COPY_F32(config->args, where,  "-sat_pixel_frac_max", "sat_pixel_frac", "<");
    910     PXOPT_COPY_F64(config->args, where,  "-bg_min", "bg", ">=");
    911     PXOPT_COPY_F64(config->args, where,  "-bg_max", "bg", "<");
    912     PXOPT_COPY_F64(config->args, where,  "-bg_stdev_min", "bg_stdev", ">=");
    913     PXOPT_COPY_F64(config->args, where,  "-bg_stdev_max", "bg_stdev", "<");
    914     PXOPT_COPY_F64(config->args, where,  "-bg_mean_stdev_min", "bg_mean_stdev", ">=");
    915     PXOPT_COPY_F64(config->args, where,  "-bg_mean_stdev_max", "bg_mean_stdev", "<");
    916     PXOPT_COPY_F64(config->args, where,  "-alt_min", "alt", ">=");
    917     PXOPT_COPY_F64(config->args, where,  "-alt_max", "alt", "<");
    918     PXOPT_COPY_F64(config->args, where,  "-az_min", "az", ">=");
    919     PXOPT_COPY_F64(config->args, where,  "-az_max", "az", "<");
    920     PXOPT_COPY_F64(config->args, where,  "-ccd_temp_min", "ccd_temp", ">=");
    921     PXOPT_COPY_F64(config->args, where,  "-ccd_temp_max", "ccd_temp", "<");
    922     PXOPT_COPY_F64(config->args, where,  "-posang_min", "posang", ">=");
    923     PXOPT_COPY_F64(config->args, where,  "-posang_max", "posang", "<");
    924     PXOPT_COPY_STR(config->args, where,  "-object", "object", "==");
    925     PXOPT_COPY_F32(config->args, where,  "-solang_min", "solang", ">=");
    926     PXOPT_COPY_F32(config->args, where,  "-solang_max", "solang", "<");
     889    PXOPT_COPY_S64(config->args,   where,  "-exp_id", "exp_id", "==");
     890    PXOPT_COPY_STR(config->args,   where,  "-exp_name", "exp_name", "==");
     891    PXOPT_COPY_STR(config->args,   where,  "-inst", "camera", "==");
     892    PXOPT_COPY_STR(config->args,   where,  "-telescope", "telescope", "==");
     893    PXOPT_COPY_TIME(config->args,  where, "-dateobs_begin", "dateobs", ">=");
     894    PXOPT_COPY_TIME(config->args,  where, "-dateobs_end", "dateobs", "<=");
     895    PXOPT_COPY_STR(config->args,   where,  "-exp_tag", "exp_tag", "==");
     896    PXOPT_COPY_STR(config->args,   where,  "-exp_type", "exp_type", "==");
     897    PXOPT_COPY_STR(config->args,   where,  "-filelevel", "filelevel", "==");
     898    PXOPT_COPY_STR(config->args,   where,  "-reduction", "reduction", "==");
     899    PXOPT_COPY_STR(config->args,   where,  "-filter", "filter", "==");
     900    PXOPT_COPY_F32(config->args,   where,  "-airmass_min", "airmass", ">=");
     901    PXOPT_COPY_F32(config->args,   where,  "-airmass_max", "airmass", "<");
     902    PXOPT_COPY_RADEC(config->args, where,  "-ra_min", "ra", ">=");
     903    PXOPT_COPY_RADEC(config->args, where,  "-ra_max", "ra", "<");
     904    PXOPT_COPY_RADEC(config->args, where,  "-decl_min", "decl", ">=");
     905    PXOPT_COPY_RADEC(config->args, where,  "-decl_max", "decl", "<");
     906    PXOPT_COPY_F32(config->args,   where,  "-exp_time_min", "exp_time", ">=");
     907    PXOPT_COPY_F32(config->args,   where,  "-exp_time_max", "exp_time", "<");
     908    PXOPT_COPY_F32(config->args,   where,  "-sat_pixel_frac_min", "sat_pixel_frac", ">=");
     909    PXOPT_COPY_F32(config->args,   where,  "-sat_pixel_frac_max", "sat_pixel_frac", "<");
     910    PXOPT_COPY_F64(config->args,   where,  "-bg_min", "bg", ">=");
     911    PXOPT_COPY_F64(config->args,   where,  "-bg_max", "bg", "<");
     912    PXOPT_COPY_F64(config->args,   where,  "-bg_stdev_min", "bg_stdev", ">=");
     913    PXOPT_COPY_F64(config->args,   where,  "-bg_stdev_max", "bg_stdev", "<");
     914    PXOPT_COPY_F64(config->args,   where,  "-bg_mean_stdev_min", "bg_mean_stdev", ">=");
     915    PXOPT_COPY_F64(config->args,   where,  "-bg_mean_stdev_max", "bg_mean_stdev", "<");
     916    PXOPT_COPY_F64(config->args,   where,  "-alt_min", "alt", ">=");
     917    PXOPT_COPY_F64(config->args,   where,  "-alt_max", "alt", "<");
     918    PXOPT_COPY_F64(config->args,   where,  "-az_min", "az", ">=");
     919    PXOPT_COPY_F64(config->args,   where,  "-az_max", "az", "<");
     920    PXOPT_COPY_F64(config->args,   where,  "-ccd_temp_min", "ccd_temp", ">=");
     921    PXOPT_COPY_F64(config->args,   where,  "-ccd_temp_max", "ccd_temp", "<");
     922    PXOPT_COPY_F64(config->args,   where,  "-posang_min", "posang", ">=");
     923    PXOPT_COPY_F64(config->args,   where,  "-posang_max", "posang", "<");
     924    PXOPT_COPY_STR(config->args,   where,  "-object", "object", "==");
     925    PXOPT_COPY_F32(config->args,   where,  "-solang_min", "solang", ">=");
     926    PXOPT_COPY_F32(config->args,   where,  "-solang_max", "solang", "<");
    927927
    928928    PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
Note: See TracChangeset for help on using the changeset viewer.