To output a field, the body of the postcntrl.xml file needs to contain an entry for the appropriate variable and include at least the shortname, pname, level, and scale, with additional tags as deemed necessary. If a field is not in your postcntrl.xml but it is available for output, you may simply copy that parameter from the post_avblflds.xml.
GRIB2 file names on the NWS ftp server will remain the same as the GRIB1 file names, but the GRIB2 files are stored in new uniquely named subdirectories. However, the GFS 1.0 deg files are an exception; the GRIB2 version will be named fh.HHHHtl.pressgr.1p0deg instead of fh.HHHHtl.pressgr.onedeg.
To modify which levels to output, the values in the level tag will need to be edited to reflect the desired output levels for that variable. F1 2013 game for mac free download. If the variable is defined over a specific layer, then both the level (first level of the layer) and level2 (second level of the layer) tags will need to be edited.
The list below details which variables are available for output for a variety of fields.
For a list of available fields for GRIB2, see the GRIB2 Table
from ncepgrib2 import Grib2Decode
#get info about grib2 section specifications
print grb
center_wmo_code = kwbc
data_representation_template = [1131507924 -3 0 9 0 0
255]
discipline_code = 0
earthRminor = 6371229.0
grid_definition_template = [ 6 0 0 0 0 0 0
451 337 16281000 233862000 8 25000000 265000000
13545000 13545000 0 64 25000000 25000000 0
0]
gridlength_in_x_direction = 13545.0
has_local_use_section = False
identification_section = [ 7 0 2 1 1 2013 12 6 5 0 0 0 1]
longitude_first_gridpoint = 233.862
originating_center = US National Weather Service - NCEP (WMC)
points_in_y_direction = 337
product_definition_template = [ 0 0 2 0 105 0 0 1 1 100
0 100000 255 0 0]
proj4_lat_0 = 25.0
proj4_lat_2 = 25.0
proj4_proj = lcc
shape_of_earth = Spherical
print 'grid id section:',grb.identification_section