CN107124613A - Method for recoding second category of product data of Doppler weather radar - Google Patents

Method for recoding second category of product data of Doppler weather radar Download PDF

Info

Publication number
CN107124613A
CN107124613A CN201710500745.8A CN201710500745A CN107124613A CN 107124613 A CN107124613 A CN 107124613A CN 201710500745 A CN201710500745 A CN 201710500745A CN 107124613 A CN107124613 A CN 107124613A
Authority
CN
China
Prior art keywords
data
color
product
step
byte
Prior art date
Application number
CN201710500745.8A
Other languages
Chinese (zh)
Inventor
牛鸣
牛一鸣
郭铭博
许方璐
杨林菲
Original Assignee
洛阳市气象局
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 洛阳市气象局 filed Critical 洛阳市气象局
Priority to CN201710500745.8A priority Critical patent/CN107124613A/en
Publication of CN107124613A publication Critical patent/CN107124613A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component

Abstract

The invention relates to a method for recoding a second category of product data of Doppler weather radar. The method comprises the following steps of: after initializing a system, extracting product representation block data which describes a radar product image; then reading the product representation block data row by row and byte by byte; according to each read byte, calculating a color index value and length of each product image color block; in each data row, accumulating the length values of the color blocks which continuously appear and have the same color, and storing the accumulated length values and the color index values in pairs until an accumulated length value is greater than 255 or a color value is changed so as to complete recoding. By adopting the technical scheme of the invention, a storage volume of the second category of product data can be reduced to implement traffic saving so as to improve a downloading speed of the data and a loading speed of a client.

Description

对多普勒天气雷达第二类产品数据进行重编码处理的方法 A method for Doppler weather radar product data of the second type of re-encoding process

技术领域 FIELD

[0001] 本发明涉及气象数据编码处理领域,尤其涉及一种对多普勒天气雷达的第二类产品数据进行重编码处理的方法。 [0001] The present invention relates to the field of meteorological data coding process, more particularly to a data item of the second type of Doppler radar method for re-encoding process.

背景技术 Background technique

[0002] 根据美国国家气候数据中心1998年编制的下一代天气雷达第三级存档数据格式规定,新一代天气雷达(Cinrad)的文件格式分为三大类:第一类为基数据,以极坐标方式存储雷达体积扫描得到的数据,结构相对简单;第二类为雷达产品,是经过各种算法加工处理后生成的水文气象产品,产品种类较多,结构复杂,通常只能用在PC端使用Principal User Processor软件(简称PUP)显示;第三类为产品图像,是PUP生成的GIF等通用格式图片。 [0002] According to the format specified US National Climatic Data Center in 1998, the preparation of the next generation of weather radar data archiving third grade, next-generation weather radar (Cinrad) file format is divided into three categories: The first category is based data at very radar coordinates stored scanned data volume, relatively simple; second radar product, is generated after arithmetic processing hydrometeorological various products, many types of products, complex structure, usually only used on the PC side using Principal User Processor software (PUP) display; third category for the product images are generated PUP GIF format picture, etc. general.

[0003] 在基于第二类产品数据用于在iOS端做开发的时候发现,第二类产品数据的逐像素编码的方式虽然可以使所有产品文件体积大小一致,规律性较好,但是也导致了数据文件体积较大,在移动终端系统资源不足的情况下,严重影响数据文件的下载和载入速度,因此考虑可以通过对新一代多普勒天气雷达第二类产品数据重新编码的方式,用以减小第二类产品数据的体积,以实现节省流量,提高数据的下载速度和客户端的载入速度。 [0003] In the second time based on data used to make products developed found iOS end, a second coding method by the pixel data of products although the file size can be made the same size for all products, better regularity, but also results in the larger data files, in the absence of sufficient mobile terminal system resources, seriously affect the download speed and load data files, and therefore can be considered by way of a new generation Doppler weather radar data products second re-encoded, products for reducing the volume of the second data flow to achieve savings, and improve the speed and download speed of the client data.

发明内容 SUMMARY

[0004] 为解决上述技术问题,本发明提供了一种对新一代多普勒天气雷达第二类产品数据进行重编码处理的方法。 [0004] In order to solve the above technical problem, the present invention provides a method of generation Doppler weather radar product data of the second type of re-encoding process.

[0005] —种对多普勒天气雷达的第二类产品数据进行重编码处理的方法,其中:包括如下步骤: [0005] - a second kind of products to Doppler weather radar data re-encoding process, wherein: the steps comprising:

[0006] 1)、进行系统初始化;之后,进入步骤2); [0006] 1), system initialization; then proceeds to step 2);

[0007] 2)、读取所述的多普勒天气雷达的第二类产品数据,所述多普勒天气雷达的第二类产品的数据结构可分为产品信息块、产品描述块、产品表示块三部分,其中产品表示块的数据采用分行并逐像素的方式描述了雷达产品图像,产品表示块数据由多个数据行组成, 每个数据行包含规定数量的字节,每个字节的高4位表示产品图像色块的长度,色块高度恒为1,每个字节的低4位表示色块的颜色索引值;每个字节可以表示高度为1,长度为字节高4 位数值的矩形色块,一个数据行的所有字节表示的色块自左到右依次排列可构成一个矩形色块,所有数据行表示的矩形色块自上到下排列构成一张完整的雷达产品图;将读取的多普勒天气雷达的第二类产品数据存放入指定的系统数据存储区域;之后,进入步骤3); Data Structure [0007] 2), reading the Doppler weather radar product data of the second type, the second Doppler radar products can be divided into blocks of product information, product description blocks, product represents a block of three parts, where the product data representing the block-wise manner using a branch pixel and described radar image product, product data represented by a plurality of data block rows, each row including a predetermined number of bytes, each byte 4 bits of the image represented by the product of the length of the patch, a patch height is constant, the lower four bits of each byte indicates the index of the color patches; each byte can be represented as a height, a length of the high byte rectangle to four values, a color byte data of all rows from left to right may be sequentially arranged to form a rectangular patch, all of the data row represents a rectangular patch arranged from top to bottom constituting a complete FIG radar product; Doppler Weather radar the read second data storage system of products into the data storage area specified; then proceeds to step 3);

[0008] 3)、开始逐行读取步骤2)所述的放入指定的系统数据存储区域的产品表示块数据,是按照字节的顺序逐字节读取,将当前读取字节在行中的位置索引记作i,初始位置索弓Ii = O;之后,进入步骤4); [0008] 3), row starts reading step 2) placed in the designated area of ​​the product data storage system represented by the block data, according to the order of the bytes read by bytes, the bytes in the current read position in the line denoted by the index i, the initial position of the cable bow Ii = O; then proceeds to step 4);

[0009] 4)、读取当前行第i个字节Byte (i),计算色块长度和色块颜色值;其中,色块长度F ⑴和色块颜色值f⑴的计算公式如下: [0009] 4), reads the current byte Byte i-th row (i), and calculates the length color patch color value; wherein the length F ⑴ color patch color values ​​and formulas f⑴ follows:

[0010] F ⑴=(Byte (i) &240) > >4 [0010] F ⑴ = (Byte (i) & amp; 240)>> 4

[0011] f⑴=Byte⑴&15,其中,&是位运算符,按位与; [0011] f⑴ = Byte⑴ & amp; 15, wherein, & amp; is a bitwise, bitwise AND;

[0012] 若i = 〇,记同色起始索弓丨j = 〇,进入步骤5);若i辛0,进入步骤6);其中,同色起始索引j所表示的色块颜色值f (j)、f (j+1) . . .f⑴均相等,且j>〇时,f Chl)辛f⑴; [0012] If i = square, referred to the same color starting index = square bow Shu j proceeds to step 5); oct 0 if i proceeds to step 6); wherein the initial color with the index j indicated by the color patch value f ( .. j), f (j + 1) .f⑴ are equal, and that j> billion, f Chl) oct f⑴;

[0013] 5)、如果i + l<Lengthr™,则i自增1,返回步骤4);反之,如果i+lSLengthiw,则进入步骤9);其中,Lengthiw为当前数据行总字节数; [0013] 5), if i + l <Lengthr ™, then i is incremented by one, returning to step 4); the other hand, if i + lSLengthiw, the process proceeds to step 9); wherein, Lengthiw total number of bytes of data for the current row;

[0014] 6)、将当前色块颜色值f(i)与上一个色块颜色值f(il)进行比较,若相等,进入步骤7);若不相等,进入步骤8); [0014] 6), the current value of the color patch f (i) with one patch on the color value f (il) comparing, if equal, proceeds to step 7); if equal, proceeds to step 8);

[0015] 7)、计算自同色起始索引j到当前索引i表示的同色色块长度总和 [0015] 7), is calculated starting from the same color with the color index j to the sum of the length of the current color of the index i represents

Figure CN107124613AD00041

,与一个字节表示的最大数255进行比较,若同色色块长度总和 , With a maximum of 255 bytes are compared, if the sum of the length of the same color patch

Figure CN107124613AD00042

小于255,返回步骤5);若同色色块长度总和 Less than 255, returns to the step 5); if the sum of the length of the same color patch

Figure CN107124613AD00043

大于或者等于255,进入步骤8); Greater than or equal to 255, proceeds to step 8);

[0016] 8)、将同色色块总长度 [0016] 8), the total length of the same color patch

Figure CN107124613AD00044

和同色色块颜色值f(il)成对存入指定存储区,之后,记j = i,进入步骤5); And the same color patch color value f (il) pairs stored in the specified storage area, then, denoted j = i, go to step 5);

[0017] 9)、将同色色块总长度 [0017] 9), the total length of the same color patch

Figure CN107124613AD00045

和同色色块颜色值f(i)成对存入指定存储区,本行数据重编码完成;若产品表示块的所有数据行已读取完,则重编码处理完成;反之,设置i = 〇,返回步骤4),继续读取下一行数据。 And stores the same color patch color value f (i) storage area specified in pairs, the Bank re-encoded data; if the product rows represents all data blocks have been scanned and the completion of the re-encoding process; otherwise, set i = square returns to step 4), continues to read the next line of data.

[0018] 本发明所提供的一种对多普勒天气雷达第二类产品数据进行重编码处理的方法, 主要原理是采用1个字节的8个二进制位来表示色块长度,最大表示长度为255,如果产品图像中的一行色块连续255个像素都是黑色,原编码方案需要17 (255/15)个字节来表示,新编码方案只需要1个字节标识,即对同色色块进行合并存储,最终结果是将原始数据打乱重新组合,在数据一致性较好的情况下大大减小了文件体积,如此,可以减小第二类产品数据的体积,进一步实现节省流量,提高数据的下载速度和客户端的载入速度。 [0018] A present invention provides for a second Doppler radar products re-encoding method for data processing, the main principle is the use of an 8-byte binary bits to represent the length of the patch, represents the maximum length 255, if the product line of the patch image 255 consecutive pixels are black, the original coding scheme requires 17 (255/15) bytes to represent the new coding scheme requires only one byte identification, i.e. of the same color and color the combined storage block, the end result is the original data disrupted reassembled, preferably in the case where data consistency greatly reduces the file size, thus, can reduce the volume of the second data products, to achieve further savings flow, improve the speed of download speed and client data.

附图说明 BRIEF DESCRIPTION

[0019] 图1为本发明对多普勒天气雷达第二类产品数据进行重编码处理的方法的流程图。 Flowchart of a method [0019] FIG. 1 type second Doppler radar product data re-encoding process of the present invention.

具体实施方式 Detailed ways

[0020] 本发明提供了一种对多普勒天气雷达的第二类产品数据进行重编码处理的方法, 其中包括如下步骤: [0020] The present invention provides a method of second products to Doppler weather radar data re-encoding process which comprises the steps of:

[0021] 1)、进行系统初始化;之后,进入步骤2); [0021] 1), system initialization; then proceeds to step 2);

[0022] 2)、读取所述的多普勒天气雷达的第二类产品数据,该数据是根据美国国家气候数据中心编制的下一代天气雷达第三级存档数据格式编制的二进制文件,所述多普勒天气雷达的第二类产品的数据结构可分为产品信息块、产品描述块、产品表示块三部分,其中产品表示块的数据采用分行并逐像素的方式描述了雷达产品图像,占据了所述多普勒天气雷达的第二类产品数据体积的主要部分;产品表示块数据由多个数据行组成:每个数据行包含规定数量的字节,每个字节的高4位表示产品图像色块的长度,色块高度恒为1,每个字节的低4位表示色块的颜色索引值;每个字节可以表示高度为1,长度为字节高4位数值的矩形色块,一个数据行的所有字节表示的色块自左到右依次排列可构成一个长长的矩形色块, 所有数据行表示的矩形色块自上到下排列构成一张完 [0022] 2), reading the Doppler weather radar products of the second data, which is based on a binary file format prepared by the US National Climatic Data Center prepare the next generation of weather radar data archiving third level, the the second data structure of said products of Doppler weather radar product information can be divided into blocks, block the product description, product represents a block of three parts, where the product data representing the block-wise manner using a branch pixel and described radar image product, Doppler radar occupies the major portion of the second data volume of the products; product represented by a block data composed of a plurality of data lines: each data line including a predetermined number of bytes, each byte high 4 represents the length of the product image patch, a patch height is constant, the lower four bits of each byte indicates the index of the color patch; each byte may represent a height of 1, 4 high byte length value rectangular color patches of all bytes, represented by a data row from left to right in order of priority may constitute a long rectangular patches, rectangular patches represent all the data rows from top to bottom, arranged in an End 的雷达产品图;将其存放入指定的系统数据存储区域;之后,进入步骤3); FIG radar product; the system to store it into the data storage area specified; then proceeds to step 3);

[0023] 3)、开始逐行读取步骤2)所述的放入指定的系统数据存储区域的产品表示块数据,是按照字节的顺序逐字节读取,将当前读取字节在行中的位置索引记作i,初始位置索弓Ii = O;之后,进入步骤4); [0023] 3), row starts reading step 2) placed in the designated area of ​​the product data storage system represented by the block data, according to the order of the bytes read by bytes, the bytes in the current read position in the line denoted by the index i, the initial position of the cable bow Ii = O; then proceeds to step 4);

[0024] 4)、读取当前行第i个字节Byte (i),计算色块长度和色块颜色值;其中,色块长度F ⑴和色块颜色值f⑴的计算公式如下: [0024] 4), reads the current byte Byte i-th row (i), and calculates the length color patch color value; wherein the length F ⑴ color patch color values ​​and formulas f⑴ follows:

[0025] F ⑴=(Byte (i) &amp;240) > >4 [0025] F ⑴ = (Byte (i) & amp; 240)>> 4

[0026] f⑴=Byte⑴&amp;15,其中,&amp;是位运算符,按位与; [0026] f⑴ = Byte⑴ & amp; 15, wherein, & amp; is a bitwise, bitwise AND;

[0027](计算机语言中&amp;和》都是位运算符,》是带符号右移) [0027] (computer languages ​​& amp; and "bitwise operators are," is the right shift with sign)

[0028] 若i = 0,记同色起始索引j = 0,进入步骤5);若i辛0,进入步骤6);其中,同色起始索引j所表示的色块颜色值f (j)、f (j+1) .. .f⑴均相等,且j>〇时,f Chl)辛f⑴; [0028] If i = 0, referred to the same color starting index j = 0, go to step 5); oct 0 if i proceeds to step 6); wherein the same-color color color value f j starting index represented (j) , f (j + 1) .. .f⑴ are equal, and that j> billion, f Chl) oct f⑴;

[0029] 5)、如果i + l<Lengthr™,贝Iji自增1,返回步骤4);反之,如果i+Ι彡Lengthi·™,则进入步骤9);其中,Lengthiw为当前数据行总字节数; [0029] 5), if i + l <Lengthr ™, shellfish Iji is incremented by one, returning to step 4); the other hand, if i + Ι San Lengthi · ™, the process proceeds to step 9); wherein, Lengthiw current data row Total The number of bytes;

[0030] 6)、将当前色块颜色值f(i)与上一个色块颜色值f(il)进行比较,若相等,进入步骤7);若不相等,进入步骤8); [0030] 6), the current value of the color patch f (i) with one patch on the color value f (il) comparing, if equal, proceeds to step 7); if equal, proceeds to step 8);

[0031] 7)、计算自同色起始索引j到当前索引i表示的同色色块长度总和 [0031] 7), is calculated starting from the same color with the color index j to the sum of the length of the current color of the index i represents

Figure CN107124613AD00051

,与一个字节表示的最大数255进行比较,若同色色块长度总和 , With a maximum of 255 bytes are compared, if the sum of the length of the same color patch

Figure CN107124613AD00052

)小于255,返回步骤5);若同色色块长度总和 ) Is less than 255, returns to the step 5); if the sum of the length of the same color patch

Figure CN107124613AD00053

大于或者等于255,进入步骤8); Greater than or equal to 255, proceeds to step 8);

[0032] 8)、将同色色块总长度 [0032] 8), the total length of the same color patch

Figure CN107124613AD00054

和同色色块颜色值f(il)成对存入指定存储区,之后,记j = i,进入步骤5); And the same color patch color value f (il) pairs stored in the specified storage area, then, denoted j = i, go to step 5);

[0033] 9)、将同色色块总长度 [0033] 9), the total length of the same color patch

Figure CN107124613AD00055

和同色色块颜色值f(i)成对存入指定存储区,本行数据重编码完成;若产品表示块的所有数据行已读取完,则重编码处理完成;反之,设置i = 〇,返回步骤4),继续读取下一行数据。 And stores the same color patch color value f (i) storage area specified in pairs, the Bank re-encoded data; if the product rows represents all data blocks have been scanned and the completion of the re-encoding process; otherwise, set i = square returns to step 4), continues to read the next line of data.

[0034] 本发明所提供的一种对多普勒天气雷达第二类产品数据进行重编码处理的方法, 主要原理是采用1个字节的8个二进制位来表示色块长度,最大表示长度为255,如果产品图像中的一行色块连续255个像素都是黑色,原编码方案需要17 (255/15)个字节来表示,新编码方案只需要1个字节标识,即对同色色块进行合并存储,最终结果是将原始数据打乱重新组合,在数据一致性较好的情况下大大减小了文件体积,如此,可以减小第二类产品数据的体积,进一步实现节省流量,提高数据的下载速度和客户端的载入速度。 [0034] A present invention provides for a second Doppler radar products re-encoding method for data processing, the main principle is the use of an 8-byte binary bits to represent the length of the patch, represents the maximum length 255, if the product line of the patch image 255 consecutive pixels are black, the original coding scheme requires 17 (255/15) bytes to represent the new coding scheme requires only one byte identification, i.e. of the same color and color the combined storage block, the end result is the original data disrupted reassembled, preferably in the case where data consistency greatly reduces the file size, thus, can reduce the volume of the second data products, to achieve further savings flow, improve the speed of download speed and client data.

[0035]以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 [0035] The above are only specific embodiments of the present invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the technical scope of the present invention is disclosed, variations may readily occur or Alternatively, it shall fall within the protection scope of the present invention. 因此,本发明的保护范围应所述以权利要求的保护范围为准。 Accordingly, the scope of the present invention should be in the scope of the claims and their equivalents.

Claims (1)

  1. I. 一种对多普勒天气雷达的第二类产品数据进行重编码处理的方法,其特征在于:包括如下步骤: 1) 、进行系统初始化;之后,进入步骤2); 2) 、读取所述的多普勒天气雷达的第二类产品数据,所述多普勒天气雷达的第二类产品的数据结构可分为产品信息块、产品描述块、产品表示块三部分,其中产品表示块的数据采用分行并逐像素的方式描述了雷达产品图像,产品表示块数据由多个数据行组成,每个数据行包含规定数量的字节,每个字节的高4位表示产品图像色块的长度,色块高度恒为1, 每个字节的低4位表示色块的颜色索引值;每个字节可以表示高度为1,长度为字节高4位数值的矩形色块,一个数据行的所有字节表示的色块自左到右依次排列可构成一个矩形色块,所有数据行表示的矩形色块自上到下排列构成一张完整的雷达产品图;将读取的多普勒 I. Products one second Doppler radar data re-encoding method for the treatment, characterized by: comprising the following steps: 1), system initialization; then proceeds to step 2); 2), read the Doppler weather radar product data of the second type, the data structure of the second Doppler radar products can be divided into blocks of product information, product description block, a block of three parts represents the product, wherein the product represents block-wise manner using a branch pixel and described radar image product, product data represented by a plurality of data block rows, each row including a predetermined number of bytes, each byte represents 4 bits of color image product length, height constant color block is 1, the lower four bits of each byte indicates the index of the color patches; each byte can be represented as a height, a length of the high byte of the rectangle to the value 4, All bytes of a color data represented by rows from left to right may be sequentially arranged to form a rectangular patch, rectangular patch all the data row represents radar product from a configuration diagram in a complete arrangement; the read Doppler 气雷达的第二类产品数据存放入指定的系统数据存储区域;之后,进入步骤3); 3) 、开始逐行读取步骤2)所述的放入指定的系统数据存储区域的产品表示块数据,是按照字节的顺序逐字节读取,将当前读取字节在行中的位置索引记作i,初始位置索引i = O;之后,进入步骤4); 4) 、读取当前行第i个字节Byte (i),计算色块长度和色块颜色值;其中,色块长度F (i) 和色块颜色值f⑴的计算公式如下: F(i) = (Byte (i) &amp;240) >>4 f⑴=Byte⑴&amp;15,其中,&amp;是位运算符,按位与; 若i = 〇,记同色起始索弓lj = 〇,进入步骤5);若i辛0,进入步骤6);其中,同色起始索引j 所表示的色块颜色值f (j)、f (j+1) . . .f⑴均相等,且j>〇时,f (j-1)辛f⑴; 5) 、如果i+1 CLengthr™,贝Iji自增1,返回步骤4);反之,如果i + Ι彡Lengthr™,贝Ij进入步骤9);其中,Lengths为当前数据行总字节数; 6) 、将当前色 Gas products radar second data storage system into the data storage area specified; then proceeds to step 3); 3), row starts reading step 2) placed in the designated area of ​​the product data storage system represented by block data, in accordance with the order of the bytes read byte by byte, the current position of the read byte in the line referred to as the index i, the initial position of the index i = O; then proceeds to step 4); 4), reading the current the i-th row byte byte (i), and calculates the length color patch color value; formula wherein color length F (i) and values ​​of colors from f⑴ follows: F (i) = (byte (i ) & amp; 240) >> 4 f⑴ = Byte⑴ & amp; 15, wherein, & amp; is a bitwise, bitwise and; if i = square, referred = square of the same color starting index bow LJ, proceeds to step 5); if i oct 0, proceeds to step 6);. wherein, with the patch color value F (j) starting color represented by the index j, f (j + 1) .f⑴ are equal, and j> billion, f (j-1 ) oct f⑴; 5), if i + 1 CLengthr ™, shellfish Iji is incremented by one, returning to step 4); the other hand, if i + Ι San Lengthr ™, shellfish Ij proceeds to step 9); wherein, Lengths current data row total the number of bytes; 6), the current color 颜色值f (i)与上一个色块颜色值f (i-Ι)进行比较,若相等,进入步骤7);若不相等,进入步骤8); 7) 、计算自同色起始索引j到当前索引i表示的同色色块长度总和 Color value f (i) with one patch on the color value f (i-Ι) comparing, if equal, proceeds to step 7); if equal, proceeds to step 8); 7), calculated from the starting index j of the same color to color patches with the current index i represents the sum of the length of
    Figure CN107124613AC00021
    ,与一个字节表示的最大数255进行比较,若同色色块长度总和 , With a maximum of 255 bytes are compared, if the sum of the length of the same color patch
    Figure CN107124613AC00022
    I小于255,返回步骤5);若同色色块长度总和 I is less than 255, returns to the step 5); if the sum of the length of the same color patch
    Figure CN107124613AC00023
    大于或者等于255,进入步骤8); 8) 、将同色色块总长度 Greater than or equal to 255, proceeds to step 8); 8), the total length of the same color patch
    Figure CN107124613AC00024
    和同色色块颜色值f(il)成对存入指定存储区,之后,记j = i,进入步骤5); 9) 、将同色色块总长撞 And (IL) is stored in pairs with the color patch color value f designated storage area, then, denoted j = i, go to step 5); 9), the total length of the striker with the color patches
    Figure CN107124613AC00025
    1和同色色块颜色值f(i)成对存入指定存储区,本行数据重编码完成;若产品表示块的所有数据行已读取完,则重编码处理完成;反之,设置i = 〇,返回步骤4),继续读取下一行数据。 1 and the same color patch color value f (i) is stored in the specified storage area in pairs, the Bank re-encoded data; if the product rows represents all data blocks have been scanned and the completion of the re-encoding process; otherwise, set i = square, return to step 4), continues to read the next line of data.
CN201710500745.8A 2017-06-27 2017-06-27 Method for recoding second category of product data of Doppler weather radar CN107124613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710500745.8A CN107124613A (en) 2017-06-27 2017-06-27 Method for recoding second category of product data of Doppler weather radar

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710500745.8A CN107124613A (en) 2017-06-27 2017-06-27 Method for recoding second category of product data of Doppler weather radar

Publications (1)

Publication Number Publication Date
CN107124613A true CN107124613A (en) 2017-09-01

Family

ID=59720187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710500745.8A CN107124613A (en) 2017-06-27 2017-06-27 Method for recoding second category of product data of Doppler weather radar

Country Status (1)

Country Link
CN (1) CN107124613A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1669233A (en) * 2002-10-01 2005-09-14 阿沃森特公司 Video compression system
CN1694058A (en) * 2005-04-30 2005-11-09 广东威创日新电子有限公司 Remote display processing method based on server end/client end structure
US20060093236A1 (en) * 2004-11-02 2006-05-04 Broadcom Corporation Video preprocessing temporal and spatial filter
CN101217655A (en) * 2008-01-04 2008-07-09 广东威创视讯科技股份有限公司 Data compressing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1669233A (en) * 2002-10-01 2005-09-14 阿沃森特公司 Video compression system
US20060093236A1 (en) * 2004-11-02 2006-05-04 Broadcom Corporation Video preprocessing temporal and spatial filter
CN1694058A (en) * 2005-04-30 2005-11-09 广东威创日新电子有限公司 Remote display processing method based on server end/client end structure
CN101217655A (en) * 2008-01-04 2008-07-09 广东威创视讯科技股份有限公司 Data compressing method

Similar Documents

Publication Publication Date Title
US8878851B2 (en) Method and system for streaming documents, e-mail attachments and maps to wireless devices
CN102521849B (en) Region-based image manipulation
US6593933B1 (en) Block-based synthesis of texture in computer rendered images
CN100452094C (en) Cluster
US8213747B2 (en) Variable resolution images
US8249398B2 (en) Image retrieval system and method
JP2007164648A (en) Similar image search device, similar image search method, program and information recording medium
US20090317010A1 (en) Multiple Resolution Image Storage
CN1458628A (en) System and method for simplifying file and image compression using mask code
JP2003523587A (en) Visual attention system
CA2831967C (en) Image compression using sub-resolution images
JPH11338976A (en) Document image recognition device, method therefor, and recording medium
WO2014210514A1 (en) Image delivery architecture
JP2002007966A (en) Document image decoding method
CN100407781C (en) An image compression system and method for storage and retrieval
GB2481612A (en) Updating image regions in a shared image system
KR101305752B1 (en) Multimedia watermarking techniques with low distortion
JP4887359B2 (en) Drawing device and drawing method
US6088394A (en) Efficient interframe coding method and apparatus utilizing selective sub-frame differencing
CN102523367B (en) Based on real-time image compression and multi-color palette reduction method
US8170095B2 (en) Faster image processing
JP2006065855A (en) Efficient ranking of web pages via matrix index manipulation and improved caching
US20060062456A1 (en) Determining regions of interest in synthetic images
JP2006246435A (en) Image processing apparatus, control method thereof, and program
US7725813B2 (en) Method for requesting and viewing a preview of a table attachment on a mobile communication device

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination