IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38101


Ignore:
Timestamp:
Apr 9, 2015, 8:47:31 AM (11 years ago)
Author:
eugene
Message:

set R5,R6,R7 to use the SDSS apertures 5, 6, 7 = psphot cmf 2, 3, 4

Location:
branches/eam_branches/ipp-20150405/Ohana/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150405/Ohana/src/addstar/src/ReadXradFITS.c

    r37357 r38101  
    7272    }
    7373
    74     stars[i].lensing-> F_ApR5 = AperFlux   [Nap*Ncol + 3];
    75     stars[i].lensing->dF_ApR5 = AperFluxErr[Nap*Ncol + 3];
    76     stars[i].lensing->sF_ApR5 = AperFluxStd[Nap*Ncol + 3];
    77     stars[i].lensing->fF_ApR5 = AperFill   [Nap*Ncol + 3];
     74    // XXX this is all hard-wired and should make use of the headers.
     75    // psphot cmfs have 5 radial apertures:
     76    // array 0, 1, 2, 3, 4
     77    // SDSS  3, 4, 5, 6, 7
    7878
    79     stars[i].lensing-> F_ApR6 = AperFlux   [Nap*Ncol + 4];
    80     stars[i].lensing->dF_ApR6 = AperFluxErr[Nap*Ncol + 4];
    81     stars[i].lensing->sF_ApR6 = AperFluxStd[Nap*Ncol + 4];
    82     stars[i].lensing->fF_ApR6 = AperFill   [Nap*Ncol + 4];
     79    stars[i].lensing-> F_ApR5 = AperFlux   [Nap*Ncol + 2];
     80    stars[i].lensing->dF_ApR5 = AperFluxErr[Nap*Ncol + 2];
     81    stars[i].lensing->sF_ApR5 = AperFluxStd[Nap*Ncol + 2];
     82    stars[i].lensing->fF_ApR5 = AperFill   [Nap*Ncol + 2];
     83
     84    stars[i].lensing-> F_ApR6 = AperFlux   [Nap*Ncol + 3];
     85    stars[i].lensing->dF_ApR6 = AperFluxErr[Nap*Ncol + 3];
     86    stars[i].lensing->sF_ApR6 = AperFluxStd[Nap*Ncol + 3];
     87    stars[i].lensing->fF_ApR6 = AperFill   [Nap*Ncol + 3];
     88
     89    stars[i].lensing-> F_ApR7 = AperFlux   [Nap*Ncol + 4];
     90    stars[i].lensing->dF_ApR7 = AperFluxErr[Nap*Ncol + 4];
     91    stars[i].lensing->sF_ApR7 = AperFluxStd[Nap*Ncol + 4];
     92    stars[i].lensing->fF_ApR7 = AperFill   [Nap*Ncol + 4];
    8393    Nap ++;
    8494  }
  • branches/eam_branches/ipp-20150405/Ohana/src/kapa2/src/InterpretKeys.c

    r38062 r38101  
    11# include "Ximage.h"
     2# define FILTER_MODS 1
    23
    34int InterpretKeys (Graphic *graphic, XKeyEvent *event) {
     
    3233    // skip the following keys:
    3334    if (name == NULL) goto skip_cursor;
    34     if (!strcmp (name, "Shift_L")) goto skip_cursor;
    35     if (!strcmp (name, "Shift_R")) goto skip_cursor;
    36     if (!strcmp (name, "Control_L")) goto skip_cursor;
    37     if (!strcmp (name, "Control_R")) goto skip_cursor;
    38     if (!strcmp (name, "Alt_L")) goto skip_cursor;
    39     if (!strcmp (name, "Alt_R")) goto skip_cursor;
    40     if (!strcmp (name, "Super_L")) goto skip_cursor;
    41     if (!strcmp (name, "Super_R")) goto skip_cursor;
    42     if (!strcmp (name, "Caps_Lock")) goto skip_cursor;
    43     if (!strcmp (name, "Pause")) goto skip_cursor;
    44     if (!strcmp (name, "Continue")) goto skip_cursor;
    45     if (!strcmp (name, "Num_Lock")) goto skip_cursor;
    46     if (!strcmp (name, "Scroll_Lock")) goto skip_cursor;
    47     if (!strcmp (name, "Print")) goto skip_cursor;
    48     if (!strcmp (name, "(null)")) goto skip_cursor;
     35    if (FILTER_MODS) {
     36      if (!strcmp (name, "Shift_L")) goto skip_cursor;
     37      if (!strcmp (name, "Shift_R")) goto skip_cursor;
     38      if (!strcmp (name, "Control_L")) goto skip_cursor;
     39      if (!strcmp (name, "Control_R")) goto skip_cursor;
     40      if (!strcmp (name, "Alt_L")) goto skip_cursor;
     41      if (!strcmp (name, "Alt_R")) goto skip_cursor;
     42      if (!strcmp (name, "Super_L")) goto skip_cursor;
     43      if (!strcmp (name, "Super_R")) goto skip_cursor;
     44      if (!strcmp (name, "Caps_Lock")) goto skip_cursor;
     45      if (!strcmp (name, "Pause")) goto skip_cursor;
     46      if (!strcmp (name, "Continue")) goto skip_cursor;
     47      if (!strcmp (name, "Num_Lock")) goto skip_cursor;
     48      if (!strcmp (name, "Scroll_Lock")) goto skip_cursor;
     49      if (!strcmp (name, "Print")) goto skip_cursor;
     50      if (!strcmp (name, "(null)")) goto skip_cursor;
     51    }
    4952
    5053    Z = -1;
Note: See TracChangeset for help on using the changeset viewer.