Skip Navigation Links www.nws.noaa.gov 
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-flush
 

wgrib2: -flush

Introduction

The -flush option is no longer needed in the current versions of wgrib2 except for special cases.. The code detects when you are writing to a special file like a pipe and turns on the -flush option. The only known example where you might want to use the -flush option is when writing to a file and another program is reading from the file at the same time.

The -flush option causes wgrib2 to flush the output buffers after every write. You would use this option if you were running wgrib2 as an interactive decoder or using pipes to multitask the processing.

Interactive processing will the need -flush option because under normal conditions, wgrib2 will wait until its buffers are full before writing to a device.

Usage

-flush

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: May 15, 2005
Disclaimer Privacy Policy