This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Leon, > To: address@hidden > From: Leon Minton <address@hidden> > Subject: Avoiding certain products via pqact.conf > Organization: Cooperative Institute for Mesoscale Meteorological Studies > Keywords: 200509081733.j88HXljo021405 The above message contained the following: > I have a couple of pqact.conf lines in which the value for \3 which is > currently (...) needs to somehow eliminate the following combinations: > > RRS, DPA, RCM, and possibly a few others. How would I modify the > following lines to accomplish this?? > > WMO ^(....[0-9][0-9]|....[0-9]) (K|T|P|N)(...)(.*)/p(....|.....|......)$ > FILE -strip -overwrite /home/ldm/data/\3/\5 > > # Text Only > > WMO ^(....[0-9][0-9]|....[0-9]) (K|T|P|N)(...)(.*)/p(....|.....|......)$ > FILE -strip -overwrite /home/ldm/current/\3\5 Excluding things by NOT matching on them can get very ugly very fast. For example, an extended regular expression that matches everthing that differs from "RRS", "DPA", and "RCM" by only one character is RR[^S]|R[^R]S|[^R]RS|DP[^A]|D[^P]A|[^D]PA|RC[^M]|R[^C]M|[^R]CM Which still leaves differences by two, three, and all characters to match upon. A better solution would be to PIPE the data-products to a script that only files the appropriate ones. For example WMO ^(....[0-9][0-9]|....[0-9]) (K|T|P|N)(...)(.*)/p(....|.....|......)$ PIPE -strip -close fileExceptRrsDpaRcm \3 \5 where the "fileExceptRrsDpaRcm" script could be if test $1 = RRS -o $1 = DPA -o $1 = RCM; then cat >/dev/null else cat >/home/ldm/data/$1/$2 fi Note that the script ALWAYS reads the data-product (as must all decoders). A good place to put the script is $LDMHOME/util -- assuming that directory is in the PATH environment variable of the LDM user. > Leon Minton, IT Analyst > Cooperative Institute for Mesoscale Meteorological Studies > Teamed with NWS-SRH-CWWD-DET (DOC/NOAA) Regards, Steve Emmerson > NOTE: All email exchanges with Unidata User Support are recorded in the > Unidata inquiry tracking system and then made publicly available > through the web. If you do not want to have your interactions made > available in this way, you must let us know in each email you send to us.