public void AddingFilteredFunctionShouldResetParent() { var grid = new RegularGridCoverage(2, 2, 1, 1, typeof(float)); var filteredGrid = grid.Filter(); string path = rasterDataPath + "AddingFilteredFunctionShouldResetParent.bil"; var store = new GdalFunctionStore(); store.CreateNew(path); store.Functions.Add(filteredGrid); }
public void FilterIncludesAllComponents() { IRegularGridCoverage gridWithTime = new RegularGridCoverage(2, 3, 100, 50) { Name = "pressure" }; var time = new Variable <DateTime>("time"); DateTime startTime = DateTime.Now; time.Values.Add(startTime); gridWithTime.Time = time; gridWithTime.Components.Add(new Variable <string>("second")); var filteredGrid = gridWithTime.Filter(new VariableValueFilter <DateTime>(time, startTime)); Assert.AreEqual(2, filteredGrid.Components.Count); }
public void FilterIncludesAllComponents() { IRegularGridCoverage gridWithTime = new RegularGridCoverage(2, 3, 100, 50) { Name = "pressure" }; var time = new Variable<DateTime>("time"); DateTime startTime = DateTime.Now; time.Values.Add(startTime); gridWithTime.Time = time; gridWithTime.Components.Add(new Variable<string>("second")); var filteredGrid = gridWithTime.Filter(new VariableValueFilter<DateTime>(time, startTime)); Assert.AreEqual(2, filteredGrid.Components.Count); }
public void AddingFilteredFunctionShouldResetParent() { var grid = new RegularGridCoverage(2, 2, 1, 1, typeof(float)); var filteredGrid = grid.Filter(); string path = rasterDataPath + "AddingFilteredFunctionShouldResetParent.bil"; var store = new GdalFunctionStore(); store.CreateNew(path); store.Functions.Add(filteredGrid); }