Documentation for /home/davin/idl/socware/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

projects/themis/ground/asi_mosaic/

thm_asi_imager_readfile.pro


NAME: thm_asi_Imager_Readfile PURPOSE: This is intended to be a general tool for reading THEMIS-GBO imager data. At the moment it only deals with PGM files and has only been lightly tested on full (256x256) and row2 (376x1) frames. CATEGORY: Themis, Imager, File reading CALLING SEQUENCE: THM_ASI_IMAGER_READFILE,Filename,Images,[Metadata] INPUTS: Filename a string or array of strings containing valid image filenames or wildcard search expressions as used in "findfile". KEYWORDS: COUNT returns the number of image frames ALL_METADATA set to obtain more metadata, much slower (default=0) DEBUG set to increase verbosity (default=0) OUTPUTS: Images a WIDTH x HEIGHT x NFRAMES array of unsigned integers or bytes Metadata a NFRAMES element array of structures RESTRICTIONS: TBD EXAMPLES: Get one file, watch frames as movie filename="20051225_1100_whit_themis07_full.pgm.gz" THM_ASI_IMAGER_READFILE,filename,images,metadata,COUNT=nframes FOR indx=0,nframes-1 DO TVSCL,images[*,*,indx] Get 1 hour of data, summarize and display as keogram directory="\\themis-data\data\themis\imager\stream0\2005\12\25\whit_themis07\ut11\" THM_ASI_IMAGER_READFILE,directory+"*full.*",images,metadata,COUNT=nframes,/DEBUG keogram= TRANSPOSE(TOTAL(images[96:159,*,*],1)) TVSCL,keogram,ORDER=1 NOTES: PGM format is described on NetPBM home page at http://netpbm.sourceforge.net gzipped files (*.pgm.gz) can be read directly in IDL, bzip2 cannot early data (eg. ATHA 2004) were in PNG format with 1 frame per file MODIFICATION HISTORY: 2006-03-09 Bjj assembly and preliminary documentation VERSION: $LastChangedBy$ $LastChangedDate$ $LastChangedRevision$ $URL$

Class description for THEMIS_IMAGER_METADATA

Fields

Fields in THEMIS_IMAGER_METADATA

CCD_BINNING [0S, 0S]
CCD_OFFSET [0S, 0S]
CCD_SIZE [0S, 0S]
COMMENTS ''
EXPOSURE_DURATION_ACTUAL 0.00000
EXPOSURE_DURATION_REQUEST 0S
EXPOSURE_TIME_CDF 0.0000000D
EXPOSURE_TIME_OFFSET 0.00000
EXPOSURE_TIME_STRING ''
IMAGER_UID ''
SITE_UID ''

Routines

Routines from thm_asi_imager_readfile.pro

THEMIS_IMAGER_METADATA__DEFINE
result = THEMIS_IMAGER_PNM_READFILE(lun, image, comments, DEBUG=DEBUG)
result = THEMIS_IMAGER_PARSE_COMMENTS(comments, metadata, ALL_METADATA=ALL_METADATA)
THM_ASI_IMAGER_READFILE, filename, images, metadata, COUNT=COUNT, DEBUG=DEBUG, ALL_METADATA=ALL_METADATA

Routine details

top source THEMIS_IMAGER_METADATA__DEFINE

THEMIS_IMAGER_METADATA__DEFINE

top source THEMIS_IMAGER_PNM_READFILE

result = THEMIS_IMAGER_PNM_READFILE(lun, image, comments, DEBUG=DEBUG)

Parameters

lun
image
comments

Keywords

DEBUG

top source THEMIS_IMAGER_PARSE_COMMENTS

result = THEMIS_IMAGER_PARSE_COMMENTS(comments, metadata, ALL_METADATA=ALL_METADATA)

Parameters

comments
metadata

Keywords

ALL_METADATA

top source THM_ASI_IMAGER_READFILE

THM_ASI_IMAGER_READFILE, filename, images, metadata, COUNT=COUNT, DEBUG=DEBUG, ALL_METADATA=ALL_METADATA

Parameters

filename
images
metadata

Keywords

COUNT
DEBUG
ALL_METADATA

File attributes

Modification date: Thu Feb 13 16:42:57 2014
Lines: 169