Examples of addVariable()


Examples of ucar.nc2.NetcdfFileWriteable.addVariable()

            Dimension timeDim = dataFile.addUnlimitedDimension("time");

            ArrayList dims =  null;

            // Define the coordinate variables.
            dataFile.addVariable("latitude", DataType.FLOAT, new Dimension[] {latDim});
            dataFile.addVariable("longitude", DataType.FLOAT, new Dimension[] {lonDim});

            // Define units attributes for data variables.
            dataFile.addVariableAttribute("latitude", "units", "degrees_north");
            dataFile.addVariableAttribute("longitude", "units", "degrees_east");
View Full Code Here

Examples of ucar.nc2.NetcdfFileWriteable.addVariable()

            ArrayList dims =  null;

            // Define the coordinate variables.
            dataFile.addVariable("latitude", DataType.FLOAT, new Dimension[] {latDim});
            dataFile.addVariable("longitude", DataType.FLOAT, new Dimension[] {lonDim});

            // Define units attributes for data variables.
            dataFile.addVariableAttribute("latitude", "units", "degrees_north");
            dataFile.addVariableAttribute("longitude", "units", "degrees_east");
View Full Code Here

Examples of ucar.nc2.NetcdfFileWriteable.addVariable()

            dims =  new ArrayList();
            dims.add(timeDim);
            dims.add(lvlDim);
            dims.add(latDim);
            dims.add(lonDim);
            dataFile.addVariable("pressure", DataType.FLOAT, dims);
            dataFile.addVariable("temperature", DataType.FLOAT, dims);

            // Define units attributes for data variables.
            dataFile.addVariableAttribute("pressure", "units", "hPa");
            dataFile.addVariableAttribute("temperature", "units", "celsius");
View Full Code Here

Examples of ucar.nc2.NetcdfFileWriteable.addVariable()

            dims.add(timeDim);
            dims.add(lvlDim);
            dims.add(latDim);
            dims.add(lonDim);
            dataFile.addVariable("pressure", DataType.FLOAT, dims);
            dataFile.addVariable("temperature", DataType.FLOAT, dims);

            // Define units attributes for data variables.
            dataFile.addVariableAttribute("pressure", "units", "hPa");
            dataFile.addVariableAttribute("temperature", "units", "celsius");
View Full Code Here

Examples of ucar.nc2.NetcdfFileWriteable.addVariable()

            dims.add( yDim);


           // Define a netCDF variable. The type of the variable in this case
           // is ncInt (32-bit integer).
           dataFile.addVariable("data", DataType.INT, dims);
                
           // create the file
           dataFile.create();

            // This is the data array we will write. It will just be filled
View Full Code Here

Examples of ucar.nc2.NetcdfFileWriteable.addVariable()

      file = NetcdfFileWriteable.openExisting(url, false);
      file.setRedefineMode(true);
      //Group rootGroup = file.getRootGroup();
      //Group headerDataGroup = new Group(file, rootGroup, "header_data");
      //file.addGroup(rootGroup, headerDataGroup);
      file.addVariable(null, newVarName, DataType.FLOAT, "z y x");
    } finally {
      if (file != null) {
        file.setRedefineMode(false);
        file.flush();
        file.close();
View Full Code Here

Examples of unbbayes.prs.bn.IProbabilityFunction.addVariable()

    node.setPosition(x, y);
    node.setName(resource.getString("utilityNodeName")
        + singleEntityNetwork.getNodeCount());
    node.setDescription(node.getName());
    IProbabilityFunction auxTab = ((IRandomVariable) node).getProbabilityFunction();
    auxTab.addVariable(node);
    singleEntityNetwork.addNode(node);
   
    return node;
  }
View Full Code Here

Examples of unbbayes.prs.bn.PotentialTable.addVariable()

    node.setName(resource.getString("probabilisticNodeName")
        + singleEntityNetwork.getNodeCount());
    node.setDescription(node.getName());
    PotentialTable auxTabProb = (PotentialTable)(node)
        .getProbabilityFunction();
    auxTabProb.addVariable(node);
    auxTabProb.setValue(0, 1);
    singleEntityNetwork.addNode(node);
   
    return node;
  }
View Full Code Here

Examples of weka.core.Environment.addVariable()

        }
      }

      if (!isUndoPoint) {
        Environment e = m_mainKFPerspective.getEnvironmentSettings();
        e.addVariable("Internal.knowledgeflow.directory", sFile.getParent());
        m_mainKFPerspective.setEditedStatus(tabIndex, false);
        String tabTitle = sFile.getName();
        tabTitle = tabTitle.substring(0, tabTitle.lastIndexOf('.'));
        m_mainKFPerspective.setTabTitle(tabIndex, tabTitle);
      }
View Full Code Here

Examples of weka.core.Environment.addVariable()

      }

      if (!isUndoPoint) {
        Environment e = m_mainKFPerspective.getEnvironmentSettings(tabIndex);

        e.addVariable("Internal.knowledgeflow.directory",
            new File(sFile.getAbsolutePath()).getParent());
        m_mainKFPerspective.setEditedStatus(tabIndex, false);
        String tabTitle = sFile.getName();
        tabTitle = tabTitle.substring(0, tabTitle.lastIndexOf('.'));
        m_mainKFPerspective.setTabTitle(tabIndex, tabTitle);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.