IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34488


Ignore:
Timestamp:
Sep 28, 2012, 2:34:58 PM (14 years ago)
Author:
Serge CHASTEL
Message:

SEEING is now the mean of fwhm_maj

Location:
trunk/ppTranslate/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppTranslate/src/ppMopsRead.c

    r34486 r34488  
    9595    det->az = psMetadataLookupF64(NULL, header, "FPA.AZ");
    9696    det->mjd = psMetadataLookupF64(NULL, header, "MJD-OBS") + det->exptime / 2.0 / 3600 / 24;
    97 
    98     det->seeing = (float) 0.5 * (psMetadataLookupF32(NULL, header, "FWHM_MAJ") +
    99                                  psMetadataLookupF32(NULL, header, "FWHM_MIN"));
    100 
     97    //The global SEEING is the mean of all defined FWHM_MAJ
     98    det->seeing = psMetadataLookupF32(NULL, header, "FWHM_MAJ");
    10199    det->naxis1 = psMetadataLookupS32(NULL, header, "IMNAXIS1"); // Number of columns
    102100    det->naxis2 = psMetadataLookupS32(NULL, header, "IMNAXIS2"); // Number of rows
    103 
    104101    psFree(header);
    105102
     
    163160      }
    164161    }
    165 
    166162    psFitsClose(fits);
    167163
     
    247243      numGood++;
    248244    }
    249     det->seeing *= ((float) plateScale) / ((float) numGood);
    250245    det->numGood = numGood;
    251246
  • trunk/ppTranslate/src/ppMopsWrite.c

    r34486 r34488  
    5353  for (int d = 0; d < detections->n; d++) {
    5454    if ( (detections->data[d] != NULL) && (isfinite(((ppMopsDetections*) detections->data[d])->seeing)) ) {
    55       seeing += (((ppMopsDetections*) detections->data[d])->seeing)*((float) (((ppMopsDetections*) detections->data[d])->numGood));
    56       totalGood += (((ppMopsDetections*) detections->data[d])->numGood);
     55      seeing += ((ppMopsDetections*) detections->data[d])->seeing;
     56      totalGood += 1;
    5757    }
    5858  }
Note: See TracChangeset for help on using the changeset viewer.