张洋洋
2025-02-10 36abe49367dc914eb1f5ccf9a9f253080b69d04d
[add]cityjson转sem
已修改2个文件
6 ■■■■ 文件已修改
src/main/java/com/se/simu/utils/SemUtils.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/se/simu/utils/ZarrUtils.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/se/simu/utils/SemUtils.java
@@ -14,7 +14,7 @@
    }
    public static void semToCityJson() throws Exception {
        //sem转cityjson
        SEM sem2 = new SEM("D:\\城市内涝\\sem\\tongzhou\\tongzhou\\landuse.sem");
        sem2.writeToCityJSON("D:\\城市内涝\\sem\\tongzhou\\tongzhou\\landuse\\landuse.json");
        SEM sem2 = new SEM("D:\\uwsolver\\tongzhou\\raingage.sem");
        sem2.writeToCityJSON("D:\\uwsolver\\tongzhou\\raingage.json");
    }
}
src/main/java/com/se/simu/utils/ZarrUtils.java
@@ -66,7 +66,7 @@
            int rowIndex = 0;
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm");
            for (StationRainVo record : stationRainVos) {
                long value = sdf.parse(record.getDatetime()).getTime();
                long value = sdf.parse(record.getDatetime()).getTime()/1000;
                zarrArray.write(value);
                rowIndex++;
            }