public ChartSizeDistribution(String _cruise, String _station, String _deployment, PicesClass _classToPlot, PicesClassList _classes, PicesClassList _activeClasses, String _rootDir ) { cruise = _cruise; station = _station; deployment = _deployment; classToPlot = _classToPlot; classes = _classes; activeClasses = _activeClasses; rootDir = _rootDir; lastSaveDirectory = OSservices.AddSlash(PicesSipperVariables.PicesReportDir()) + "AbundanceReports"; statusMsgs = new PicesMsgQueue("ChartSizeDistribution-StatusMsgs"); msgQueue = new PicesMsgQueue("ChartSizeDistribution-RunLog"); runLog = new PicesRunLog(msgQueue); mainWinConn = PicesDataBase.GetGlobalDatabaseManagerNewInstance(runLog); configFileName = OSservices.AddSlash(PicesSipperVariables.ConfigurationDirectory()) + "ChartSizeDistribution.cfg"; InitializeComponent(); }
public ChartAbundanceByDeployment(String _cruise, String _station, String _deployment, PicesClass _classToPlot, int _sizeMin, int _sizeMax, float _probMin, float _probMax, float _depthMin, float _depthMax, char _classKeyToUse, PicesClassList _classes, PicesClassList _activeClasses, String _rootDir ) { cruise = _cruise; station = _station; deployment = _deployment; classToPlot = _classToPlot; sizeMin = _sizeMin; sizeMax = _sizeMax; probMin = _probMin; probMax = _probMax; depthMin = _depthMin; depthMax = _depthMax; classKeyToUse = _classKeyToUse; classes = _classes; activeClasses = _activeClasses; rootDir = _rootDir; if ((sizeMin > 0) && (sizeMax <= 0)) { sizeMax = int.MaxValue; } if ((probMin >= 0.0f) && (probMax <= 0.0f)) { probMax = 1.0f; } if ((depthMin > 0.0f) && (depthMax <= 0.0f)) { depthMax = float.MaxValue; } filterSize = (sizeMin > 0) || ((sizeMax > 0) && (sizeMax > sizeMin)); filterProb = ((probMin > 0.0f) || (probMax < 1.0f)) && (probMax > probMin); filterDepth = ((depthMax > 0) && (depthMax > depthMin)); statusMsgs = new PicesMsgQueue("ChartAbundanceByDeployment-StatusMsgs"); msgQueue = new PicesMsgQueue("ChartAbundanceByDeployment-RunLog"); runLog = new PicesRunLog(msgQueue); mainWinConn = PicesDataBase.GetGlobalDatabaseManagerNewInstance(runLog); configFileName = OSservices.AddSlash(PicesSipperVariables.ConfigurationDirectory()) + "ChartAbundanceByDeployment.cfg"; BuildCriteriaString(); InitializeComponent(); }
private void ConfigurationLoad() { configFileName = OSservices.AddSlash(PicesSipperVariables.ConfigurationDirectory()) + "ImageViewer.cfg"; System.IO.StreamReader i = null; dataFieldAssignments = new int[4]; dataFieldAssignments[0] = PicesInstrumentData.GetFieldNum("Depth"); dataFieldAssignments[1] = PicesInstrumentData.GetFieldNum("Temperature"); dataFieldAssignments[2] = PicesInstrumentData.GetFieldNum("Oxygen"); dataFieldAssignments[3] = PicesInstrumentData.GetFieldNum("Salinity"); try { i = new System.IO.StreamReader(configFileName); } catch (Exception) { i = null; } if (i != null) { String nextLine = null; while (true) { try { nextLine = i.ReadLine(); } catch (Exception) { break; } if (nextLine == null) { break; } nextLine = nextLine.Trim(); if ((nextLine.Length < 3) || (nextLine.Substring(0, 2) == "//")) { continue; } String[] fields = nextLine.Split('\t'); if (fields.Length != 2) { continue; } String fieldName = fields[0]; String fieldValue = fields[1]; switch (fieldName) { case "DataLabel0": dataFieldAssignments[0] = PicesInstrumentData.GetFieldNum(fieldValue); break; case "DataLabel1": dataFieldAssignments[1] = PicesInstrumentData.GetFieldNum(fieldValue); break; case "DataLabel2": dataFieldAssignments[2] = PicesInstrumentData.GetFieldNum(fieldValue); break; case "DataLabel3": dataFieldAssignments[3] = PicesInstrumentData.GetFieldNum(fieldValue); break; } } i.Close(); } } /* ConfigurationLoad */
public ChartGPSByStation(String _stationName) { stationName = _stationName; statusMsgs = new PicesMsgQueue("ChartGPSByStation-StatusMsgs"); msgQueue = new PicesMsgQueue("ChartGPSByStation-RunLog"); runLog = new PicesRunLog(msgQueue); mainWinConn = PicesDataBase.GetGlobalDatabaseManagerNewInstance(runLog); configFileName = OSservices.AddSlash(PicesSipperVariables.ConfigurationDirectory()) + "ChartGPSByStation.cfg"; InitializeComponent(); }
public GetRunTimeParameters() { msgQueue = new PicesMsgQueue("GradeTrainingModel"); runLog = new PicesRunLog(msgQueue); InitializeComponent(); noAgreementClass = PicesClassList.GetUniqueClass("NoAgreement", ""); configFileName = OSservices.AddSlash(PicesSipperVariables.ConfigurationDirectory()) + "GradeTrainingModel.txt"; LoadTrainingModelComboBox(); InitializeTrainAndPredLevelFields(); EnableComponentsForParameterEntry(); }
public TimePlot(SipperConfigRec _sipperConfigRec, InstrumentDataList _history ) { OSservices.CreateDirectory(PicesSipperVariables.ConfigurationDirectory()); timePlotConfigFileName = OSservices.AddSlash(PicesSipperVariables.ConfigurationDirectory()) + "TimePlotConfig.txt"; sipperConfigRec = _sipperConfigRec; history = _history; InitializeComponent(); InitializeVariables(); LoadConfiguration(); SetToLiveMode(); updateChartTimer.Enabled = true; }
public ImportImagesIntoDeployment(String _cruiseName, String _stationName, String _deploymentNum ) { msgQueue = new PicesMsgQueue("ImportImagesIntoDeployment"); runLog = new PicesRunLog(msgQueue); cruiseName = _cruiseName; stationName = _stationName; deploymentNum = _deploymentNum; mainWinConn = PicesDataBase.GetGlobalDatabaseManagerNewInstance(runLog); unknownClass = GetClassFromName(mainWinConn, "UnKnown"); configFileName = OSservices.AddSlash(PicesSipperVariables.ConfigurationDirectory()) + "ImportImagesIntoDeployment.cfg"; InitializeComponent(); //SourceDirectory.Text = PicesSipperVariables.HomeDir (); }
private static void SetConfigurationFileName() { configFileName = OSservices.AddSlash(PicesSipperVariables.ConfigurationDirectory()) + "ActiveTrainingLibraries.cfg"; } /* SetConfigurationFileName */
public SipperConfigRec() { OSservices.CreateDirectory(PicesSipperVariables.ConfigurationDirectory()); sipperConfigurationFileName = PicesSipperVariables.ConfigrationFileName(); Load(); }