获取当前节点的父节点名称的正确语法是什么?我知道这是关于AxisName的父级,但是什么是正确的语法?例如以下xml
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2" location="file:/dev/null" iosp="lasp.tss.iosp.ValueGeneratorIOSP" start="0" increment="1">
<attribute name="title" value="Vector time series"/>
<dimension name="time" length="100"/>
<variable name="time" shape="time" type="double">
<attribute name="units" type="String" value="seconds since 1970-01-01T00:00"/>
</variable>
<group name="Vector" tsdsType="Structure" shape="time">
<variable name="x" shape="time" type="double"/>
<variable name="y" shape="time" type="double"/>
<variable name="z" shape="time" type="double"/>
</group>
</netcdf>
Run Code Online (Sandbox Code Playgroud)
对于元素变量,我应该得到netcdf或group.提前致谢.
我有40个NetCDF文件,它们都是海洋模型的一个模拟.每个变量的时间序列数据被拆分为多个文件,因此目录列表如下所示:
$ ls ./output/*.nc
1_hvel.nc 3_hvel.nc 5_hvel.nc 7_hvel.nc
1_MeanPeriod.nc 3_MeanPeriod.nc 5_MeanPeriod.nc 7_MeanPeriod.nc
1_PeakPeriod.nc 3_PeakPeriod.nc 5_PeakPeriod.nc 7_PeakPeriod.nc
1_pwd.nc 3_pwd.nc 5_pwd.nc 7_pwd.nc
1_SigWaveHeight.nc 3_SigWaveHeight.nc 5_SigWaveHeight.nc 7_SigWaveHeight.nc
1_WaterLevel.nc 3_WaterLevel.nc 5_WaterLevel.nc 7_WaterLevel.nc
2_hvel.nc 4_hvel.nc 6_hvel.nc 8_hvel.nc
2_MeanPeriod.nc 4_MeanPeriod.nc 6_MeanPeriod.nc 8_MeanPeriod.nc
2_PeakPeriod.nc 4_PeakPeriod.nc 6_PeakPeriod.nc 8_PeakPeriod.nc
2_pwd.nc 4_pwd.nc 6_pwd.nc 8_pwd.nc
2_SigWaveHeight.nc 4_SigWaveHeight.nc 6_SigWaveHeight.nc 8_SigWaveHeight.nc
2_WaterLevel.nc 4_WaterLevel.nc 6_WaterLevel.nc 8_WaterLevel.nc
Run Code Online (Sandbox Code Playgroud)
是否可以沿时间维度聚合每个变量,然后将所有这些聚合连接在一起?