|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.xiaowuler.radarresolver.weather.resolver; |
|
|
|
|
|
|
|
import java.io.FileInputStream; |
|
|
|
import java.io.FileNotFoundException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
@ -10,6 +11,7 @@ import java.util.stream.Collectors; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import com.xiaowuler.radarresolver.customer.CustomerDataInputStream; |
|
|
|
import com.xiaowuler.radarresolver.weather.domain.*; |
|
|
|
import org.python.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream; |
|
|
|
|
|
|
|
/** |
|
|
|
* @describe: radar reader |
|
|
@ -54,6 +56,17 @@ public class RadarReader { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void readBiz2(String filepath){ |
|
|
|
try{ |
|
|
|
BZip2CompressorInputStream bis = new BZip2CompressorInputStream(new FileInputStream(filepath)); |
|
|
|
System.out.println(bis.readAllBytes()); |
|
|
|
} catch (FileNotFoundException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} catch (IOException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 将极坐标转换为给定雷达站位置的地理坐标 |
|
|
|
* 备注: 翻译的python代码 |
|
|
|