https:///weradocs/Modify_WERA_SORT.shtml Last update:

WERA HF Radar Software - Modify Normal Measurements (.SORT)

Modify_WERA_SORT

Modify_WERA_SORT reads all information needed on number of channels, length of timeseries, etc. from the header (first 512 bytes of data file). The program generates the file name of the associated .RFI file from the .SORT file name. If the .RFI file exists, it modifies the .RFI data accordingly. Modify_WERA_SORT can modify .SORT/.RFI data in the following four ways:

The following box shows a typical output generated by Modify_WERA_SORT:

~/Fortran > modify_wera_sort /home/wera/data/kaena/20023451602_kna.SORT /home/wera/data/kaena/20023451602_kna.SORT1

 Modify_WERA_SORT V1.1.0 Linux:
 *** Now processing /home/wera/data/kaena/20023451602_kna.SORT
 *** Correcting Kaena TRUE_NORTH to 299 degrees.
 NFFT       =   1024 Samples
 Last RC    =  64
 RANGEresol =  1.2000 km
 RAN_OFF    =  0.50 RC
 TRUE_NORTH =  299 degrees
 W16mod: 1024 SAMPLES  11-DEC-02 16:02 UTC  Kaena       FMSOCO  FREQUENZ 27.65
 - Interpolate to reduced range resolution ....... [R]
 - Interpolate to reduced sample rates ........... [S]
 - Correct Chirp Start problem ................... [C]
 - Apply phase corrections to the antenna channels [P] -> p
 Antenna     remove        apply   correction
   1       0.000000     0.000000     0.000000
   2      20.000000     3.565029    16.434971
   3      20.000000     8.443684    11.556316
   4      20.000000     7.285950    12.714050
 *** Reading......
 *** Result in /home/wera/data/kaena/20023451602_kna.SORT1

wera@ifmpc143:~/Fortran > modify_wera_sort ~/data/examples/20022972350_kna.sort ~/data/examples/20022972350_kna.sort1

 Modify_WERA_SORT V1.1.0 Linux:
 *** Now processing /home/wera/data/examples/20022972350_kna.sort
 *** Correcting Kaena TRUE_NORTH to 299 degrees.
 NFFT       =   2048 Samples
 Delta_T    = 0.260000 sec
 Last RC    =  128
 RANGEresol =  1.2000 km
 RAN_OFF    =  0.50 RC
 TRUE_NORTH =  299 degrees
 W16mod: 2048 SAMPLES  24-OCT-02 23:50 UTC  Kaena       FMSOCO  FREQUENZ 16.05
 - Interpolate to reduced range resolution ....... [R]
 - Interpolate to reduced sample rates ........... [S]
 - Correct Chirp Start problem ................... [C]
 - Apply phase corrections to the antenna channels [P] -> s
 Modified Header:
 NFFT       =   1536 Samples
 Delta_T    = 0.346667 sec
 Last RC    =  128
 RANGEresol =  1.2000 km
 RAN_OFF    =  0.50 RC
 TRUE_NORTH =  299 degrees
 *** Reading......
 *** Result in /home/wera/data/examples/20022972350_kna.sort1

wera@privwera8:~/Fortran> modify_wera_sort ~/dataX/surlitop/gar/20052811636_gar.SORT ~/dataX/surlitop/gar/20052811636_gar.SORT1

 Modify_WERA_SORT V1.1.0 Linux:
 *** Also modifying /home/wera/dataX/surlitop/gar/20052811636_gar.RFI  ***
 *** Now processing /home/wera/dataX/surlitop/gar/20052811636_gar.SORT
 NFFT       =   2048 Samples
 Delta_T    = 0.260000 sec
 Last RC    =  114
 RANGEresol =  1.5000 km
 RAN_OFF    =  0.50 RC
 TRUE_NORTH =  340 degrees
 W16mod: 2048 SAMPLES  08-OCT-05 16:36 UTC  Garchine    FMSOCO FREQUENZ  12.470
 - Interpolate to reduced range resolution ....... [R]
 - Interpolate to reduced sample rates ........... [S]
 - Correct Chirp Start problem ................... [C]
 - Apply phase corrections to the antenna channels [P] -> c
 *** Applying correction of ChirpStart: F_ERR =  0.002117810 Hz ***
 *** Result in /home/wera/dataX/surlitop/gar/20052811636_gar.SORT1
 *** Now processing /home/wera/dataX/surlitop/gar/20052811636_gar.RFI
 *** Applying correction of ChirpStart: F_ERR =  0.002117810 Hz ***
 *** Result in /home/wera/dataX/surlitop/gar/20052811636_gar.RFI1

The following box shows an example of /home/wera/etc/calibration.wera.remove:

~/etc > cat calibration.wera.remove
    1.0060586    1.0054578    0.00000000
    1.0050686    1.0078536   20.00000000
    1.0328177    1.0128292   20.00000000
    1.0095403    1.0134968   20.00000000

The following box shows an example of /home/wera/etc/calibration.wera.apply:

~/etc > cat calibration.wera.apply
    1.0060586    1.0054578    0.00000000
    1.0050686    1.0078536    3.56502914
    1.0328177    1.0128292    8.44368363
    1.0095403    1.0134968    7.28594971

Compile and link:

Linux:

Source is in Modify_WERA_SORT.F
Compilation and linking with '. do_modify_wera_sort.sh'
Call with 
> Modify_WERA_SORT input.SORT output.SORT1    e.g.:
> Modify_WERA_SORT /home/wera/data/kaena/20023451602_kna.SORT /home/wera/data/kaena/20023451602_kna.SORT1

VMS:

Source is in Modify_WERA_SORT.F
Compilation and linking with '@Modify_WERA_SORT'
Program needs to be defined as an external command to take parameters
from the command line, e.g.
$ Modify_WERA_SORT :== $$USER1:[WERA.Fortran]Modify_WERA_SORT.exe

Call with
$ Modify_WERA_SORT input.SORT output.SORT1     e.g.:
$ Modify_WERA_SORT $DATA1:[GURGEL.HAWAII.Data]20023451602_kna.SORT $DATA1:[GURGEL.HAWAII.Data]20023451602_kna.SORT1


Comments to: gurgel@ifm.uni-hamburg.de (Klaus-Werner Gurgel)