1
! @(#)temperature.prg 19.1 (ESO-IPG) 02/25/03 14:21:47
3
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5
! MIDAS procedure temperature.prg
8
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10
define/par p1 ? C "Enter name for file list : "
11
define/par p2 ? N "Enter filenumber start,end : "
13
define/local range/i/1/2 {p2}
14
define/local infile/c/1/40 " " all
15
define/local i/i/1/1 0
16
define/local ind/i/1/1 0
17
define/local num/i/1/1 0
18
define/local ftype/i/1/1 0
21
crea/col {p1} :num R*4 F5.2
22
crea/col {p1} :JD24 R*8 F13.5
23
crea/col {p1} :tspec R*4 F5.2
24
crea/col {p1} :troom R*4 F5.2
25
crea/col {p1} :rhum R*4 F7.2
27
do num = {range(1)} {range(2)} 1
32
ind = M$EXIST("fero{num}.mt")
34
infile = "fero{num}.mt"
35
crea/ima &header 1,1 1,1 NODATA
36
cop/dd {infile} *,3 &header
38
infile = "middummheader.bdf"
41
! ind = M$EXIST("f{num}ext1.bdf")
43
! infile = "f{num}ext1.bdf"
46
ind = M$EXIST("f{num}1.bdf")
48
infile = "f{num}1.bdf"
52
if ftype .eq. 0 goto next
55
copy/dk {infile} O_TIME/D/4/1 jd24/d/1/1
56
{p1},:jd24,{i} = m$value(jd24)
57
{p1},:tspec,{i} = {{infile},TSPEC}
58
{p1},:troom,{i} = {{infile},TROOM}
59
{p1},:rhum,{i} = {{infile},RHROOM}
65
set/gra stype=2 xa ya=15,16.5 color=1
66
sele/tab {p1} :tspec.gt.0
67
plo/tab {p1} :jd24 :tspec
69
over/tab {p1} :jd24 :troom 3