Index: trunk/ippScripts/scripts/register_exp.pl
===================================================================
--- trunk/ippScripts/scripts/register_exp.pl	(revision 15740)
+++ trunk/ippScripts/scripts/register_exp.pl	(revision 15773)
@@ -57,6 +57,6 @@
 # values to extract from output metadata and the stats to calculate
 my $STATS = 
-   [   
-       #          PPSTATS KEYWORD         STATISTIC          CHIPTOOL FLAG
+   [   #          register imfile
+       #          label             STATISTIC          CHIPTOOL FLAG
        { name => "exp_name",        type => "constant",   flag => "-exp_name",        dtype => "string" }, # File level
        { name => "telescope",       type => "constant",   flag => "-telescope",       dtype => "string" }, # File level
@@ -66,4 +66,5 @@
        { name => "exp_type",        type => "constant",   flag => "-exp_type",        dtype => "string" }, # File level
        { name => "filter",          type => "constant",   flag => "-filter",          dtype => "string" }, # File level
+       { name => "comment",         type => "constant",   flag => "-comment",         dtype => "string" }, # ObsComment
        { name => "dateobs",         type => "constant",   flag => "-dateobs",         dtype => "string" }, # File level
        { name => "ccd_temp",        type => "mean",       flag => "-ccd_temp",        dtype => "float"  }, # CCD temperature
@@ -76,19 +77,27 @@
        { name => "alt",             type => "mean",       flag => "-alt",             dtype => "float"  }, # Altitude
        { name => "az",              type => "mean",       flag => "-az",              dtype => "float"  }, # Azimuth
-       { name => "M1_x",            type => "constant",   flag => "-M1_x",            dtype => "float"  }, # M1X
-       { name => "M1_y",            type => "constant",   flag => "-M1_y",            dtype => "float"  }, # M1Y
-       { name => "M1_z",            type => "constant",   flag => "-M1_z",            dtype => "float"  }, # M1Z
-       { name => "M1_tip",          type => "constant",   flag => "-M1_tip",          dtype => "float"  }, # M1TIP
-       { name => "M1_tilt",         type => "constant",   flag => "-M1_tilt",         dtype => "float"  }, # M1TILT
-       { name => "M2_x",            type => "constant",   flag => "-M2_x",            dtype => "float"  }, # M2X
-       { name => "M2_y",            type => "constant",   flag => "-M2_y",            dtype => "float"  }, # M2Y
-       { name => "M2_z",            type => "constant",   flag => "-M2_z",            dtype => "float"  }, # M2Z
-       { name => "M2_tip",          type => "constant",   flag => "-M2_tip",          dtype => "float"  }, # M2TIP
-       { name => "M2_tilt",         type => "constant",   flag => "-M2_tilt",         dtype => "float"  }, # M2TILT
+       { name => "m1_x",            type => "constant",   flag => "-m1_x",            dtype => "float"  }, # M1X
+       { name => "m1_y",            type => "constant",   flag => "-m1_y",            dtype => "float"  }, # M1Y
+       { name => "m1_z",            type => "constant",   flag => "-m1_z",            dtype => "float"  }, # M1Z
+       { name => "m1_tip",          type => "constant",   flag => "-m1_tip",          dtype => "float"  }, # M1TIP
+       { name => "m1_tilt",         type => "constant",   flag => "-m1_tilt",         dtype => "float"  }, # M1TILT
+       { name => "m2_x",            type => "constant",   flag => "-m2_x",            dtype => "float"  }, # M2X
+       { name => "m2_y",            type => "constant",   flag => "-m2_y",            dtype => "float"  }, # M2Y
+       { name => "m2_z",            type => "constant",   flag => "-m2_z",            dtype => "float"  }, # M2Z
+       { name => "m2_tip",          type => "constant",   flag => "-m2_tip",          dtype => "float"  }, # M2TIP
+       { name => "m2_tilt",         type => "constant",   flag => "-m2_tilt",         dtype => "float"  }, # M2TILT
        { name => "env_temperature", type => "constant",   flag => "-env_temperature", dtype => "float"  }, # external temp
        { name => "env_humidity",    type => "constant",   flag => "-env_humidity",    dtype => "float"  }, # external humidity
        { name => "env_wind_speed",  type => "constant",   flag => "-env_wind_speed",  dtype => "float"  }, # external wind speed
        { name => "env_wind_dir",    type => "constant",   flag => "-env_wind_dir",    dtype => "float"  }, # external wind direction
-       { name => "pon_time",        type => "constant",   flag => "-pon_time",        dtype => "float"  }, # time since last power on
+
+       { name => "-teltemp_m1",     type => "constant",   flag => "-teltemp_m1",      dtype => "float"  }, # Primary mirror temps (C) 		
+       { name => "-teltemp_m1cell", type => "constant",   flag => "-teltemp_m1cell",  dtype => "float"  }, # Primary mirror support temps (C)   
+       { name => "-teltemp_m2",     type => "constant",   flag => "-teltemp_m2",      dtype => "float"  }, # Secondary mirror temps (C		
+       { name => "-teltemp_spider", type => "constant",   flag => "-teltemp_spider",  dtype => "float"  }, # Spider temperatures (C)  		
+       { name => "-teltemp_truss",  type => "constant",   flag => "-teltemp_truss",   dtype => "float"  }, # Mid truss temperatures (C		
+       { name => "-teltemp_extra",  type => "constant",   flag => "-teltemp_extra",   dtype => "float"  }, # Miscellaneous temperatures (C)     
+
+       { name => "pon_time",        type => "mean",       flag => "-pon_time",        dtype => "float"  }, # time since last power on
        { name => "bg",              type => "mean",       flag => "-bg",              dtype => "float"  }, # background
        { name => "bg",              type => "stdev",      flag => "-bg_mean_stdev",   dtype => "float"  }, # Azimuth
Index: trunk/ippScripts/scripts/register_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/register_imfile.pl	(revision 15740)
+++ trunk/ippScripts/scripts/register_imfile.pl	(revision 15773)
@@ -69,4 +69,5 @@
        { name => "FPA.OBSTYPE",    type => "constant", flag => "-exp_type",        dtype => "string" }, # Exposure type
        { name => "FPA.FILTER",     type => "constant", flag => "-filter",          dtype => "string" }, # Filter used
+       { name => "FPA.COMMENT",    type => "constant", flag => "-comment",         dtype => "string" }, # Obs Comment
        { name => "FPA.AIRMASS",    type => "constant", flag => "-airmass",         dtype => "float"  }, # Airmass
        { name => "FPA.RA",         type => "constant", flag => "-ra",              dtype => "float"  }, # Right ascension
@@ -78,18 +79,26 @@
        { name => "FPA.TELESCOPE",  type => "constant", flag => "-telescope",       dtype => "string" }, # Telescope
        { name => "FPA.INSTRUMENT", type => "constant", flag => "-inst",            dtype => "string" }, # Instrument 
-       { name => "FPA.M1X",        type => "constant", flag => "-M1_x",            dtype => "float"  }, # M1X
-       { name => "FPA.M1Y",        type => "constant", flag => "-M1_y",            dtype => "float"  }, # M1Y
-       { name => "FPA.M1Z",        type => "constant", flag => "-M1_z",            dtype => "float"  }, # M1Z
-       { name => "FPA.M1TIP",      type => "constant", flag => "-M1_tip",          dtype => "float"  }, # M1TIP
-       { name => "FPA.M1TILT",     type => "constant", flag => "-M1_tilt",         dtype => "float"  }, # M1TILT
-       { name => "FPA.M2X",        type => "constant", flag => "-M2_x",            dtype => "float"  }, # M2X
-       { name => "FPA.M2Y",        type => "constant", flag => "-M2_y",            dtype => "float"  }, # M2Y
-       { name => "FPA.M2Z",        type => "constant", flag => "-M2_z",            dtype => "float"  }, # M2Z
-       { name => "FPA.M2TIP",      type => "constant", flag => "-M2_tip",          dtype => "float"  }, # M2TIP
-       { name => "FPA.M2TILT",     type => "constant", flag => "-M2_tilt",         dtype => "float"  }, # M2TILT
+       { name => "FPA.M1X",        type => "constant", flag => "-m1_x",            dtype => "float"  }, # M1X
+       { name => "FPA.M1Y",        type => "constant", flag => "-m1_y",            dtype => "float"  }, # M1Y
+       { name => "FPA.M1Z",        type => "constant", flag => "-m1_z",            dtype => "float"  }, # M1Z
+       { name => "FPA.M1TIP",      type => "constant", flag => "-m1_tip",          dtype => "float"  }, # M1TIP
+       { name => "FPA.M1TILT",     type => "constant", flag => "-m1_tilt",         dtype => "float"  }, # M1TILT
+       { name => "FPA.M2X",        type => "constant", flag => "-m2_x",            dtype => "float"  }, # M2X
+       { name => "FPA.M2Y",        type => "constant", flag => "-m2_y",            dtype => "float"  }, # M2Y
+       { name => "FPA.M2Z",        type => "constant", flag => "-m2_z",            dtype => "float"  }, # M2Z
+       { name => "FPA.M2TIP",      type => "constant", flag => "-m2_tip",          dtype => "float"  }, # M2TIP
+       { name => "FPA.M2TILT",     type => "constant", flag => "-m2_tilt",         dtype => "float"  }, # M2TILT
        { name => "FPA.ENV.TEMP",   type => "constant", flag => "-env_temperature", dtype => "float"  }, # external temp
        { name => "FPA.ENV.HUMID",  type => "constant", flag => "-env_humidity",    dtype => "float"  }, # external humidity
        { name => "FPA.ENV.WIND",   type => "constant", flag => "-env_wind_speed",  dtype => "float"  }, # external wind speed
        { name => "FPA.ENV.DIR",    type => "constant", flag => "-env_wind_dir",    dtype => "float"  }, # external wind direction
+
+       { name => "FPA.TELTEMP.M1",     type => "constant", flag => "-teltemp_m1",     dtype => "float"  }, # Primary mirror temps (C) 		
+       { name => "FPA.TELTEMP.M1CELL", type => "constant", flag => "-teltemp_m1cell", dtype => "float"  }, # Primary mirror support temps (C)   
+       { name => "FPA.TELTEMP.M2",     type => "constant", flag => "-teltemp_m2",     dtype => "float"  }, # Secondary mirror temps (C		
+       { name => "FPA.TELTEMP.SPIDER", type => "constant", flag => "-teltemp_spider", dtype => "float"  }, # Spider temperatures (C)  		
+       { name => "FPA.TELTEMP.TRUSS",  type => "constant", flag => "-teltemp_truss",  dtype => "float"  }, # Mid truss temperatures (C		
+       { name => "FPA.TELTEMP.EXTRA",  type => "constant", flag => "-teltemp_extra",  dtype => "float"  }, # Miscellaneous temperatures (C)     
+
        { name => "FPA.PON.TIME",   type => "constant", flag => "-pon_time",        dtype => "float"  }, # time since last power on
        { name => "CHIP.TEMP",      type => "mean",     flag => "-ccd_temp",        dtype => "float"  }, # CCD temperature
