- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有 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
最佳答案
是的,您可以使用 NcML 嵌套聚合,因此您可以使用类型 union
围绕几种类型聚合join_existing
time
上的聚合.
如果join_existing
time
上的聚合原来有不同的时基,你可以重命名time
变量和维度为 time2
在其中一个聚合上,然后更改这些变量的属性以使用新命名的坐标。
一个例子应该更清楚地说明这一点:
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
<attribute name="title" type="string" value="SELFE - Ike - Ultralite - Variable Drag - Waves - 3D"/>
<attribute name="institution" type="string"
value="Virginia Institute of Marine Science -- http://web.vims.edu/physical/"/>
<attribute name="source" type="string"
value="SELFE run (version v.vvv compiled yyyy-mm-dd) for Hurricane Ike on the Ultralight mesh using variable drag, wind waves from WWM and 3D depth-averaged physics"/>
<attribute name="history" type="string" value="ncml aggregation of .../whole_domain/ datafiles"/>
<attribute name="references" type="string"
value="testbed.sura.org:/data/ftp/upload/Inundation/vims/selfe_tropical/runs/Ike/3D_varied_roughness_windstress_with_wave/Inundation_Model_Metadata_Template_v3_for_3D_windstress_sv_with_wave_Rita.docx"/>
<variable name="selfe_mesh" shape="" type="int">
<attribute name="cf_role" value="mesh_topology"/>
<attribute name="topology_dimension" type="int" value="2"/>
<attribute name="node_coordinates" value="x y"/>
<attribute name="face_node_connectivity" value="ele"/>
</variable>
<variable name="time">
<attribute name="units" value="seconds since 2005-09-18 00:00:00"/>
<attribute name="standard_name" value="time"/>
</variable>
<variable name="ele" shape="nface nele" type="int">
<attribute name="cf_role" value="face_node_connnectivity"/>
<attribute name="start_index" type="short" value="1"/>
</variable>
<variable name="x" shape="node" type="float">
<attribute name="units" value="degrees_east"/>
</variable>
<variable name="y" shape="node" type="float">
<attribute name="units" value="degrees_north"/>
</variable>
<variable name="depth" shape="node" type="float">
<attribute name="mesh" value="selfe_mesh"/>
<attribute name="location" value="node"/>
<attribute name="coordinates" value="y x"/>
<attribute name="units" value="m"/>
<attribute name="standard_name" value="depth_below_geoid"/>
<remove type="attribute" name="positive"/>
</variable>
<variable name="sigma" shape="sigma" type="float">
<attribute name="long_name" value="S coordinates at whole levels"/>
<attribute name="units" value="non-dimensional"/>
<attribute name="positive" value="up"/>
</variable>
<variable name="Cs" shape="sigma" type="float">
<attribute name="long_name" value="Function C(s) at whole levels"/>
<attribute name="units" value="non-dimensional"/>
<attribute name="positive" value="up"/>
</variable>
<variable name="elev" shape="time node" type="float">
<attribute name="long_name" value="free_surface_elevation"/>
<attribute name="standard_name" value="sea_surface_height_above_geoid"/>
<attribute name="missing_value" type="float" value="-999.00"/>
<attribute name="mesh" value="selfe_mesh"/>
<attribute name="location" value="node"/>
<attribute name="coordinates" value="y x"/>
<attribute name="units" value="m"/>
</variable>
<variable name="wwm_1" shape="time node" type="float">
<attribute name="long_name" value="significant_wave_height"/>
<attribute name="standard_name" value="sea_surface_wave_significant_height"/>
<attribute name="missing_value" type="float" value="-999.00"/>
<attribute name="mesh" value="selfe_mesh"/>
<attribute name="location" value="node"/>
<attribute name="coordinates" value="y x"/>
<attribute name="units" value="m"/>
</variable>
<variable name="wwm_3" shape="time node" type="float">
<attribute name="long_name" value="mean_period"/>
<attribute name="standard_name" value="sea_surface_wave_period_at_variance_spectral_density_mean"/>
<attribute name="missing_value" type="float" value="-999.00"/>
<attribute name="mesh" value="selfe_mesh"/>
<attribute name="location" value="node"/>
<attribute name="coordinates" value="y x"/>
<attribute name="units" value="s"/>
</variable>
<variable name="wwm_9" shape="time node" type="float">
<attribute name="long_name" value="peak_period"/>
<attribute name="standard_name"
value="sea_surface_wave_period_at_variance_spectral_density_maximum"/>
<attribute name="missing_value" type="float" value="-999.00"/>
<attribute name="mesh" value="selfe_mesh"/>
<attribute name="location" value="node"/>
<attribute name="coordinates" value="y x"/>
<attribute name="units" value="s"/>
</variable>
<variable name="wwm_15" shape="time node" type="float">
<attribute name="long_name" value="peak_direction"/>
<attribute name="standard_name"
value="sea_surface_wave_from_direction_at_variance_spectral_density_maximum"/>
<attribute name="missing_value" type="float" value="-999.00"/>
<attribute name="mesh" value="selfe_mesh"/>
<attribute name="location" value="node"/>
<attribute name="coordinates" value="y x"/>
<attribute name="units" value="degrees_east"/>
</variable>
<variable name="u" shape="time2 sigma node" type="float">
<attribute name="standard_name" value="barotropic_eastward_sea_water_velocity"/>
<attribute name="mesh" value="selfe_mesh"/>
<attribute name="location" value="node"/>
<attribute name="coordinates" value="y x"/>
<attribute name="units" value="m/s"/>
</variable>
<variable name="v" shape="time2 sigma node" type="float">
<attribute name="standard_name" value="barotropic_northward_sea_water_velocity"/>
<attribute name="mesh" value="selfe_mesh"/>
<attribute name="location" value="node"/>
<attribute name="coordinates" value="y x"/>
<attribute name="units" value="m/s"/>
</variable>
<aggregation type="union">
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
<aggregation dimName="time" type="joinExisting">
<scan
location="/data/ftp/upload/Inundation/vims/selfe_tropical/runs/Rita/3D_varied_roughness_windstress_with_wave/output/"
regExp=".*[0-9]{1}_WaterLevel\.nc$"/>
</aggregation>
</netcdf>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
<aggregation dimName="time" type="joinExisting">
<scan
location="/data/ftp/upload/Inundation/vims/selfe_tropical/runs/Rita/3D_varied_roughness_windstress_with_wave/output/"
regExp=".*[0-9]{1}_SigWaveHeight\.nc$"/>
</aggregation>
</netcdf>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
<aggregation dimName="time" type="joinExisting">
<scan
location="/data/ftp/upload/Inundation/vims/selfe_tropical/runs/Rita/3D_varied_roughness_windstress_with_wave/output/"
regExp=".*[0-9]{1}_MeanPeriod\.nc$"/>
</aggregation>
</netcdf>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
<aggregation dimName="time" type="joinExisting">
<scan
location="/data/ftp/upload/Inundation/vims/selfe_tropical/runs/Rita/3D_varied_roughness_windstress_with_wave/output/"
regExp=".*[0-9]{1}_PeakPeriod\.nc$"/>
</aggregation>
</netcdf>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
<aggregation dimName="time" type="joinExisting">
<scan
location="/data/ftp/upload/Inundation/vims/selfe_tropical/runs/Rita/3D_varied_roughness_windstress_with_wave/output/"
regExp=".*[0-9]{1}_pwd\.nc$"/>
</aggregation>
</netcdf>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2">
<dimension name="time2" orgName="time"/>
<variable name="time2" orgName="time"/>
<aggregation dimName="time" type="joinExisting">
<scan
location="/data/ftp/upload/Inundation/vims/selfe_tropical/runs/Rita/3D_varied_roughness_windstress_with_wave/output/"
regExp=".*[0-9]{1}_hvel\.nc$"/>
</aggregation>
</netcdf>
</aggregation>
</netcdf>
关于netcdf - 可以使用 NcML 聚合多个 NetCDF 文件集合吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19769982/
编辑:我似乎问错了这个问题。 我正在尝试寻找一种方法来查询一个集合是否在另一个集合中可用。例如: SELECT * FROM something WHERE (1, 3) IN (1, 2, 3, 4
这两种方法似乎 produce the same results ,但我一直很难真正说服人们第二种方法有效,因为它显然并不为人所知。 // Create some data var foo = { '
我一直在学习Kotlin,并且遇到过Collections API。在Kotlin之前,我一直在学习Java,并且我知道Java中有很多不同类型的Collections API。例如,我们使用List
为什么我会得到不同的行为: Collection col2 = new ArrayList(col); 集合 col2 = new ArrayList(); col2.addAll(col) 我正在与
所以我有一个代表专辑信息的 JSON 对象。给定“function updateRecords(id, prop, value)”我希望能够更新每个条目。正确的完成代码如下。 我得到了指示,粗体部分,
我想存储一个对象集合,这些对象根据它们所代表的值进行键控。这些键可以重复。例如: [4] => Bob [5] => Mary [5] => Sue [9] => Steve [10] =>
在检查 ArrayList API 时,我注意到一些看起来很奇怪的东西。 确实,这里是 ArrayList 构造函数实现,其中 Collection 作为参数传递: public ArrayList(
我正在为 API 编写一个 swagger 定义文件。 API 是用于 GET 请求的 /path/to/my/api: get: summary: My Custom API d
我知道scala.collection包中有两个非常有用的对象,可以帮助我们实现这个目标: JavaConverters(如果我想明确说明并准确说明我要转换的内容) JavaConversions(如
我已经阅读了无数其他帖子,但似乎无法弄清楚发生了什么,所以是时候寻求帮助了。 我正在尝试将包含集合的域实体映射到也包含集合的 dtos。 这是一个原始示例; (我提前为代码墙道歉,我尽量保持简短):
我正在创建一个具有 ArrayList 的类,因此当我调用构造函数时,它会初始化该数组: public class ElementsList { private ArrayList list;
我正在阅读事件指南和指南的开头,它说: You can also add an event listener to any element in the this.$ collection using
我是 Python 新手,想知道如何使用键在字典中存储不同数据类型的列表 例如 - {[Key1,int1,int1,String1] , [Key2,int2,int2,String2], [Key
int[] mylist = { 2, 4, 5 }; IEnumerable list1 = mylist; list1.ToList().Add(1); // why 1 does not get
我在 UI 表单中的每一行之后将以下内容添加到 HashMap 集合中 声明 Map> map = new HashMap>(); List valSetOne = new ArrayList();
我正在开发我的第一个 Java 项目,我有一个问题。问题应该很简单(虽然代码不是那么短,但没有理由被吓倒:))。我创建了一个基本的角色扮演游戏,并且有一个定义每个角色的抽象类“Character”。在
我正在开发一款应用程序,可以为用户收集推文、Facebook 状态和 Facebook 照片。目前,用户确切地设定了他们希望这种收获发生的时间和时间,并且蜘蛛会在此期间拉取数据。 when 和 to
有谁知道在 C# 中是否有与 Java 的 Set 集合等效的好方法?我知道您可以通过填充但忽略值来使用 Dictionary 或 HashTable 在某种程度上模仿集合,但这不是一种非常优雅的方式
EXISTS 该函数返回 集合中第一个元素的索引,如果集合为空,返回NULLNULLNULL Collecti
RDF集合是通过属性 rdf:parseType="Collection" 来描述仅包含指定成员的组 rdf:parseType="Collection" 属
我是一名优秀的程序员,十分优秀!