IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37668


Ignore:
Timestamp:
Nov 24, 2014, 4:21:52 AM (12 years ago)
Author:
eugene
Message:

i-band only for now; truncate to 0,360-90,90

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

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/get_image_patch.c

    r37532 r37668  
    125125  ALLOCATE (output, SkyRegion, 1);
    126126
    127   output->Dmin = region->Dmin - boundary;
    128   output->Dmax = region->Dmax + boundary;
     127  output->Dmin = MAX (-90.0, region->Dmin - boundary);
     128  output->Dmax = MIN (+90.0, region->Dmax + boundary);
     129
     130  if ((region->Rmax == 360.0) && (region->Rmin == 0.0)) {
     131    output->Rmin = region->Rmin;
     132    output->Rmax = region->Rmax;
     133    return output;
     134  }
    129135
    130136  float dRmin = boundary / cos (RAD_DEG*region->Dmin);
  • branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/load_template_images.c

    r37600 r37668  
    5353      }
    5454    }
    55     if (!childImage) {
    56       fprintf (stderr, "!");
    57       // skip this one?
    58       continue;
    59     }
     55    if (!childImage) continue;
     56
    6057    // XXX hard=wire the photcode range for now (just i-band)
    61     // if (childImage->photcode < 10200) continue;
    62     // if (childImage->photcode < 10277) continue;
     58    if (childImage->photcode < 10200) continue;
     59    if (childImage->photcode > 10277) continue;
    6360
    6461    refimage[Nrefimage].secz     = childImage->secz;
Note: See TracChangeset for help on using the changeset viewer.