⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ms_lookup.3

📁 C编写的格式转换程序
💻 3
字号:
.TH MS_LOOKUP 3 2006/12/12 "Libmseed API".SH DESCRIPTIONLook up libmseed and Mini-SEED related information.SH SYNOPSIS.nf.B #include <libmseed.h>.BI "char    *\fBms_errorstr\fP ( int " errorcode " );".BI "uint8_t  \fBms_samplesize\fP ( const char " sampletype " );".BI "char    *\fBms_encodingstr\fP ( const char " encoding " );".BI "char    *\fBms_blktdesc\fP ( uint16_t " blkttype " );".BI "uint16_t \fBms_blktlen\fP ( uint16_t " blkttype ", const char *" blktdata ",.BI "                      flag " swapflag " );.fi.SH DESCRIPTION\fBms_errorstr\fP returns a pointer to a string describing thespecified libmseed error code.  The error codes are defined inlibmseed.h and returned by various functions.\fBms_samplesize\fP returns the sample size based on the specified\fIsampletype\fP.  In general libmseed uses the following charactersample types:.sp.nf"a" = 1 byte (ASCII)"i" = 4 bytes (integer)"f" = 4 bytes (float)"d" = 8 bytes (double).fi\fBms_encoding\fP returns a pointer to a string describing thespecified data \fIencoding\fP format.  If the encoding format isunknown an appropriate string is return stating just that.\fBms_blktdesc\fP returns a pointer to a string describing thespecified blockette type (\fIblkttype\fP).  If the blockette type isunknown NULL is returned.\fBms_blktlen\fP returns the total length of the specified blockettetype (\fIblkttype\fP) in bytes.  A pointer to the blockette itself(\fIblkt\fP) should also be provided along with a \fIswapflag\fP thatshould be set to 1 when the blockette is known to have a differentbyte order than the host computer.  The length returned includes boththe blockette "header" (type and next fields) and "body".Technically a pointer to blockette and the swapflag only need to besupplied when the blockette type is a variable length blockette andthe length is contained within the blockette itself (e.g. blockettetype 2000).  For blockettes of known fixed length (most of them) the\fIblkt\fP pointer and \fIswapflag\fP are not used.In the case of blockette type 405 that is variable length and not selfdescribing 0 will be returned.  In the case of blockette type 2000that is variable length and self describing the length will be readfrom a known offset into the blockette data..SH RETURN VALUES\fBms_errorstr\fP returns a pointer to a static string.\fBms_samplesize\fP returns the sample size in bytes or 0 for unknownsample type.\fBms_encoding\fP returns a pointer to a static string.\fBms_blktdesc\fP returns a pointer to a static string or NULL if theblockette type is unknown.\fBms_blktlen\fP returns the total length of the specified blockettetype or 0 for unknown type..SH AUTHOR.nfChad TrabantIRIS Data Management Center.fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -