Exemple #1
0
            public SliceRange(LoaderNCF file, RedSea.Variable var)
                : base()
            {
                // Query number of dimensions of variable.
                int numDims;
                NetCDF.ResultCode ncState = NetCDF.nc_inq_varndims(file.GetID(), (int)var, out numDims);
                Debug.Assert(ncState == NetCDF.ResultCode.NC_NOERR);
                int[] dimIDs = new int[numDims];

                // Query relevant dimensions.
                ncState = NetCDF.nc_inq_vardimid(file.GetID(), (int)var, dimIDs);
                Debug.Assert(ncState == NetCDF.ResultCode.NC_NOERR);

                Initialize(dimIDs, var);
            }
Exemple #2
0
 public FlowMapMapper(LoaderNCF.SliceRange[] uv, Plane plane, VectorFieldUnsteady velocity)
     : base(plane, velocity.Size.ToInt2())
 {
     _flowMap = new FlowMapUncertain(_startPoint, uv, 0, 9);
     _algorithm = _flowMap;
     Plane = plane;
     _subrangePlane = Plane;
     Mapping = GetCurrentMap;
     _velocity = velocity;
     _maxPlane = velocity.Size.ToInt2();
 }