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-print_out
 

wgrib2: -print_out

Introduction

The -print_out option prints a string to a file.

Usage

-print_out "string" FILE
     Writes "string" to FILE

Example

$ wgrib2 LIS.c3 -if ':SNOD:' \
  -s -last junk \
  -print_out ' (found snod)' junk \
  -nl_out junk
1:0
2:661778
3:903352
4:4108932
5:9512902:d=2014030500:SNOD:surface:anl:d=2014030500:SNOD:surface:anl:
6:14281104
7:14925511
$ cat junk
d=2014030500:SNOD:surface:anl: (found snod)

 -s -last junk                        -last prints the output from the last option (-s) to junk
 -print_out ' (found snod)' junk      writes string to junk
 -nl_out junk                         writes a new-line to junk
See also: last last0 print nl_out s_out

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: 6/2022
Disclaimer Privacy Policy