Skip Navigation Links 
NOAA logo - Click to go to the NOAA home page National Weather Service   NWS logo - Click to go to the NWS home page
Climate Prediction Center

About Us
   Our Mission
   Who We Are

Contact Us
   CPC Information
   CPC Web Team

HOME > Monitoring_and_Data > Oceanic and Atmospheric Data > Reanalysis: Atmospheric Data > wgrib2-not_if

wgrib2: -not_if


The -not_if option returns true or false and is the start of the IF block structure. The -not_if option is like the -if option except the results are reversed. For example, -if ':HGT:' is true if the match inventory contains the string ':HGT:', and the next block is executed. The option -not_if ':HGT:' does the opposite and does not execute the next block. See -if for details about the IF block structure.


-not_if X
   X is a regular expression
   returns true if X is not in the match inventory, false otherwise

See also: -not, -end, -i, -if, -if_fs, -match, -match_inv, -not_if_fs, -fi. -endif. -else. -set_regex.

NOAA/ National Weather Service
National Centers for Environmental Prediction
Climate Prediction Center
5830 University Research Court
College Park, Maryland 20740
Climate Prediction Center Web Team
Page last modified: July 8, 2015, March 16, 2021
Disclaimer Privacy Policy