3
integer ptuplev, ptdetach, ptclose, ptgetrecnums
4
integer*4 ptfid, ptid1, ptid2
5
integer*4 recs(32), inlevel, outlevel
6
integer*4 ptopen, ptattach
7
integer*4 outrecs(32), outnrec
10
character datbuf*256, c8*8
14
parameter (DFACC_RDWR=3)
17
c Open the HDF point file, "PointFile.hdf".
20
ptfid = ptopen("PointFile.hdf", DFACC_RDWR)
22
ptid1 = ptattach(ptfid, "Simple Point")
23
ptid2 = ptattach(ptfid, "FixedBuoy Point")
29
status = ptuplev(ptid2, 0, "Longitude", 1, recs, datbuf)
34
status = ptuplev(ptid2, 0, "ID", 1, recs, datbuf)
39
status = ptgetrecnums(ptid2, inlevel, outlevel, nrec, recs,
47
status = ptuplev(ptid2, outlevel, "ID", outnrec, outrecs, datbuf)
49
status = ptdetach(ptid1)
50
status = ptdetach(ptid2)
52
status = ptclose(ptfid)