![]() |
|
Rack can also create radar image composites, sometimes called mosaics. In weather services, composites are often preferred to single-radar products. This section lists related commands and examples. A list of all the related command is Compositing and Cartesian products. Motion vectors are a separate topic, discussed in Composites of motion fields .
A single-radar Cartesian image is created simply with --cCreate (abbr. -c ) as follows:
By default, the first data in the input volume – /dataset1/data1 – is used. This can be changed with --select , which has several options:
| Parameter | Default | Unit |
|---|---|---|
path | [/]dataset[/data<j>//quality<j>] | |
quantity | DBZH:VRAD:RHOHV:... | |
elangle | -90,90 | min[:max] |
count | 4095 | uint32 |
order | DATA:MIN | ["DATA","ELANGLE","TIME"]:["MIN","MAX"] |
prf | ANY | ["ANY","SINGLE","DOUBLE"] |
timespan | 0,0 | range from nominal time [seconds] |
The following command loops through for quantities and displays them as an image panel:
The following command generates Pseudo Cappi images on predefined altitudes :
For more details on using --forEach and --script commands, see Scripts .
Further, if a polar product has been computed, its (main) output quantity is automatically used but can be likewise overridden with --select .
The default settings of Cartesian transformation are collected below as command line options.
| Option | Parameters | Default |
|---|---|---|
--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" |
In Rack , any single-radar Cartesian image is technically a "single-radar composite".
Internally, a composite is implemented as a separate memory array that supports continuous accumulation of data. That means that arbitrarily many input volumes can be added.
The first --cAdd command initialises the composite with current geographical settings. As they are not given explicitly in this example, the composite applies AEQD projection centered around the first input (from fikor , Korpo radar).
--select command is repeated in the above example. It would be sufficient to put it before the first --cAdd command only – the selector is internally stored as a composite input selector for subsequent inputs.Instead of repeating arguments on the command line, it is handy to use --script to define a routine repeated for each input. (More details on Scripts page.)
Likewise, if file paths are long, their shared parts can be set with --inputPrefix and --outputPrefix . The previous command can be hence reformulated as follows, with an extended set of output files:
--cCreate producing a single radar Cartesian image is actually a shorthand of –cAdd –cExtract 'DATA,WEIGHT' .An example of a command that generates a composite image of Pseudo CAPPI product of 12 radars:
Experimental. The above command line can be generated – and optionally executed – using Python utility rack.composite . The equivalent command line is not remarkably shorter, but now the order of the options is insignificant:
data/20*.fi*.h5 . That also makes option --inputPrefix or --INDIR (for Python) unneeded.The above command lines can be generated also inside a Python program, as follows.
endcode
| Option | Parameters | Description | |
|---|---|---|---|
--cBBox | llLon,llLat,urLon,urLat | Bounding box of the Cartesian product. | |
--cSize | width,height | Set size of the compositing array. Does not allocate memory. | |
--cMethod | method | Method in accumulating values on a composite. | |
--select | path,quantity,elangle,count,order,prf,timespan | Data selector for the next computation |
See also
1.9.8