The Data block starts with the identifier [BOD] end ends with [EOD]. Each row in between defines one date/time as well as the measured variables described in the Header block. The standard format for each row is:
YYYYMMDD,HHMM,TIMEDEF,Par(1),Par(2),Par(3),……………………………..
where YYYYMMDD is a date format ( year + month + day)
HHMM time variable (Hour + minute) can be extended to HHMMSS or HHMMSShh where SS=seconds and hh is percentage of seconds..
TIMEDEF is a string/letter defining the time (according to the object property Common.TimeDefinition)
Par(1),Par(2),Par(3),……are identified in the heading via the Position property e.g: Stations(1).Parameters(1).Position=1
.
Note that a comma sign has been used as separator in the example. However, the separator sign can be defined arbitrarily in the property Separator in object: Common.ASCIICode
The definition of the Text block.
The Text block starts with a [BOT] and ends with an [EOT]. Each row in between contains lines of text, to be read without any further restriction. If no identifier; [BOT] is given, the text block must be positioned immediately after the Data block and at least separated using the [EOD] identifier. If the Data block is missing, the [BOT] identifier must be given.
An example of a QZ formated file
[BOH]
#This is a template for an import/export file. The character ”#” is used for comments
[Common] # Heading for general information
Common.ASCIICode.Separator=44 # Definition of the separator used
Common.ASCIICode.Decimal =46 # Definition of decimal character
Common.MissingValues=”-99”,”NoN”,”I”,”” # Definition of indicators for missing values
Common.Resolution=Hour # Time resolution. Alternative: XXMin,XXHour,XXDay (where XX relates to the number of
# minutes/hours/days)
Common.IntegrationPeriod=Forward # Is the time stamp referring to Alternativ: Forward, Backward, Centered
Common.TimeDefinition.Local=L #Definition of local time (daylight saving time during summer and normal time during winter)
Common.TimeDefinition.Summer=S #Definition of summer time (daylight saving time)
Common.TimeDefinition.Normal=N #Definition of Normal time
Common.TimeDefinition.UTC=U #Definition of UTC
[Station] #Heading for the station block
Stations.Count=2 #Number of stations
Stations(1).Name=Frösön #Name of station 1
Stations(1).Export.File=c:\aiolos\data\basdata\Frösön.obs #Export data source
Stations(1).Import.Name=Frösön #Import station name
Stations(1).Parameters.Count=3 #Number of parameters in station 1
Stations(1).Parameters(1).CodeName=Temperatur #Coded name for parameter no 1 in station no 1
Stations(1).Parameters(1).Position=1 #Position in Data block where to find the value corresponding to station 1, parameter 1 and position 1
Stations(1).Parameters(2).CodeName =Vindhastighet
Stations(1).Parameters(2).Position=2
Stations(1).Parameters(3).CodeName =Globalstrålning
Stations(1).Parameters(3).Position=3
Stations(2).Name=Jämtkraft
Stations(2).Export.File=c:\aiolos\data\basdata\Jämtkraft.el
Stations(2).Import.Name=Jamt
Stations(2).Import.Format=Presto
Stations(2).Parameters.Count=2
Stations(2).Parameters(1)=Last #Note: CodeName is default property and has been left out.
Stations(2).Parameters(1).Position=4
Stations(2).Parameters(2)=NormalLast #Note: CodeName is default property and has been left out.
Stations(2).Parameters(2).Position=5
[EOH]
[BOD] #End of heading
19970401,0400,S,1.5,2.1,12,37.3,33.5 #Data record
19970401,0500,S,1.6,2.5,67,37.3,33.5
19970401,0600,S,1.95,2.6,123,37.3,33.5
19970401,0700,S,3.35,2.0,200,37.3,33.5
19970401,0800,S,4.35,1.9,340,37.3,33.5
[EOD]
[BOT]
Weather forecast for Gothenburg
Clear sky, sunny and warm weather is expected for tomorrow.
This is a suitable weather for a picnic.
Do not forget to bring beers and sausages.
[EOT]
[EOF] #End of file