IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 24, 2020, 4:01:13 PM (6 years ago)
Author:
eugene
Message:

adding recipe values PSASTRO.REFSTAR.CLUMP.NITER, PSASTRO.REFSTAR.CLUMP.SCALE (defaulting to 150, 3 as previously defined); adding log messages to track timing; adding chip-only iteration-depended fitting order; chip-only fitting needs to use bilevel astrometry if the toTPA transformation has order > 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroOneChipFit.c

    r39926 r41285  
    3636
    3737    // select the desired chip order
    38     REQUIRED_RECIPE_VALUE (int order, "PSASTRO.CHIP.ORDER", S32);
     38    REQUIRED_RECIPE_VALUE (int defaultOrder, "PSASTRO.CHIP.ORDER", S32);
    3939
    4040    // allowed limits for valid solutions
     
    5757        }
    5858
     59        sprintf (name, "PSASTRO.ONE.CHIP.ORDER.N%d", iter);
     60        int order = psMetadataLookupS32 (&status, recipe, name);
     61        if (!status) {
     62            order = defaultOrder;
     63        }
    5964
    6065        // use small radius to match stars
     
    7681            match = unique;
    7782        }
     83
     84        // XXX check if we correctly applied the new transformation:
     85        if (psTraceGetLevel("psastro.dump") > 0) {
     86          char *filename = NULL;
     87          char *chipname = psMetadataLookupStr (&status, chip->concepts, "CHIP.NAME");
     88          psStringAppend (&filename, "match.pref.%s.%d.dat", chipname, iter);
     89          psastroDumpMatchedStars (filename, rawstars, refstars, match);
     90          psFree (filename);
     91          filename = NULL;
     92        }
     93
    7894
    7995        // modify the order to correspond to the actual number of matched stars:
     
    137153        psastroUpdateChipToFPA (fpa, chip); // updates PSASTRO.RAWSTARS and PSASTRO.REFSTARS
    138154
     155        // XXX check if we correctly applied the new transformation:
     156        if (psTraceGetLevel("psastro.dump") > 0) {
     157          char *filename = NULL;
     158          char *chipname = psMetadataLookupStr (&status, chip->concepts, "CHIP.NAME");
     159          psStringAppend (&filename, "match.post.%s.%d.dat", chipname, iter);
     160          psastroDumpMatchedStars (filename, rawstars, refstars, match);
     161          psFree (filename);
     162          filename = NULL;
     163        }
     164
    139165        // toSky converts from FPA & TPA units (microns) to sky units (radians)
    140166        float plateScale = 0.5*(fpa->toSky->Xs + fpa->toSky->Ys)*3600.0*PM_DEG_RAD;
Note: See TracChangeset for help on using the changeset viewer.