コード例 #1
0
        public void TestCatalogV6Continued()
        {
            long[] ifltab = new long[250];
            DSS.ZOpen(ref ifltab, TestUtility.BasePath + "sample6_ras.dss");
            ZStructCatalogWrapper catStruct = DSS.zStructCatalogNew();
            int numberPaths = DSS.ZCatalog(ref ifltab, "/*/*/*Flow*/*/*/*/", ref catStruct, 1);

            Assert.IsTrue(numberPaths == 172);
            Assert.IsTrue(catStruct.PathNameList[0] == "/AMERICAN/FOLSOM/FLOW-RES IN/01JAN2006/1DAY/OBS/");
            Assert.IsTrue(catStruct.PathNameList[1] == "/AMERICAN/FOLSOM/FLOW-RES OUT/01JAN2006/1DAY/OBS/");
            Assert.IsTrue(catStruct.PathNameList[2] == "/EF RUSSIAN/COYOTE/FLOW-RES IN/01MAR2006/1HOUR/SMOOTH/");
            Assert.IsTrue(catStruct.PathNameList[3] == "/EF RUSSIAN/COYOTE/FLOW-RES OUT/01MAR2006/1HOUR//");
            Assert.IsTrue(catStruct.PathNameList[4] == "/FISHKILL CREEK/BEACON NY/FREQ-FLOW///USGS/");
            DSS.ZClose(ifltab);
        }
コード例 #2
0
        public void TestCatalogV6()
        {
            long[] ifltab = new long[250];
            DSS.ZOpen(ref ifltab, TestUtility.BasePath + "sample6_ras.dss");
            ZStructCatalogWrapper catStruct = DSS.zStructCatalogNew();
            int numberPaths = DSS.ZCatalog(ref ifltab, null, ref catStruct, 1);

            Assert.IsTrue(numberPaths == 627);
            int num = 1877;

            for (int i = 0; i < 5; i++)
            {
                Assert.IsTrue(catStruct.PathNameList[i] == "//SACRAMENTO/PRECIP-INC/01JAN" + (num + i).ToString() + "/1DAY/OBS/");
            }
            DSS.ZClose(ifltab);
        }
コード例 #3
0
        public void TestCatalogPairedDataPathNamesV7()
        {
            long[] ifltab = new long[250];
            DSS.ZOpen(ref ifltab, TestUtility.BasePath + "sample7.dss");
            ZStructCatalogWrapper catStruct = DSS.zStructCatalogNew();

            catStruct.TypeWantedStart = 200; //paired data regular
            catStruct.TypeWantedEnd   = 205; //paired data double
            int numberPaths = DSS.ZCatalog(ref ifltab, null, ref catStruct, 1);

            Assert.IsTrue(numberPaths == 595);
            int num = 1877;

            for (int i = 0; i < 5; i++)
            {
                Assert.IsTrue(catStruct.PathNameList[i] == "//SACRAMENTO/PRECIP-INC/01Jan" + (num + i).ToString() + "/1Day/OBS/");
            }
            DSS.ZClose(ifltab);
        }