| https:///weradocs/wera16_grid.shtml |
A third optional parameter can be used to pass the name of a configuration file. This file must be located in ~/etc e.g. ~/etc/params_Hawaii.cfg . If no third parameter is supplied, the configuration is read from ~/etc/params.cfg .
| As of V2.1.0 (June 2009), this program checks the signal received from the direct path to compensate for Chirp Start variations. |
| As of V2.0.0 (December 2007), this program calculates the range and azimuth from the WERA site to the grid points given in WGS84 coordinates. This affects the calculation of the beam forming angle and the range cell(s) involved to compute the spectrum at a grid point. |
Reads all information needed on number of channels, length of timeseries, etc. from the header (first 512 bytes of the .sort file) and the following values from PARAM_UV*.CFG (VMS) / params*.cfg (Linux):
Values in params.cfg:
C Name and size (NX, NY) of Grid File
C
NX = 60
NY = 67
GRID_NAME = '/home/wera/etc/Nice_grid_60_67.asc'
C Name of WERA Gain File
C
GAIN_NAME = '/home/wera/etc/wera_gain.dat'
!The following 7 parameters allow simultaneous use of a linear and
!a square array within the same WERA system. They provide a mapping
!of receiver channels to antenna numbers. A value of '0' indicates that
!this antenna configuration does not exist in the actual WERA system.
!
ARR1_001 = 1 !First antenna# in linear array
ARR2_001 = 16 !Last antenna# in linear array
ARRD_001 = 9.35 !Distance between elements [meters]
STEER_001 = 60 !+/- max steering angle [degrees]
!Name of file for FullCalibration
FCAL_001 = '/home/wera/etc/LaRevellata.fullcal'
!Name of file for linear array spacing
DIST_001 = 'antdist_LaRevellata.asc'
!Name of file for antenna locations [LAT,LON]
APOS_001 = '/home/wera/etc/antpos_LaRevellata.asc'
|
The .SPEC files are also used by Lucy Wyatt's wave algorithm. These binary files can be transfered between platforms, e.g. Linux <--> VMS by FTP in binary mode without breaking the file structrure.
Program expects 'FMSOCO' header code and writes 'FMSPEC' header code.Look here for a complete list of header codes.
wera16_grid also adds information on the measurement grid and the name of the grid file used during processing to the header (example from Hawaii):
NX=100 NY=140 --> Size of grid NTL= 13 --> Number of FracSeries used NFTL= 512 --> Number of lines in the spectrum Oahu_grid_100_140.asc --> Name of grid-file used LAT= 21.866659 --> LAT(1,1), upper left corner of the grid LON=-159.049942 --> LON(1,1), upper left corner of the grid DGT= 1.000000 --> Grid spacing in [km]
The following box shows a typical output generated by wera16_grid :
wera@ifmpc205:~/Fortran> wera16_grid ~/data/surlitop/bre/sort/2005/249/20052492348_bre.SORT ~/data/surlitop/bre/spec/2005/249/20052492348_bre.SPEC param_uv_brest.cfg WERA16_Grid V2.0.0 Linux: *** Reading configuration from /home/wera/etc/param_uv_brest.cfg *** The time is 13-DEC-2007 14:49:29 *** Now processing ~/data/surlitop/bre/sort/2005/249/20052492348_bre.SORT Frequency = 12.4580002 MHz NSER = 2048 Samples T_chirp = 0.260000 s F_bragg = 0.360100 Hz Last RC = 114 range cells RANGEresol = 1.5000 km RAN_OFF = 0.5000 RC RAN_OFF = 750 m TRUE_NORTH = 20 degrees Linear array: Antennas 1 to 16 *** Reading antenna locations from /home/wera/etc/antpos_Brezellec.asc W16grid: 2048 SAMPLES 06-SEP-05 23:48 UTC Brezellec FMSOCO FREQUENZ 12.458 *** Reading FullCalib : /home/wera/etc/Brezellec.fullcal *** Reading grid coordinates ....: /home/wera/etc/Brest_grid_68_80.asc *** Calculating distance and angle from radar site to grid point in WGS84 coordinates. *** Calculating complex window function for beam forming. *** Calculating S/N of each antenna. *** Normalizing antenna gains. *** Forming beams to grid points. 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100 *** Result in ~/data/surlitop/bre/spec/2005/249/20052492348_bre.SPEC *** The time is 13-DEC-2007 14:54:54 |
Here are the data formats of the input (.SORT) and output (.SPEC) files.
Compilation from source:
Linux: Source is in wera16_grid.F Compilation and linking with './do_wera16_grid.sh' Call with > wera16_grid <path_to_.sort_file> <path_to_.spec_file> [params*.cfg] e.g. > wera16_grid /directory/20003341355_TOR.SORT /directory/20003341355_TOR.SPEC params_Gijon.cfg You should use the same time code in the .SORT and .SPEC filenames. |
VMS:
Source is in wera16_grid.F
Compilation and linking with @wera16_grid
Program needs to be defined as an external command to take parameters
from the command line, e.g.
$ WERA16_GRID :== $$USER1:[WERA.Fortran]WERA16_GRID.EXE
Call with
$ wera16_grid <path_to_.sort_file> <path_to_.spec_file> Param_uv*.cfg
$ WERA16_GRID -
$USER1:[WERA.Fortran]20003341355_TOR.SORT -
$USER1:[WERA.Fortran]20003341355_TOR.SPEC -
Param_uv_Gijon.cfg
|