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

When the flush mode is off, output is buffered. Than means the output is saved to a memory buffer and is only flushed (written out) when the buffer is full or the program ends. This mode speeds up the output. However, this mode fails when writting to a pipe or file and another program is reading from that pipe or file while wgrib2 is executing.

The -flush option causes wgrib2 to flush the output buffers after every write. This option is now rarely used because wgrib2 internally sets the flush option on when detects a write to a pipe. The only current need for the -flush option is when another program is reading the disk file while wgrib2 is writting that file. In this case, you would use this option to ensure that the disk file is written as soon as possible.

In systems that do not have a POSIX-compatible stat() function, the flush mode is turned on.

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: Oct 6, 2017, Aug 2021
Disclaimer Privacy Policy