Matching products¶
GRIB1¶
Syntax: product:GRIB1,origin,table,product
Any of origin
, table
, product
can be omitted; if omitted, any value will
match.
Examples¶
Given product GRIB1(98, 0, 12)
:
product:GRIB1
matchesproduct:GRIB1,98
matchesproduct:GRIB1,98,,12
matchesproduct:GRIB2
does not matchproduct:GRIB1,200
does not matchproduct:GRIB1,98,0,11
does not match
GRIB2¶
Syntax: product:GRIB2,centre,discipline,category,number,tablesVersion,localTablesVersion
Any of centre
, discipline
, category
, number
, tablesVersion
, or
localTablesVersion
can be omitted. If omitted, any value will match.
Examples¶
Given product GRIB2(98, 0, 1, 2)
:
product:GRIB2
matchesproduct:GRIB2,98
matchesproduct:GRIB2,98,,,2
matchesproduct:GRIB1
does not matchproduct:GRIB2,200
does not matchproduct:GRIB2,98,1,,2
does not match
BUFR¶
Syntax: product:BUFR,category,subcategory,subcategory_local:rep_memo
Any of category
, subcategory
, subcategory_local
or rep_memo
can be
omitted; if omitted, any value will match.
category
: data category (BUFR or CREX Table A)subcategory
: data subcategory (see Common Code table C-13)subcategory_local
: data subcategory local (defined by ADP centres)
Examples¶
Given product BUFR(0, 255, 1, t=synop)
:
product:BUFR
matchesproduct:BUFR,0,,1
matchesproduct:BUFR,0,,1:t=synop
matchesproduct:BUFR:t=synop
matchesproduct:GRIB1
does not matchproduct:BUFR:t=temp
does not match
ODIMH5¶
Syntax: product:ODIMH5,<OBJ value>,<PROD value>
OdimH5 product, identified by object and product values.
object and product values can be omitted.
Examples¶
Given product ODIMH5(PVOL,SCAN)
:
product:ODIMH5
matchesproduct:ODIMH5,PVOL
matchesproduct:ODIMH5,,SCAN
matchesproduct:GRIB1
does not matchproduct:BUFR:t=temp
does not match
VM2¶
Syntax: product:VM2,id:key1=value1,key2=value2,...
The keys (key1=value1
, …) are loaded at runtime from a meteo-vm2 attribute
table.
Examples¶
Assume that product with id 23 has the following attributes:
{bcode="B22043",tr=254,p1=0,p2=0,lt1=1}
Given product VM2(23)
:
product:VM2
matchesproduct:VM2,23
matchesproduct:VM2,23:bcode=B22043
matchesproduct:GRIB1
does not matchproduct:BUFR:t=temp
does not matchproduct:VM2,12
does not matchproduct:VM2,23:foo=bar
does not matchproduct:VM2:foo=bar
does not match