Loading...
Searching...
No Matches
Compositing parameters

Under construction...

The following command generates Pseudo Cappi images on predefined altitudes :

rack \
--gLayout VERT \
--gGroupTitle 'Altitude ${what:prodpar} ${i}' \
--forEach i=100,600,1000,2000 \
--script '--select prf=SINGLE,quantity=DBZH --pCappi ${i} -c -P -o out-${i}.png -Q QIND -o out-${i}-QIND.png' \
data/202611201200_radar.polar.fikor.h5 \
-o cappi-panel-hght.svg
A panel of pseudo CAPPI at several altitudes.

Also beamwidth can be altered:

rack \
--gLayout VERT \
--gGroupTitle '${what:product} ${what:prodpar} ${i}' \
--forEach i=0.5,0.7,0.9,1.0,1.1,1.5 \
--script '--select prf=SINGLE,quantity=DBZH --pCappi 600,beamWidth=${i} -c -P -o out-${i}.png -Q QIND -o out-${i}-QIND.png' \
data/202611201200_radar.polar.fikor.h5 \
-o cappi-panel-beam.svg
A panel of pseudo CAPPI using different virtual beamwidths.

Varying weightMin one can drop the weakest signals, marked as nodata.

rack \
--gLayout VERT \
--gGroupTitle '${what:product} ${what:prodpar} ${i}' \
--forEach i=-1,-0.2,-0.1,0,0.1,0.2,0.5 \
--script '--select prf=SINGLE,quantity=DBZH,count=3 --pCappi 2000,weightMin=${i} -c -P -o out-${i}.png -Q QIND -o out-${i}-QIND.png' \
data/202611201200_radar.polar.fikor.h5 \
-o cappi-panel-weightmin.svg
A panel of pseudo CAPPI using different ...

For more details on using --forEach and --script commands, see Scripts .

Conversion to Cartesian coordinates has several default settings, collected below as command line options.

Option Argument Default, based on input
--cProj EPSG code, proj string, or "AEQD" "AEQD" (Azimuthal Equidistant centered at the radar)
--cBBox xLL,yLL,xUR,yUR Matched to the radar range
--cSize width,height "500,500"
--cMethod compositing method "MAXIMUM"
--select path,quantity,... "path=dataset1/data1"

Compositing methods

Compositing can be apply several compositing methods (or rules):

  • AVERAGE - average value
  • MAXIMUM - maximum value
  • MAXW - maximum-quality (using a quality field provided with the data)
  • WAVG,p,r,offset - weighted average with data and quality enhancement coefficients p and r ; also offset is needed for ensuring positive data values. See also Handling special codes .

The commands related to compositing and Cartesian products start with 'c'. In computation Rack supports two schemes:

  • Direct scheme: data from all the radars are added to a composite sequentially, applying a single command line
  • Tiled (distributed) scheme: data from each radar are pre-processed and stored in parallel, asynchronously; the tiles are later composited by a separate, fast process

In both direct and tiled schemes, data of each radar can undergo anomaly detection and removal. In addition, a polar product (like pseudo CAPPI or echo height) can be computed.

Defining a composite

Essential properties of a composite are:

  • Size of the array (image)
  • Geographical projection
  • Geographical extent

Size

The size of the composite, in pixels, is set with –cSize.

--cSize <width>,<height> (section: cart)
Set size of the compositing array. Does not allocate memory.
- width (400) [pixels]
- height (0) [pixels]
See also: cBBox,cProj,cRange,cReset

Projection

Projection definition command –cProj uses Proj.4 syntax and additionally supports direct EPSG codes, --cProj\ 3067 .

--cProj <projection> (section: cart)
Set projection
- projection () [<EPSG-code>|<projstr> Proj.4 syntax]
See also: cBBox,cReset,cSize

If the projection is not given, Rack uses the Azimuthal Equidistant (AEQD) projection centered at radar site of the first input.

When writing GeoTIFF files, using EPSG codes is recommended because not all Proj.4 project definition strings are supported by the GeoTIFF library. The following list produced as a part of release tests.

4326
+init=epsg:4326
# Note: only partially conformant with WKT2:2019
+proj=longlat +datum=WGS84 +no_defs +type=crs
# Note: only partially conformant with WKT2:2019
2393
+init=epsg:2393
+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +units=m +no_defs +type=crs
3067
+init=epsg:3067
+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs
5125
+init=epsg:5125
+proj=tmerc +lat_0=58 +lon_0=25.5 +k=1 +x_0=100000 +y_0=1000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs
3844
+init=epsg:3844
# LibGTIF fails with (plain) Proj.4 definition string:
# +proj=sterea +lat_0=46 +lon_0=25 +k=0.99975 +x_0=500000 +y_0=500000 +ellps=krass +units=m +no_defs +type=crs
3035
+init=epsg:3035
# LibGTIF fails with (plain) Proj.4 definition string:
# +proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs +type=crs
3995
+init=epsg:3995
# LibGTIF fails with (plain) Proj.4 definition string:
# +proj=stere +lat_0=90 +lat_ts=71 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +type=crs

Bounding box

The geographical area – the bounding box – of the composite is set with --cBBox taking lower left and upper right points as arguments. The points can be always given in degrees. If the applied projection is metric, the coordinates can be given as meters. If the bounding box is not explictly given with --cBBox command, the corner points of the first radar input are used.

--cBBox <llLon>,<llLat>,<urLon>,<urLat> (section: cart)
Bounding box of the Cartesian product.
- llLon (0) [deg|m]
- llLat (0) [deg|m]
- urLon (0) [deg|m]
- urLat (0) [deg|m]
See also: cBBoxTest,cBBoxTile,cCreateTile,cProj,cReset,cSize

Hint: look at additional attributes of prefix where:BBOX written in output files. These attributes display the coordinates of metric projections in native (i.e. metric) units and also report extent and overlap of input data. The bounding boxes can be used in optimising composite products. (Write of additional non-standard attributes is controlled with the --odim command. )

Initialisation

Command --cInit creates an empty compositing array of desired size in the memory and stores the essential attributes listed above. The command is optional – initialisation is implicitly invoked when the first input is introduced with --cAdd or --cAddWeighted . However, explicit command is recommended, if the user wants to get an empty image (instead of an error) in case no inputs are available.

--cInit (section: cart)
Allocate memory to --cSize, applying --target and --select, if set.
See also: cReset

Handling special codes

Radar data complying the ODIM standard applies special marker codes undetect and nodata . These codes have to be handled carefully in product generation and compositing. In Rack , pixel values with nodata are simply skipped; they are not accumulated in the composite array, for example.

Handling of undetect can be tuned by the user with --quantityConf and --undetectWeight . The physical value or "virtual zero" replacing undetect codes is set using --quantityConf ,
for example, --quantityConf DBZH,zero=-32.0 (corresponding the limit of signal detection sensitivity). See also Default encoding of quantities. The corresponding relative weight is set with --undetectWeight <value> . The value 0.0...1.0 describes the significance of the value relative to a "true" detected measurement value. The value is zero by default, which in compositing means that the location is marked as processed (a counter is incremented) but the value is not accumulated.

The extraction command --cExtract extracts one or more data layers out of the compositing (accumulation array):

  • DATA - the actual composited data, like reflectivity (DBZH )
  • WEIGHT - quality (confidence) of the data value
  • COUNT - number of radars contributed
  • DEVIATION - difference or discrepancy of data (if more than one radar contributed)

The desired combination is given as a comma-separated list of above keywords. Notice that the command –cCreate for creating single radar "composite" is equivalent to --cAdd cExtract DATA,WEIGHT . For example: