IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 9, 2019, 4:40:10 PM (7 years ago)
Author:
eugene
Message:

allow the extraction and the cut to extend beyond the valid image pixels (and fill with nan values)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20190329/src/opihi/mana/deimos_mkslit.c

    r40771 r40830  
    4747  }
    4848
     49  // either flux or fluxbins must be specified to define output size
     50  int profilebins = 0;
     51  if ((N = get_argument (argc, argv, "-profilebins"))) {
     52    remove_argument (N, &argc, argv);
     53    profilebins = atoi (argv[N]);
     54    remove_argument (N, &argc, argv);
     55  }
     56
    4957  // for a red vs blu spline, we need to specify the split point
    5058  // XXX this is REALLY ad-hoc for Deimos.  not sure how to make
     
    7482
    7583  // define the output window
    76   int Nx = 2*profile[0].Nelements + 1;
     84  // if no profile half-width is specified, use supplied profile
     85  int Nx = profilebins ? 2*profilebins + 1 : 2*profile[0].Nelements + 1;
    7786  int Ny = flux ? flux[0].Nelements : fluxbins;
    7887 
Note: See TracChangeset for help on using the changeset viewer.