public TableConfig getConfig(FeatureType wantFeatureType, NetcdfDataset ds, Formatter errlog) throws IOException { TableConfig nt = new TableConfig(Table.Type.ArrayStructure, "station"); nt.featureType = FeatureType.STATION_PROFILE; nt.structName = "station"; nt.stnId = STN_NAME; nt.lat = STN_LAT; nt.lon = STN_LON; nt.elev = STN_ELEV; // make the station array structure in memory // nt.as = makeIndex(ds); TableConfig obs = new TableConfig(Table.Type.Structure, "obsRecord"); obs.structName = "record"; obs.dimName = Evaluator.getDimensionName(ds, "record", errlog); obs.lat = UnidataPointDatasetHelper.getCoordinateName(ds, AxisType.Lat); obs.lon = UnidataPointDatasetHelper.getCoordinateName(ds, AxisType.Lon); obs.elev = UnidataPointDatasetHelper.getCoordinateName(ds, AxisType.Height); obs.time = UnidataPointDatasetHelper.getCoordinateName(ds, AxisType.Time); obs.stnId = Evaluator.getVariableName(ds, "name", errlog); //obs.join = new TableConfig.JoinConfig(Join.Type.Index); // create an IndexJoin and attach to the obs.join //indexJoin = new IndexJoin(obs.join); nt.addChild(obs); TableConfig levels = new TableConfig(Table.Type.Structure, "seq1"); levels.structName = "seq1"; levels.elev = UnidataPointDatasetHelper.getCoordinateName(ds, AxisType.Height); //levels.join = new TableConfig.JoinConfig(Join.Type.NestedStructure); obs.addChild(levels); return nt; }
stationTable.featureType = FeatureType.STATION; stationTable.dimName = stationDim.getShortName(); stationTable.limit = Evaluator.getVariableName(ds, "number_stations", null); stationTable.stnId = Evaluator.getVariableName(ds, "station_id", null); stationTable.stnDesc = Evaluator.getVariableName(ds, "station_description", null); stationTable.stnWmoId = Evaluator.getVariableName(ds, "wmo_id", null); obsTable.parentIndex = Evaluator.getVariableName(ds, "parent_index", null); obsTable.timeNominal = Evaluator.getVariableName(ds, "time_nominal", null);
stationTable.featureType = FeatureType.STATION; stationTable.dimName = stationDim.getShortName(); stationTable.limit = Evaluator.getVariableName(ds, "number_stations", null); stationTable.stnId = Evaluator.getVariableName(ds, "station_id", null); stationTable.stnDesc = Evaluator.getVariableName(ds, "station_description", null); stationTable.stnWmoId = Evaluator.getVariableName(ds, "wmo_id", null); obsTable.parentIndex = Evaluator.getVariableName(ds, "parent_index", null); obsTable.timeNominal = Evaluator.getVariableName(ds, "time_nominal", null);
stationTable.featureType = FeatureType.STATION; stationTable.dimName = stationDim.getShortName(); stationTable.limit = Evaluator.getVariableName(ds, "number_stations", null); stationTable.stnId = Evaluator.getVariableName(ds, "station_id", null); stationTable.stnDesc = Evaluator.getVariableName(ds, "station_description", null); stationTable.stnWmoId = Evaluator.getVariableName(ds, "wmo_id", null); obsTable.parentIndex = Evaluator.getVariableName(ds, "parent_index", null); obsTable.timeNominal = Evaluator.getVariableName(ds, "time_nominal", null);
public TableConfig getConfig(FeatureType wantFeatureType, NetcdfDataset ds, Formatter errlog) throws IOException { TableConfig nt = new TableConfig(Table.Type.ArrayStructure, "station"); nt.featureType = FeatureType.STATION_PROFILE; nt.structName = "station"; nt.stnId = STN_NAME; nt.lat = STN_LAT; nt.lon = STN_LON; nt.elev = STN_ELEV; // make the station array structure in memory // nt.as = makeIndex(ds); TableConfig obs = new TableConfig(Table.Type.Structure, "obsRecord"); obs.structName = "record"; obs.dimName = Evaluator.getDimensionName(ds, "record", errlog); obs.lat = UnidataPointDatasetHelper.getCoordinateName(ds, AxisType.Lat); obs.lon = UnidataPointDatasetHelper.getCoordinateName(ds, AxisType.Lon); obs.elev = UnidataPointDatasetHelper.getCoordinateName(ds, AxisType.Height); obs.time = UnidataPointDatasetHelper.getCoordinateName(ds, AxisType.Time); obs.stnId = Evaluator.getVariableName(ds, "name", errlog); //obs.join = new TableConfig.JoinConfig(Join.Type.Index); // create an IndexJoin and attach to the obs.join //indexJoin = new IndexJoin(obs.join); nt.addChild(obs); TableConfig levels = new TableConfig(Table.Type.Structure, "seq1"); levels.structName = "seq1"; levels.elev = UnidataPointDatasetHelper.getCoordinateName(ds, AxisType.Height); //levels.join = new TableConfig.JoinConfig(Join.Type.NestedStructure); obs.addChild(levels); return nt; }