Data inspection utilities

Last modified 2 March (R. Ghosh)


anadat Lists internal format of data file

dirrun Lists unbroken sequences of data

anadat

This routine scans an uncompressed data file and produces a summary of the internal format, checking at a simple level for internal consistency.

Use:

%anadat d9dat
 anadat - Feb '95  (R.E. Ghosh)


 Scanning file :d9dat                                                   
                        
 Record   Run   Format............
      1 83245    80A    80A    24I  1034I
                                         *  30 SUB-SPECTRA
 End of file after   3253  records

% anadat /data/in5/001973
 anadat - Feb '95  (R.E. Ghosh)


 Scanning file :/data/in5/001973                                        
                        
 Record   Run   Format............
      1  1973    80A   156I   512A   384F   128F   128F   
... 128I   512I * 128 SUB-SPECTRA                                       
                                                                        
  
 End of file after   7350  records


Location of program: /usr/ill/bin/anadat

dirrun

This routine looks for data files and lists the first and last numbers bounding unbroken sequences.

Use:		dirrun instrument_data_directory 

% dirrun d11
 numors 004885 to 004900
 numor  004903
 numors 004907 to 004999
 numors 005001 to 005726
 numors 005730 to 006951

For instruments with subdirectories for each 10000 numors the current data is identified quickly by the command:
% ls -l /data/d9ls -l /data/d9
total 436
drwxr-xr-x    2 10393    5190         512 Jan 25 15:46 d9_0
drwxr-xr-x    2 10393    5190         512 Jan 25 15:46 d9_1
drwxr-xr-x    2 10393    5190         512 Jan 25 15:46 d9_2
drwxr-xr-x    2 10393    5190         512 Jan 25 15:46 d9_3
drwxr-xr-x    2 10393    5190         512 Jan 25 15:46 d9_4
drwxr-xr-x    2 10393    5190         512 Jan 25 15:46 d9_5
drwxr-xr-x    2 10393    5190         512 Jan 25 15:46 d9_6
drwxr-xr-x    2 10393    5190      138240 Feb 27 09:27 d9_7
drwxr-xr-x    2 10393    5190       80896 Mar  1 18:55 d9_8
drwxr-xr-x    2 10393    5190         512 Jan 25 15:46 d9_9

and looking for the last date of modification, then looking with dirrun:
% dirrun d9/d9_8
 numors 080000 to 082962
 numors 082964 to 085185

 Some or all data files have been compressed


If the file directory given to dirrun does not start with / then
/data is assumed.  If a / is given, (or implied by ~) then this
is used as the directory path.
	
Location of program: /usr/ill/bin/dirrun