MS_LOOKUP - Online Linux Manual PageSection : 3
Updated : 2006/12/12
Source : Libmseed API
NAMEms_lookup - Look up libmseed and Mini-SEED related information
SYNOPSIS#include <libmseed.h>
char *ms_errorstr ( int errorcode );
uint8_t ms_samplesize ( const char sampletype );
char *ms_encodingstr ( const char encoding );
char *ms_blktdesc ( uint16_t blkttype );
uint16_t ms_blktlen ( uint16_t blkttype, const char *blktdata",
flag swapflag");
DESCRIPTIONms_errorstr returns a pointer to a string describing the specified libmseed error code. The error codes are defined in libmseed.h and returned by various functions. ms_samplesize returns the sample size based on the specified sampletype. In general libmseed uses the following character sample types: "a" = 1 byte (ASCII)
"i" = 4 bytes (integer)
"f" = 4 bytes (float)
"d" = 8 bytes (double)ms_encoding returns a pointer to a string describing the specified data encoding format. If the encoding format is unknown an appropriate string is return stating just that. ms_blktdesc returns a pointer to a string describing the specified blockette type (blkttype). If the blockette type is unknown NULL is returned. ms_blktlen returns the total length of the specified blockette type (blkttype) in bytes. A pointer to the blockette itself (blkt) should also be provided along with a swapflag that should be set to 1 when the blockette is known to have a different byte order than the host computer. The length returned includes both the blockette "header" (type and next fields) and "body". Technically a pointer to blockette and the swapflag only need to be supplied when the blockette type is a variable length blockette and the length is contained within the blockette itself (e.g. blockette type 2000). For blockettes of known fixed length (most of them) the blkt pointer and swapflag are not used. In the case of blockette type 405 that is variable length and not self describing 0 will be returned. In the case of blockette type 2000 that is variable length and self describing the length will be read from a known offset into the blockette data.
RETURN VALUESms_errorstr returns a pointer to a static string. ms_samplesize returns the sample size in bytes or 0 for unknown sample type. ms_encoding returns a pointer to a static string. ms_blktdesc returns a pointer to a static string or NULL if the blockette type is unknown. ms_blktlen returns the total length of the specified blockette type or 0 for unknown type.
AUTHORChad Trabant
IRIS Data Management Center 0
Johanes Gumabo
Data Size : 8,168 byte
man-ms_lookup.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 182,974
Visitor ID : :
Visitor IP : 18.118.208.127 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.