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

📄 readme.byteorder

📁 C编写的格式转换程序
💻 BYTEORDER
字号:
                 -- Byte order handling in libmseed --The SEED 2.4 standard allows data only SEED (Mini-SEED) to be eitherin big (most significant byte first) or little (least significant bytefirst) endian byte order.  One exception is that Steim-1 and Steim-2data compression are only defined as big-endian, that said libmseedsupports little-endian Steim compression schemes anyway.  Whilelibmseed supports all four combinations of big and little endian headerand data the surest way to avoid compatibility problems is to always create big endian Mini-SEED records (header and data).Reading MiniSEED - how libmseed determines the byte order of a record:The byte order of a record header including blockettes is determinedby checking if the record start year is a sane value (e.g. between 1920and 2020).  The byte order of encoded data samples is determined by thebyte order flag in the Blockette 1000, if a Blockette 1000 is notpresent the byte order is assumed to be the same as the header.  Toforce the byte order determination of either the header or data sectionof a record the following environment variables can be set:UNPACK_HEADER_BYTEORDERUNPACK_DATA_BYTEORDERThese variables should be set to either 0 (little endian) or 1 (bigendian).  A programmatic equivalent of setting these environmentvariables is provided via the following macros:MS_UNPACKHEADERBYTEORDER(X)MS_UNPACKDATABYTEORDER(X)Writing MiniSEED - in what byte order libmseed creates records:Normally the byte order of MiniSEED created by libmseed is controlledvia a flag in the API.  This byte order flag determines the orderingfor both the header and data sections of a record.  To force the byteorder of either the header or data section of a record the followingenvironment variables can be set:PACK_HEADER_BYTEORDERPACK_DATA_BYTEORDERThese variables should be set to either 0 (little endian) or 1 (bigendian).  A programmatic equivalent of setting these environmentvariables is provided via the following macros:.nfMS_PACKHEADERBYTEORDER(X)MS_PACKDATABYTEORDER(X).fiNote that some interpretations of the SEED 2.4 format imply thatso-called little endian MiniSEED means that the record header islittle endian but that the data section is big endian (as the onlydefined data encodings must be based on the SEED DDL which, in turn,must be defined in terms of big endian).  Libmseed will not createMiniSEED of this flavor by default but can be configured to do so bysetting the environment variables described above appropriately.

⌨️ 快捷键说明

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