• No results found

TR-20-96.pdf (716.2Kb)

N/A
N/A
Protected

Academic year: 2022

Share "TR-20-96.pdf (716.2Kb)"

Copied!
13
0
0

Laster.... (Se fulltekst nå)

Fulltekst

(1)

NILU

NILU TR 20/96

REFERENCE : O-92088.MP

DATE JULY 1996

ISBN 82-425-0800-3

Data Retrieval System

T.C. Berg

Norsk institutt for luftforskning

Norwegian Institute for Air Research

Postboks 100 - N-2007 Kjeller - Norway

(2)

Contents

Page

1. CONTAINER DATA COLLECTION SYSTEM 1.1

1.1 Progranune RESET 2 1.1

1.2 Programme CONTLOGG 1.2

1.3 Progranune COMPSKJO 1.2

1.4 Progranune MEMCONV 1.2

1.5 Programme TOGCONV 1.3

1.6 Programme CONTlØl 1.3

1.7 Programme CONTSTAT 1.3

APPENDIX A BATCONT.BAT A.l

APPENDIX B CONTBAT.RUN B.1

APPENDIX C CONTBAT2.RUN C.1

APPENDIX D CONTBAT3.RUN D.1

APPENDIX E CONTBAT4.RUN E.1

APPENDIX F TELEFON.SYM F.1

APPENDIX G SKJOTLOG.SYM G.1

(3)

Data Retrieval System

1. CONTAINER DATA COLLECTION SYSTEM

The data collection system is controlled by a timer programme CONTRUN. This timer starts a sequence every 5 minutes (xx00, xx05, xxlO etc.) for collection of data from the FOX and from meteorological sensors mounted on the container.

Data from the gammaspectrometer on the container are collected once an hour at xx33. The minute time 33 is chosen to avoid coincidence with the 5 minute data collection.

The timer programme is again a part of a batch sequence BATCONT.BAT (Appendix A).

Output from the timer with errorlevel 0 starts the 5 minute cycle (:ARUN) and errorlevel 1 starts the 1 hour cycle (:BRUN).

All programmes receive their instructions from a file AUTOBAT.RUN. To be able to operate different versions of AUTOBAT.RUN a set of *.RUN files: CONTBAT.RUN,

CONTBAT2.RUN, CONTBAT3.RUN and CONTBAT4.RUN (Appendix B, C, D, E) is copied to AUTOBAT.RUN before the respective programme is to be started.

The data are stored in * .SYM files as follows:

MCONT AIN.SYM contains 5 minutes data from the Aanderaa meteorological system

GCONT AIN.SYM contains 5 minutes data from the GILL meteorological system

BCONT AIN.SYM contains 5 minutes data from the FOX.

ACONT AIN.SYM is a spare 5 minutes 4 channel analogue data system.

CONT AINE.SYM contains 60 minutes radiation data from the gamma spectrometer.

A description of the different programmes in BATCONT.BAT follows:

1.1 Programme RESET 2

This is a help programme that closes COMPORT no. 2. The use of the programme is to be sure that the COMPORT is closed before next programme starts. If a programme for some reason is aborting, the next programme cannot work properly if the COMPORT is not closed.

Container data collection system - 1.0 - 960410 1.1

(4)

1.2 Programme CONTLOGG

The programme collects data from the datalogger by COMPORT No. 2.

Instructions for the operation is read from AUTOBAT.RUN between line -23 and -24. These instructions refer to the line number, i.e. station number, in the file TELEFON.SYM

(Appendix F).

The programme CONTLOGG performs a reading of data from the datalogger from date and time given in SKJOTLOG.SYM (Appendix G) for the given station to date and time up to the reading time. The result is presented in a corresponding file KLxxxx.OUT when xxxx is the station number.

1.3 Programme COMPSKJO

This programme adds KLxxxx.OUT files to the corresponding storage file for a station.

Station number is a four digit xxxx in the KL-file. The storage file has the corresponding name of the station as listed in the file TELEFON.SYM. Example KL 1001.0UT is

corresponding with the storage file MCONT AIN.SYM. The first line in the KLxxxx.OUT file is always the same as the last line in the storage file. If not, the programme will refuse to make the addition. When a successful addition is performed, SKJOTLOG.SYM is adjusted for the respective station.

Instructions for controlling the COMPSKJO programme is given in AUTOBAT.RUN between line -25 and -26. The programme can make ajouring of as many storage files as wanted in sequence. The only instruction needed from AUTOBAT.RUN is a list of KLxxxx.OUT files.

1.4 Programme MEMCONV

This programme is converting the storage files "STATION".SYM to a number of

corresponding files with only one parameter in each. These files is named xxxxyyyy. 05M.

Station number is xxxx, and yyyy is the name of the parameter using 1-4 letters.

Instructions to the programme is given in AUTOBAT.RUN between line -34 and -35. Here is given a list of storage files which is going to be converted. In addition a parameter list is given for each station in the file ENSILOGG.INP.

Container data collection system - 1.0 - 960410 1.2

(5)

1.5 Programme TOGCONV

This programme is creating input files to the display programme. It does the same as

MEMCONV except that it outputs only the last line from the * .SYM files. Station number is added with 1000 to mark the difference from the output of MEMCONV.

1.6 Programme CONTlØl

This programme collects data from a gamma spectrometer Canberra model Sl0 Plus. The spectrometer is connected to COMPORT no. 1 and it is read by the programme every 60 minutes. The programme starts by stopping the counting on the spectrometer. Then the data for 1024 channels are read before a clear data order and a start order is given.

The data is stored in the storage file CONTAINE.SYM as a new line added to the previous lines. A complete spectrum is also stored in the directory C:\MCA \ in binary from suited to a Canberra display programme MCAE.

Instructions to the CONTI Øl programme is given in AUTOBAT.RUN between line -29 and -30. Here is the order given for collection of data from station number to station number.

1.7 Programme CONTSTAT

Programme CONTST AT uses the storage file CONT AINE.SYM with the gamrnaspectrum data as input. The programme makes a statistical survey over the total gamma radiation for

"yesterday" values, "today's" values and last 10 days mean values. The data is written in the file CONT.RAD.

Container data collection system - 1.0 - 960410 1.3

(6)

APPENDIX A BATCONT.BAT

CD\RING :START

type skjotlog.sym type cont.rad CONTRUN

IF ERRORLEVEL I GOTO BRUN IF ERRORLEVEL O GOTO ARUN :ARUN

copy contbat.run autobat.run reset 2

contlogg

copy contbat2.run autobat.run reset 2

contlogg reset 2

copy contbat3.run autobat.run contlogg

reset 2

copy contbat4.run autobat.run contlogg

reset 2 compskjo memconv togconv GOTO START :BRUN

copy contbat.run autobat.run reset 2

contsIOl reset 2 contstat reset 2 reset 2

GOTO START

Appendix A - BATCONT.BAT - 1.0 - 960613 A.l

(7)

APPENDIXB

CONTBAT.RUN

-1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 2 2 0 -24 -25

KLI00I.OUT KL1002.OUT KL1003.OUT KL1004.OUT -26

-27 -28 -29

I -30 -31 -32 -33 -34

ACONTAIN.SYM MCONTAIN.SYM GCONTAIN.SYM BCONTAIN.SYM -35

-36

Appendix B - CONTBAT.RUN. 1.0. 960410 B.1

(8)

APPENDIXC

CONTBA T2.RUN

-1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 3 3 0 -24 -25

KL1001.OUT KL1002.OUT KL1003.OUT KL1004.OUT -26

-27 -28 -29

1 l -30 -31 -32 -33 -34

ACONTAIN.SYM BCONTAIN.SYM GCONTAIN.SYM MCONTAIN.SYM -35

-36

Appendix C - CONTBAT2.RUN - 1.0 - 960410 C.1

(9)

APPENDIXD CONTBAT3.RUN

-1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 4 4 0 -24 -25

KLIO0l.OUT KL1002.OUT KL1003.OUT KL1004.OUT -26

-27 -28 -29 1 -30 -31 -32 -33 -34

MCONTAIN.SYM BCONTAIN.SYM GCONTAIN.SYM ACONTAIN.SYM -35

-36

Appendix D - CONTBAT3.RUN - 1.0 - 960410 D.1

(10)

APPENDIXE

CONTBAT4.RUN

-1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -I 8 -19 -20 -21 -22 -23 5 5 0 -24 -25

KLlO0I.OUT KLI002.OUT KL1003.OUT KL1004.OUT -26

-27 -28 -29

-30 -31 -32 -33 -34

MCONTAIN.SYM GCONTAIN.SYM BCONTAIN.SYM ACONTAIN.SYM -35

MCONTAIN .SYM GCONTAIN.SYM BCONTAIN.SYM ACONTAIN.SYM -36

Appendix E - CONTBAT4.RUN - 1.0 - 960410 E.1

(11)

APPENDIXF

TELEFON.SYM

1000 CONTAINER 1001 MCONT AINER 1002 GCONT AINER 1003 BCONT AINER 1004 A CONTAINER 0000

00000000 000 4 0 35 0

00000000 000 3 0 10 0 1 0 21 1 1 00000000 000 0 0 7 0 1 0 22 1 1 00000000 000 0 0 7 0 1 0 23 1 1 00000000 000 0 0 7 0 1 0 19 1 1

Appendix F - TELEFON.SYM - 1.0 - 960410 F.1

(12)

APPENDIXG SKJOTLOG.SYM

1000 950719 0130 1.0 247028 1001 951213 1200 .0 000000 1002 951213 1300 .0 000000 1003 951205 0855 .0 000000 1004 951213 1350 .0 000000

Appendix G - SKJOTLOG.SYM - 1.0 - 960410 G.1

(13)

Norsk institutt for luftforskning (NILU)

P.O. BOX 100, N-2007 KJELLER- NORWAY

REPORT SERIES REPORT NO. TR 20/96 ISBN-82-425-0800-3 TECHNICAL REPORT

DATE SIGN. NO. OF PAGES PRICE

je,. (

2... '"

t81,,~rnv

12 NOK 30,-

I

TITLE PROJECT LEADER

Data Retrieval System Trond Bøhler

NILU PROJECT NO.

O-92088.MP

AUTHOR(S) CLASSIFICATION *

T.C. Berg A

CONTRACT REF.

REPORT PREPARED FOR:

Norwegian Institute for Air Research (NILU)

ABSTRACT

Description of a Data Retrieval System for collecting data from a datalogger and controlling a gamma spectrometer.

NORWEGIAN TITLE Datainnsamlingssystem KEYWORDS

Data programme Data retrieval Datalosser

ABSTRACT (in Norwegian)

Beskrivelse av datainnsamlingssystem for innhøsting av data fra en datalogger og kontroll av gammaspektrometer.

* Classification A Unclassified (can be ordered from NILU) B Restricted distribution

C Classified (not to be distributed)

Referanser

RELATERTE DOKUMENTER

Now see the process from the inertial system of the space ship. In this system the light travels a perpendicular distance which is the same, 12 light years. The direction of the

The assumption is that as the train pass the base station, the number of users connected to the specific base station increases, corresponding to the people travelling on the

The assumption is that as the train pass the base station, the number of users connected to the specific base station increases, corresponding to the people travelling on the

To study the chemistry of power station plumes over the North Sea, a programme of aircraft measurements is conducted by the Central Electricity Research

Left panel: attenuated backscatter versus altitude for a CALIOP overpass at Barcelona station on 20 September 2011 at 02:00 UTC at 77.9 km distance from the station (the red line

Abstract The Atmosphere-Space Interactions Monitor (ASIM) is an instrument suite on the International Space Station (ISS) for measurements of lightning, Transient Luminous Events

Acrobat: An electronic document technology from Adobe Systems that includes the PDF file format, translators for creating PDF files, and readers for displaying PDF files on

 A group of users need to search for files in a large distributed file system frequently to construct a portfolio..  The file system may contain several millions of files which