Access scramnet logfiles (agc,pnt)

Last modified: Thu Mar 16 13:07:11 2023.


List of Routines


Routine Descriptions

SCRMAGCINPDAY - INPUT ALL THE SCRM PNT INFO FOR 1 DAY.

[Next Routine] [List of Routines]
NAME:
scrmagcinpday - input all the scrm pnt info for 1 day.
SYNTAX: npts=scrmagcinpday(date,b,dirL=dirL)
ARGS:
       date:   long yymmdd file to input
       b[] :   {cbfb}  return cblock,fblock info here, if cb or fb set then
                       structure will only be cb or fb    
       npts:   long    number of samples found
KEYWORDS:
  dirL[]: string  list of extra directories to search for files
RETURNS:
     npts: long number of samples found for this day.
DESCRIPTION:
   scrmagcinpday will input all of the pnt data for the requested day.
The array B[] will typically have 86400 entries (1 per second). The data
structure is described in scrmIntro above.

(See /pkg/rsi/local/libao/phil/scrm/scrmagcinpday.pro)


SCRMINP - INPUT SCRM RECORDS FOR A SCRAMNET LOG FILE.

[Previous Routine] [Next Routine] [List of Routines]
NAME:
scrminp - input scrm records for a scramnet log file.
SYNTAX: pnts=scrminp(lun,b,nptsreq,type)
ARGS:
       lun:    long    lun for file to read from
   nptsreq:    long    number of recs to read in. if <=0 or not supplied
                       then read to end of file.
      type:    char    type of data we're inputting: "pnt" or "agc"
RETURNS:
       b[] :   {}      return array of scram block.either{scrmagc} or {scrmpnt}
      pnts :    long   return the number of points input.

KEYWORDS:
DESCRIPTION:
   scrminp is normally called from scrmagcinpday or scrmpntinpday

(See /pkg/rsi/local/libao/phil/scrm/scrminp.pro)


SCRMPNTINPDAY - INPUT ALL THE SCRM PNT INFO FOR 1 DAY.

[Previous Routine] [Next Routine] [List of Routines]
NAME:
scrmpntinpday - input all the scrm pnt info for 1 day.
SYNTAX: npts=scrmpntinpday(date,b,dirL=dirL)
ARGS:
       date:   long yymmdd file to input
       b[] :   {cbfb}  return cblock,fblock info here, if cb or fb set then
                       structure will only be cb or fb    
       npts:   long    number of samples found
KEYWORDS:
  dirL[]: string  list of extra directories to search for files
RETURNS:
     npts: long number of samples found for this day.
DESCRIPTION:
   scrmpntinpday will input all of the pnt data for the requested day.
The array B[] will typically have 86400 entries (1 per second). The data
structure is described in scrmIntro above.

(See /pkg/rsi/local/libao/phil/scrm/scrmpntinpday.pro)


SCRMPNTINPFILE - INPUT A P12MSCRAM FILE

[Previous Routine] [Next Routine] [List of Routines]
NAME:
scrmpntinpfile - input a p12mscram file
SYNTAX: npts=scrmpntinpfile(fname,b)
ARGS:
       file:   string  name of file
       b[] :   {}      returns log file (with scram timing block at the front
       npts:   long    number of samples found
KEYWORDS:
RETURNS:
     npts: long number of samples found in this day.
DESCRIPTION:
   scrmpntinpfile will input all of the p12m data in the requested file.
On pdevs1  scramLog program listens to the scram broadcasts and writes
each one to /data/scramLog/p12myymmdd.dat
	This has the p12m log struct broadcast on ethernet with the
scram timing block at the beginning (when the read occured etc..)
Since /data/scramLog/ is not a network file, you need to scp the data
from pdevs1 before using this routine.

(See /pkg/rsi/local/libao/phil/scrm/scrmp12minpfile.pro)


SCRMPNTOPEN - OPEN AN AGC SCRAMNET LOG FILE

[Previous Routine] [List of Routines]
NAME:
scrmpntopen - open an agc scramnet log file
SYNTAX: lun=scrmopen(yymmdd,type,dirL=dirL,dirUsed=dirUsed,fnameUsed=fnameUsed)
ARGS:
    yymmdd:    long    data to open
    dirL[]:  string   list of directories to include in default search path
RETURNS:
lun    : long   lun for open file. -1 if open failed
dirUsed: string  directory used (with trailing /)
fnameUsed: string basename used
 
DESCRIPTION:
   scrmopen is normally called from scrmpntinpday or scrmagcinpday.

(See /pkg/rsi/local/libao/phil/scrm/scrmopen.pro)