Man page - lensec0(3)
Packages contas this manual
- g2_miss.c(3)
- g2c_write_index(3)
- g2_miss(3)
- g2_unpack1(3)
- g2_unpack3(3)
- entry(3)
- sbit(3)
- pngunpack.c(3)
- specpack(3)
- comunpack.c(3)
- jpcpack_int(3)
- g2c_aecpackd(3)
- gribfield(3)
- g2_addfield(3)
- g2_gribend(3)
- g2_getfld.c(3)
- g1num(3)
- unpacked(3)
- aecunpack.c(3)
- seekgb.c(3)
- g2_free.c(3)
- simpack(3)
- g2c_print_tables(3)
- num(3)
- aecpack_int(3)
- g2c_close(3)
- g2cat(3)
- aecunpack_int(3)
- igdtlen(3)
- template(3)
- g2c_pngunpackd(3)
- getgridtemplate(3)
- g2_getfld(3)
- gridtemplates.c(3)
- num_data_points(3)
- g2c_start_index_record(3)
- prev(3)
- g2_info.c(3)
- igdtmpl(3)
- g2c_free_tables(3)
- g2c_find_msg2(3)
- format_level(3)
- determine_dims(3)
- int_power(3)
- read_hdr_rec2(3)
- rdieee(3)
- hour(3)
- g2_unpack6.c(3)
- g2c_aecunpackf(3)
- g2c_find_desc(3)
- idrtmpl(3)
- sec(3)
- g2cio.c(3)
- dec_aec(3)
- read_hdr_rec1(3)
- g2c_open(3)
- g2c_find_table(3)
- g2c_file_io_template(3)
- gtemplate(3)
- g2c_get_drs_template(3)
- g2c_enc_jpeg2000(3)
- g2c_table(3)
- getgridindex(3)
- g2_addgrid(3)
- ifldnum(3)
- jpcunpack.c(3)
- mkieee.c(3)
- section1(3)
- g2_unpack5(3)
- g2c_get_level_desc(3)
- pdstemplates.c(3)
- g2c_get_prod(3)
- g2c_jpcunpackd(3)
- bytes_to_msg(3)
- pngpack(3)
- g2c_get_datetime(3)
- g2c_open_index(3)
- ntoh64(3)
- add_msg(3)
- enc_png(3)
- g2_gribend.c(3)
- g2_unpack2.c(3)
- g2c_file_io_ubyte(3)
- g2c_aecunpackd(3)
- source_grid_def(3)
- num_messages(3)
- g2cfile.c(3)
- g2_unpack3.c(3)
- section_number(3)
- sec_num(3)
- decenc_png.c(3)
- g2_create.c(3)
- getdim(3)
- g2cinq.c(3)
- g2c_dec_jpeg2000(3)
- ext(3)
- g2intu(3)
- idrtlen(3)
- comunpack(3)
- ndpts(3)
- drstemplates.c(3)
- g2cid(3)
- idsect(3)
- g2c_next_g2cid(3)
- name(3)
- num_local(3)
- section_offset(3)
- year(3)
- g2c_pngunpackf(3)
- bytes_to_local(3)
- g2c_file_io_ushort(3)
- g2c_inq_dim(3)
- util.c(3)
- indicator(3)
- g2c_inq_msg_time(3)
- g2c_get_grid_template(3)
- g2c_compare.c(3)
- g2float(3)
- g2c_inq_msg(3)
- misspack.c(3)
- g2c_set_log_level(3)
- g2c_rw_section4_metadata(3)
- g2c_file_io_short(3)
- g2c_gbit_int(3)
- specpack.c(3)
- optional(3)
- g2c_csv_strsep(3)
- g2_unpack5.c(3)
- g2c_file_io(3)
- sec_info(3)
- extdrstemplate(3)
- g2c_degrib2(3)
- jpcunpack(3)
- path(3)
- dimid(3)
- g2c_log_file(3)
- extpdstemplate(3)
- idsectlen(3)
- g2cprod.c(3)
- g2_info(3)
- dec_png(3)
- g2c_pngpackf(3)
- g2c_get_grid_template_extension(3)
- g2c_start_index1_record(3)
- status(3)
- sec_len(3)
- g2cindex.c(3)
- g2c_log_section(3)
- g2_unpack2(3)
- g2c_file(3)
- sec_id(3)
- grib2_int.h(3)
- ngrdpts(3)
- gbits.c(3)
- g2c_get_msg(3)
- griddef(3)
- getdim.c(3)
- user_write_data(3)
- num_opt(3)
- g2c_dec_png(3)
- bytes_to_data(3)
- rdieee.c(3)
- compack(3)
- g2c_inq(3)
- month(3)
- doc(3)
- g2_addlocal(3)
- g2c_gbits_int(3)
- locallen(3)
- jpcpack(3)
- templatespds(3)
- templatesgrid(3)
- center(3)
- msg(3)
- jpcpack.c(3)
- bmap(3)
- g2num(3)
- value(3)
- g2_addfield.c(3)
- cmplxpack.c(3)
- g2_create(3)
- g2c_add_file(3)
- user_flush_data(3)
- read_metadata(3)
- specunpack(3)
- g2c_file_io_uint(3)
- pack_gp(3)
- g2c_jpcpackd(3)
- file(3)
- interp_opt(3)
- msg_num(3)
- f(3)
- simunpack.c(3)
- needext(3)
- decenc_jpeg2000.c(3)
- find_available_g2cid(3)
- g2c_strerror(3)
- g2cutil.c(3)
- data_def(3)
- int_dec_jpeg2000(3)
- g2c_param_all(3)
- local_version(3)
- gbits(3)
- grib2.h(3)
- cmplxpack(3)
- g2c_unpack7_int(3)
- int_power.c(3)
- g2c_log_section1(3)
- g2c_inq_dim_info(3)
- maplen(3)
- g2_unpack6(3)
- compack.c(3)
- fld(3)
- g2ccsv.c(3)
- g2c_csv_init(3)
- ipdtnum(3)
- g2_unpack4(3)
- ibmap(3)
- g2_unpack4.c(3)
- g2_unpack7.c(3)
- field_num(3)
- igdtnum(3)
- pngunpack(3)
- g2c_compare(3)
- templatesdrs(3)
- jpcunpack_int(3)
- g2c_aecpackf(3)
- add_section(3)
- list_opt(3)
- hton64(3)
- decenc_openjpeg.c(3)
- g2c_rw_section1_metadata(3)
- g2c_param_g1tog2(3)
- getdrstemplate(3)
- simunpack(3)
- g2c_start_index_record_lf(3)
- g2c_jpcpackf(3)
- sec1_len(3)
- template_len(3)
- g2c_file_io_int(3)
- day(3)
- g2_unpack7(3)
- g2c_open_index1(3)
- enc_jpeg2000(3)
- interp_list(3)
- pngpack_int(3)
- g2_unpack1.c(3)
- idrtnum(3)
- g2c_seekmsg(3)
- g2c_inq_prod(3)
- sbits(3)
- g2c_rw_section3_metadata(3)
- g2c_file_io_ulonglong(3)
- g1ver(3)
- user_read_data(3)
- dim(3)
- coord_list(3)
- gbit(3)
- aecunpack(3)
- getdrsindex(3)
- subcenter(3)
- g2ccompare.c(3)
- code(3)
- bytes_to_bms(3)
- type(3)
- bytes_to_sec(3)
- mkieee(3)
- discipline(3)
- g2c_degrib2.c(3)
- g2c_file_io_byte(3)
- g2c_check_msg(3)
- num_fields(3)
- g2_addlocal.c(3)
- g2c_find_entry(3)
- misspack(3)
- num_sections(3)
- prod_def(3)
- param(3)
- g2c_jpcunpackf(3)
- next(3)
- abbrev(3)
- local(3)
- g2_free(3)
- g2c_find_desc_str(3)
- bytes_in_msg(3)
- minute(3)
- g2c_param_g2tog1(3)
- aecpack.c(3)
- g2c_get_pds_template_extension(3)
- seekgb(3)
- pngunpack_int(3)
- getpoly.c(3)
- dec_jpeg2000(3)
- pack_gp.c(3)
- ipdtlen(3)
- ipdtmpl(3)
- num_coord(3)
- reduce.c(3)
- map(3)
- free_metadata(3)
- pngpack.c(3)
- g2c_enc_png(3)
- master_version(3)
- desc(3)
- g2c_param_abbrev(3)
- g2disc(3)
- title(3)
- g2cparams.c(3)
- g2_addgrid.c(3)
- enc_aec(3)
- png_stream(3)
- version(3)
- g2c_get_pds_template(3)
- g2c_rw_section5_metadata(3)
- g2c_get_prod_sections(3)
- extgridtemplate(3)
- specunpack.c(3)
- decenc_aec.c(3)
- len(3)
- sig_ref_time(3)
- getpoly(3)
- g2c_pngpackd(3)
- g2c_index.c(3)
- g2int(3)
- aecpack(3)
- g2c_unpack7(3)
- simpack.c(3)
- numoct_opt(3)
- extlen(3)
- getpdsindex(3)
- main(3)
- getpdstemplate(3)
- grid_def(3)
- reduce(3)
- read_msg_metadata(3)
- g2c_file_io_longlong(3)
- g2cdegrib2.c(3)
- g2c_rw_section6_metadata(3)
- expanded(3)
apt-get install libg2c-dev
Manual
| g2_create.c(3) | Library Functions Manual | g2_create.c(3) |
NAME
g2_create.c - Initialize a new GRIB2 message and pack GRIB2 sections 0 (Indicator Section) and 1 (Identification Section).
SYNOPSIS
#include 'grib2_int.h'
#include <stdio.h>
Macros
#define LENSEC0 16
Length of GRIB Section 0. #define MAPSEC1LEN 13
Length of Map Section 1.
Functions
g2int g2_create (unsigned char *cgrib, g2int
*listsec0, g2int *listsec1)
Initialize a new GRIB2 message and pack GRIB2 Section 0 (Indicator Section)
and Section 1 (Identification Section).
Detailed Description
Initialize a new GRIB2 message and pack GRIB2 sections 0 (Indicator Section) and 1 (Identification Section).
Author
Date
Definition in file g2_create.c.
Macro Definition Documentation
#define LENSEC0 16
Length of GRIB Section 0.
Definition at line 11 of file g2_create.c.
#define MAPSEC1LEN 13
Length of Map Section 1.
Definition at line 10 of file g2_create.c.
Function Documentation
g2int g2_create (unsigned char * cgrib, g2int * listsec0, g2int * listsec1)
Initialize a new GRIB2 message and pack GRIB2 Section 0 (Indicator Section) and Section 1 (Identification Section). This routine is used with routines g2_addlocal(), g2_addgrid(), g2_addfield(), and g2_gribend() to create a complete GRIB2 message. g2_create() must be called first to initialize a new GRIB2 message. A call to g2_gribend() is required to complete GRIB2 message after all fields have been added.
Parameters
listsec0 Contains information needed for GRIB Indicator Section 0. Must be dimensioned >= 2.
- listsec0[0] Discipline-GRIB Master Table Number ([Code Table 0.0] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table0-0.shtml)).
- listsec0[1] GRIB Edition Number (currently 2).
listsec1 Contains information needed for GRIB Identification Section 1. Must be dimensioned >= 13.
- listsec1[0] Id of orginating centre ([Table 0] (https://www.nco.ncep.noaa.gov/pmb/docs/on388/table0.html)).
- listsec1[1] Id of orginating sub-centre ([Table C] (https://www.nco.ncep.noaa.gov/pmb/docs/on388/tablec.html)).
- listsec1[2] GRIB Master Tables Version Number ([Table 1.0] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table1-0.shtml)).
- listsec1[3] GRIB Local Tables Version Number ([Table 1.1] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table1-1.shtml)).
- listsec1[4] Significance of Reference Time ([Table 1.2] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table1-2.shtml))
- listsec1[5] Reference Time - Year (4 digits)
- listsec1[6] Reference Time - Month
- listsec1[7] Reference Time - Day
- listsec1[8] Reference Time - Hour
- listsec1[9] Reference Time - Minute
- listsec1[10] Reference Time - Second
- listsec1[11] Production status of data ([Table 1.3] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table1-3.shtml)).
- listsec1[12] Type of processed data ([Table 1.4] (https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table1-4.shtml)).
Returns
- > 0 Current size of new GRIB2 message
- G2_CREATE_GRIB_VERSION Tried to use for version other than GRIB Edition 2
This routine is intended for use with routines g2_addlocal(), g2_addgrid(), g2_addfield(), and g2_gribend() to create a complete GRIB2 message.
Author
Date
Definition at line 68 of file g2_create.c.
References G2_CREATE_GRIB_VERSION, LENSEC0, MAPSEC1LEN, and sbit().
Author
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
| Version 2.1.0 | NCEPLIBS-g2c |