7

I have some meteorological data wich are exported to netCDF format and I want to display them in Google Maps.

I tried the Panoply software, mainly following these http://marinedataliteracy.org/ops/pano_gridsvecs.htm instructions and succesfully exported the data into .kml files.

The kml file displays fine in Google Earth, but when loading it in Google Maps nothing is being displayed.

The JavaScript code that is loading the kml is definitely correct, because other types of kml are displayed correctly. Just in case, this is the code:

var kmzLayer = new google.maps.KmlLayer("LINK_TO_KML");
kmzLayer.setMap(map);

There is also a project called netcdf2gmaps here http://code.google.com/p/netcdf2gmaps/ but it seems abandoned and there is no feedback for it.

So is there any way to display the netCDF data to Google Maps?

4

1 回答 1

4

我不知道你是否解决了你的问题,但为了参考问题标题,我想添加更多信息。

Panoply(或 IDV)以它们当前显示和 lon/lat 边界的简单 PNG 快照的方式导出到 KMZ(压缩 KML),如下所示:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
    <GroundOverlay>
        <name>Maximum_temperature_Maximum_unwe in GEFS_Global_1p0deg_Ensemble_deri</name>
        <Icon>
            <href>Maximum_temperature_Maximum_unwe in GEFS_Global_1p0deg_Ensemble_deri.png</href>
        </Icon>
        <LatLonBox>
            <west>-29.1622</west>
            <north>55.0</north>
            <east>49.1622</east>
            <south>25.0</south>
        </LatLonBox>
    </GroundOverlay>
</kml>

这似乎是谷歌地球界面的唯一方式——位图图像。令人遗憾的是,Google 地球不是为可视化或数值模型数据而设计的,因为它不能代表各种其他特征。

如果在 Google Earth/Maps 中覆盖位图是一项任务,那么您已经注意到这只是双击生成的 KMZ 文件的问题:

在此处输入图像描述

或者对于谷歌地图,上传文件并将路径粘贴到谷歌地图搜索栏中:

在此处输入图像描述

于 2012-07-25T17:54:26.957 回答