IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Initial Version and Version 1 of Adding_fields_to_the_rawImage,_rawExp_tables


Ignore:
Timestamp:
Feb 24, 2009, 4:23:53 PM (17 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Adding_fields_to_the_rawImage,_rawExp_tables

    v1 v1  
     1* add the desired fields to the table in dbconfig.  dbconfig/tasks.md contains the entries for rawExp and rawImfile
     2    M1_x        F32         0.0
     3
     4 * add corresponding entries in the ippTool/src/regtoolConfig.c file
     5    psMetadataAddF32(addprocessedimfileArgs, PS_LIST_TAIL, "-M1_x", 0, "define M1 X position", NAN);
     6    psMetadataAddF32(addprocessedexpArgs, PS_LIST_TAIL, "-M1_x", 0, "define M1 X position", NAN);
     7
     8 * add the entries (in ippTool/src/regtool.c) to the newToRaw functions and the corresponding row alloc (the new RowAlloc api will give a compile time error if the correct entries are not added.
     9    psF32 M1_x = psMetadataLookupF32(&status, config->args, "-M1_x");
     10
     11 * define the header translations in the ippconfig/CAMERA/format*.config (TRANSLATION METADATA)
     12  FPA.M1X         STR     M1X
     13
     14 * add the corresponding entry to the ippconfig/recipes/ppStats.config file (REGISTER METADATA)
     15  CONCEPT       STR     FPA.M1X         # Primary x position
     16
     17 * add the corresponding entries to the STATS structure in register_imfile.pl and register_exp.pl
     18  { name => "FPA.M1X",        type => "constant", flag => "-M1_x",            dtype => "float"  }, # M1X
     19
     20 * add the new concepts to psModules/src/concepts/pmConcepts.c
     21  psMetadataItem *item = psMetadataItemAllocF32("FPA.M1X", "Primary Mirror X Position", NAN);
     22  pmConceptRegister(item, NULL, NULL, false, PM_FPA_LEVEL_FPA);
     23  psFree(item);