IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28673


Ignore:
Timestamp:
Jul 13, 2010, 6:08:15 PM (16 years ago)
Author:
bills
Message:

add parameters to set overlap of skycells made with -mode local

Location:
trunk/Ohana/src/addstar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/include/skycells.h

    r27435 r28673  
    7272double CENTER_RA, CENTER_DEC;
    7373double RANGE_RA,  RANGE_DEC;
     74double OVERLAP_RA, OVERLAP_DEC;
    7475
    7576double EULER_A;
  • trunk/Ohana/src/addstar/src/args_skycells.c

    r23914 r28673  
    8686      help ();
    8787    }
     88    OVERLAP_RA = 0;
     89    OVERLAP_DEC = 0;
     90    if ((N = get_argument (argc, argv, "-overlap"))) {
     91      remove_argument (N, &argc, argv);
     92      OVERLAP_RA  = atof (argv[N]);
     93      remove_argument (N, &argc, argv);
     94      OVERLAP_DEC  = atof (argv[N]);
     95      remove_argument (N, &argc, argv);
     96    }
    8897  }
    8998
     
    113122  }
    114123
    115   /* pixel scale (arcsec/pixel) */
     124  /* padding fraction */
    116125  PADDING = 0.0;
    117126  if ((N = get_argument (argc, argv, "-padding"))) {
  • trunk/Ohana/src/addstar/src/sky_tessalation.c

    r28241 r28673  
    671671  snprintf (format, 24, "%s.%%0%dd", input[0].name, Ndigit);
    672672
     673  // if requested extend, the skycell boundaries so that skycells overlap
     674  int pad_x = (int) (OVERLAP_RA / SCALE);
     675  int pad_y = (int) (OVERLAP_DEC / SCALE);
     676
    673677  N = 0;
    674678  for (j = 0; j < Ny; j++) {
     
    679683
    680684      snprintf (output[N].name, DVO_IMAGE_NAME_LEN, format, N);
    681       output[N].NX = NX;
    682       output[N].NY = NY;
     685      output[N].NX = NX + 2 * pad_x;
     686      output[N].NY = NY + 2 * pad_y;
    683687      output[N].photcode = input[0].photcode;
    684688
    685       output[N].coords.crpix1 = input[0].coords.crpix1 - i*NX;
    686       output[N].coords.crpix2 = input[0].coords.crpix2 - j*NY;
     689      output[N].coords.crpix1 = input[0].coords.crpix1 - i*NX + pad_x;
     690      output[N].coords.crpix2 = input[0].coords.crpix2 - j*NY + pad_y;
    687691      N++;
    688692    }
Note: See TracChangeset for help on using the changeset viewer.