Cinedata .DG file format information. 11-26-10 11:07:20 pm The following is the format for the .DG file. -------------------------------------------------------------------------------- Card 1: 2 character strings Column Description 1-10: Trial code 11-80: Descriptive title Example: WN21F Normal walking, subj. DGER, fast speed -------------------------------------------------------------------------------- Card 2: 8 floating point numbers (8 x 10 col.) Column Description 1-10: CTOR = camera to calibration plane distance (cm), use 0.0 if markers are in same plane as calibration system 11-20: RTOP1 = calibration plane to marker plane 1 distance (cm)* 21-30: P1TOP2 = marker plane 1 to marker plane 2 distance (cm)* 31-40: ACTUAL = length of linear scale factor (cm), used when LENSCL=0. 41-50: X0 = X location of origin, usually force plate centre (dig. units) 51-60: Y0 = Y location of origin, usually force plate centre (dig. units) 61-70: GRIDX = distance between horizontal grid markers (cm)# 71-80: GRIDY = distance between vertical grid markers (cm)# * A negative number means the distance is towards the camera. These values are 0.0 if all markers are in same plane as calibration system. # Used when LENSCL=1, see below. Example: (linear scale 120. cm long) 0.0 0.0 0.0 120.0 0.0 0.0 0.0 0.0 or (grid system, with 50x50 cm spacings) 500. 0.0 0.0 0.0 124.5 234.5 50.0 50.0 -------------------------------------------------------------------------------- Card 3: 16 five digit integers (right-justified, 16 x 5 col.) Column Description 1- 5: NDIR: X direction (motion should be from left to right) = 0, 1 or 3 = normal, leave X-coordinates as-is = 2 or 4 = reverse X-coordinates 6-10: IREF: Type of camera reference system = 0 or 1 for fixed camera = 2 for moving camera (first coordinate pair is fixed point, last is next fixed point when first is about to disappear) = 3 for framing (first coordinate pair is fixed point) = 4 for panning camera (not implemented, reserved) = 5 for framed camera (ignore first coordinate pair) = 6 for framing and moving camera (use first coordinate pair) = 7 for framed and moving camera (ignore first coordinate pair) = 8 for framing and panning camera (not implemented, reserved) = 9 for framed and panning camera (not implemented, reserved) 11-15: NBM2 = Total number of markers (body and extra points) digitized 16-20: KBM = Number of first marker in second marker plane 21-25: KODEFP = Event code number of force platform centre (usually 0) 26-30: LENSCL: Type of scaling system = 0 = linear scaling = 1 = grid system (rows x columns) = 2 = FLT/DLT parameters in a file called, LENS.CAL = 3 = control points and known locations = 4 = data already scaled to centimetres 31-35: IR = Number of rows in calibration grid or number of control points 36-40: IC = Number of columns in calibration grid 41-45: IREP = Number of digitizations of grid 46-50: IEX = Number of extra fixed points digitized after calibration grid 51-55: IVERSN: Type of digitizer/data format = 0 for default digitizer = 12F6.3 = 1 for U.Waterloo Numonics digitizer = 18F4.2 = 2 for UBC Numonics digitizer = 16F5.2 = 3 for U.Ottawa HP digitizer = 12F6.3 = 4 for U.Ottawa Scriptel digitizer = 12F6.3 = 5 for Queen's University = 20F4.2 = 6 for Ariel PAS-CBA (same as 3) = 12F6.3 = 7 for Peak Performance (same as 3) = 12F6.3 = 8 when data are already scaled in centimetres = 12F6.0 = 9 when data are already scaled in millimetres = 12F6.1 56-60: IRATE = Sampling increment (usually 1, 2 means every 2nd, ...) 61-65: IRES = Number of decimals in output file (default=1, range=1 to 3) 66-70: Reserved 71-75: Reserved 76-80: Reserved Example: (linear scale, with seven markers plus 1 reference marker) 1 5 8 0 0 0 0 0 0 0 0 1 1 or (grid with 7 rows and 5 columns) 2 5 8 0 0 1 7 5 1 0 6 1 1 -------------------------------------------------------------------------------- Card 4: 5 column character fields (left-justified) Maximum of nine event codes. Leave a space then enter 9 four letter codes. Example: (ipsolateral foot-strike and toe-off, contralateral FS and TO) IFS ITO CFS CTO Ev.5 Ev.6 Ev.7 Ev.8 Ev.9 -------------------------------------------------------------------------------- Card 5: 10 column character fields (left-justified) 8 per line Enter labels for the markers. Maximum of eight labels per line. Use as many lines as necessary. Example: Ref.point Shoulder Hip Knee Ankle Heel Ball Toes -------------------------------------------------------------------------------- Cards 6-7+: Scaling information Format is 12F6.3, that is, 6 pairs of coordinates in 6 column fields. If decimal point is missing it is assumed to be in third position from right. I.e., ' 5459' = '5.459'. Format may follow definition specified by IVERSN on Card 3. A record number of '900' or '0' indicates data are scaling parametersn. Record number '901' indicates the numbers are the actual (metric) locations of the control points (see second example below). Numbers are in 1/10 mm, that is, 5000 = 50.0 cm. Example of linear scale: Record no. 900 0 0 0 0 3 Linear scaling data follows: 191.0 117.3 317.7 124.8 Example of a 7 row by 5 column grid: Record no. 900 7 5 1 0 3 Grid scaling data follows: 5459 11493 7032 11463 8591 11435 10177 11411 11756 11394 5452 9910 7017 9874 8572 9858 10156 9817 11731 9821 5421 8339 6830 8303 8575 8282 10119 8253 11711 8237 5407 6779 6963 6743 8514 6725 10103 6713 11673 6665 5361 5207 6977 5198 8497 5162 10065 5146 11662 5123 5371 3679 6911 3634 8475 3560 10035 3589 11621 3556 5333 2111 6896 2103 8444 2037 9966 2005 11573 1977 Example from APAS-CBA: Record no. 900 15 0 0 0 0 Digitized control points: 2783 4852 4017 4860 5250 4860 6501 4896 7734 4896 2809 3225 4043 3251 5285 3260 6510 3269 7726 3294 2835 1632 4068 1641 5259 1676 6527 1676 7752 1694 Record no. 901 15 0 0 0 0 Actual control point locations: 0 10000 5000 10000 10000 10000 15000 10000 20000 10000 0 5000 5000 5000 10000 5000 15000 5000 20000 5000 0 0 5000 0 10000 0 15000 0 20000 0 -------------------------------------------------------------------------------- Cards 8-9+: Linkage information (optional) These cards are optional and can be placed in a separate file called, DEFAULT.LIN or 'trialname'.LIN. First card contains the word LINKS followed by the number of links (segments) to be drawn. The links are pairs of marker numbers. Eight pairs per line (16 numbers). If the second number is negative a symbol is plotted instead of a line segment. Symbols are numbered from -1 to -11; 0 displays a single point. Example: (draw five line segments and show a symbol for marker 7) Links 6 1 2 2 3 3 4 4 2 5 6 7 -2 -------------------------------------------------------------------------------- Card 9: DATA card Single line with the word, DATA or Data. -------------------------------------------------------------------------------- Cards 10-11+: Marker data First ten columns of first card are ignored. Next field is the 'frame number', next five fields are 'event codes' (numbers 1 to 9, defined in Card 4). The following cards contain the X,Y pairs in the format selected on Card 3, item IVERSN. Events codes and comments are optional; frame number is not. Example: Record no. -5 0 0 0 0 0 Comments about frame may only go here. 9002 1367 14781 8746 14720 6137 14355 4112 16024 2679 16475 2487 15956 1934 15548 1613 Record no. -4 1 0 0 0 0 Ipsilateral foot-strike occurs here. 9013 817 14619 8767 14579 6247 14179 4120 15716 2550 16152 2363 15575 1871 15164 1572 . . . -------------------------------------------------------------------------------- That's all!