next up previous contents
Next: Database representation of JSOC Up: Data series specification Previous: Data segments   Contents


JSOC Series Definition, Example 1

Below is shown an example of a JSD defining a series named ``testclass1''. The example has 8 keywords of different types (1 linked and 7 simple), 2 links (one static and one query), and 6 data segments (3 fixed arrays for axis, two main variable data arrays and one generic segment meant for a text file with processing log):


#======================= Global series information  ===========================
Seriesname:     "testclass1"
Description:    "This series is for testing only."
Author:         "Rasmus Munk Larsen"
Owners:          "rmunk"
Unitsize:       10
Archive:        1
Retention:      permanent
Tapegroup:      127
Primary Index:  

#============================ Keywords =========================================
# Format:
#   Keyword: <name>, link, <linkname>, <target keyword name>
# or
#   Keyword: <name>, <datatype>, {fixed | variable}, <default value>, <format>, <unit>, <comment>
#
Keyword: "keywd0",      link, "link1", "keywd0"
Keyword: "keywd1",      char, variable, '\0',  "%d", "unit1", "Comment1"
Keyword: "keywd2",       int, variable, 0,  "%d", "unit2", "Comment2"
Keyword: "keywd3",     float, variable, 0.0f,  "%f", "unit3", "Comment3"
Keyword: "keywd4",    double, variable, 0.0, "%lf", "unit4", "Comment4"
Keyword: "keywd5",  datetime, variable, "1970-01-01 00:00:00", "%-s", "unit5", "Comment5"
Keyword: "keywd6", timestamp, variable, "19700101000000", "%-s", "unit6", "Comment6"
Keyword: "keywd7",    string, variable, "", "%-s", "unit7", "Comment7"

#============================ Links =========================================
# Format:
#    Link: <name>, <target series>, { static | dynamic }
#
Link: "link0", "testclass0", static
Link: "link1", "testclass0", dynamic

#============================ Data segments ====================================
# Data: <name>, <form>, <scope>, <datatype>, <naxis>, <axis dims>, <unit>, <protocol>
#
Data: "x-axis",           array,    fixed, float, 1, 100, "m", fitz
Data: "y-axis",           array,    fixed, float, 1, 200, "m", fitz
Data: "z-axis",           array,    fixed, float, 1,  50, "m", fitz
Data: "pressure",         array, variable, float, 3, 100, 200, 50, "kg/(s^2*m)", fitz
Data: "velocity",         array, variable, float, 4, 100, 200, 50, 3, "m/s", fitz
Data: "processing log", generic, variable



Philip Scherrer 2006-06-17