View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

import problem

carguelles wrote on Aug 19, 2007

I am working with some calibrated cassini images generated by the program CISSCAL. This program takes VICAR format images and the result are modified VICAR files. I can import the original VICAR image but not the calibrated one.

The CISSCAL guide says the following about the output file:
T
his output VICAR file is not identical to the input file. The primary
differences are:
• Output image is in real (floating-point) format instead of integer
• Output image lacks binary header (including overclocked and extended pixels)
• VICAR label has PROCESSING HISTORY TEXT keyword appended, with record of calibration tasks
performed
• VICAR label has CALIBRATION STAGE keyword appended, which allows CISSCAL to automatically
resume calibration of a partially-calibrated image at the same stage that it left off


The label of the Output file is the following:
LBLSIZE=4096 FORMAT='REAL' TYPE='IMAGE' BUFSIZ=20480 DIM=3 EOL=0 RECSIZE=4096 ORG='BSQ' NL=1024 NS=1024 NB=1 N1=1024 N2=1024 N3=1 N4=0 NBB=0 NLB=0 HOST='PC_X86' INTFMT='LOW' REALFMT='RIEEE' BHOST='PC_X86' BINTFMT='LOW' BREALFMT='RIEEE' BLTYPE='CAS-ISS3' PROPERTY='INSTRUMENT' ANTIBLOOMING_STATE_FLAG='ON' CALIBRATION_LAMP_STATE_FLAG='N/A' DELAYED_READOUT_FLAG='NO' DETECTOR_TEMPERATURE=-89.3184 EXPOSURE_DURATION=2000.0 FILTER_NAME=('CL1','CL2') FILTER_TEMPERATURE=-1.18534 FLIGHT_SOFTWARE_VERSION_ID='1.3' GAIN_MODE_ID='29 ELECTRONS PER DN' INSTRUMENT_DATA_RATE=182.784 INSTRUMENT_MODE_ID='FULL' LIGHT_FLOOD_STATE_FLAG='ON' METHOD_DESC='ISSPT2.5.3;Saturn-Rings;ISS_000RI_SATSRCHAP001_PRIME_5' OPTICS_TEMPERATURE=(0.712693,1.90571) PREPARE_CYCLE_INDEX=0 READOUT_CYCLE_INDEX=11 SENSOR_HEAD_ELEC_TEMPERATURE=1.63302 SHUTTER_MODE_ID='BOTSIM' SHUTTER_STATE_ID='ENABLED' PROPERTY='IMAGE' BIAS_STRIP_MEAN=8.0499 DARK_STRIP_MEAN=13.0 DATA_CONVERSION_TYPE='TABLE' MISSING_LINES=0 PROPERTY='COMMAND' COMMAND_FILE_NAME='trigger_6053_1.ioi' COMMAND_SEQUENCE_NUMBER=6053 ELECTRONICS_BIAS=112 ORDER_NUMBER=17 PARALLEL_CLOCK_VOLTAGE_INDEX=9 PROPERTY='IDENTIFICATION' DATA_SET_ID='CO-S-ISSNA/ISSWA-2-EDR-V1.0' DESCRIPTION='N/A' IMAGE_MID_TIME='2004-172T18:47:30.118Z' IMAGE_NUMBER=1466449900 IMAGE_OBSERVATION_TYPE='SCIENCE' IMAGE_TIME='2004-172T18:47:31.118Z' INSTRUMENT_HOST_NAME='CASSINI ORBITER' INSTRUMENT_ID='ISSNA' INSTRUMENT_NAME='IMAGING SCIENCE SUBSYSTEM NARROW ANGLE' MISSION_NAME='CASSINI-HUYGENS' MISSION_PHASE_NAME='TOUR PRE-HUYGENS' OBSERVATION_ID='ISS_000RI_SATSRCHAP001_PRIME' PRODUCT_CREATION_TIME='2004-173T22:19:58.000Z' PRODUCT_ID='1_N1466449900.118' PRODUCT_VERSION_TYPE='FINAL' SEQUENCE_ID='S02' SEQUENCE_NUMBER=17 SEQUENCE_TITLE='--' SPACECRAFT_CLOCK_CNT_PARTITION=1 SPACECRAFT_CLOCK_START_COUNT='1466449898.118' SPACECRAFT_CLOCK_STOP_COUNT='1466449900.118' START_TIME='2004-172T18:47:29.118Z' STOP_TIME='2004-172T18:47:31.118Z' TARGET_DESC='Saturn-Rings' TARGET_LIST='N/A' TARGET_NAME='SATURN' PROPERTY='TELEMETRY' EARTH_RECEIVED_START_TIME='2004-173T19:43:03.482Z' EARTH_RECEIVED_STOP_TIME='2004-173T19:45:15.628Z' EXPECTED_PACKETS=459 MISSING_PACKET_FLAG='NO' RECEIVED_PACKETS=365 SOFTWARE_VERSION_ID='ISS 9.00 02-05-2004' TELEMETRY_FORMAT_ID='UNK' PROPERTY='COMPRESSION' EXPECTED_MAXIMUM=(415.76,458.493) INST_CMPRS_PARAM=('N/A','N/A','N/A','N/A') INST_CMPRS_RATE=(3.18386,2.50705) INST_CMPRS_RATIO=3.191 INST_CMPRS_TYPE='LOSSLESS' VALID_MAXIMUM=(4095,4095) TASK='TASK' USER='casdl' DAT_TIM='Mon Jun 21 22:17:37 2004' TASK='COPY' USER='diehl' DAT_TIM='Tue Jun 21 14:57:02 2005' TASK='CISSCAL 3.3' USER='carlos' DAT_TIM='Sat Aug 18 18:54:56 2007' PROCESSING_HISTORY_TEXT='Converted from 8 to 12 bits, Bias Subtracted (Overclocked pixels), Subtracted 2Hz noise, Dark Subtraction (Interpolation model, parameter file = nac_median_dark_parameters04228.xdr), Antiblooming Correction, Nonlinearity Correction, Mottle Map Removal (nac_mottle_1444733393.tif), Flatfielded (Slope file: SLOPE258.IMG), Gain applied = 30.2700, Divided by ExpT (Shutter offset file: /home/carlos/f-ring/cisscal/calib/offset/nacfm_so_p5.img), Divided by Area/Solid Angle, Divided by Efficiency = 1.26529e+14; output units are in I/F), Applied Correction Factor = 1.06883 (correctionfactors_qecorr.tab)' CALIBRATION_STAGE='10'

So i initially tried with:

import imagename.IMG.cal hskip=4096 pixtype=r

but it didn't work, i also tried with format=vicar, but didn't work. When i import it using the vicar format i only get a 4096*1 file which i think is just the header.

Can anyone tell me how to import the file?

Mike Fitzpatrick wrote on Aug 19, 2007

The image appears to be 1024x1024x1 so you'll need to set the 'dims' parameter to specify the dimensions as well as the header offset. The 'format=vicar' only works if the format is the same as that defined by the 'vicar' entry in the format database, but since this is modified you'll need to set the parameters by hand. If you still have problems please post a sample image and I can say more about the parameters or give you a database entry to use.

Cheers,
-Mike

Last post on Aug 19, 2007