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 InstrumentDataByDeploymentProfile(String _cruiseName, String _stationName, String _deploymentNum, PicesClass _mlClass ) { cruiseName = _cruiseName; stationName = _stationName; deploymentNum = _deploymentNum; mlClass = _mlClass; reportFileDir = OSservices.AddSlash(PicesSipperVariables.PicesReportDir()) + "InstrumentSummariesByDeployment"; runLogGoalie = new PicesGoalKeeper("InstrumentDataByDeploymentProfile"); InitializeComponent(); }
private void SaveFeatureData_Load(object sender, EventArgs e) { CruiseName.Text = cruise; StationName.Text = station; DeploymentNum.Text = deployment; SipperFile.Text = sipperFileName; if (group != null) { GroupName.Text = group.Name; } if (mlClass != null) { ClassName.Text = mlClass.Name; } ProbMin.Text = (100.0f * probMin).ToString("##0.0") + "%"; ProbMax.Text = (100.0f * probMax).ToString("##0.0") + "%"; SizeMin.Text = sizeMin.ToString("#,###,##0"); if (sizeMax <= 0) { SizeMax.Text = infinityStr; } else { SizeMax.Text = sizeMax.ToString("#,###,##0"); } DepthMin.Text = depthMin.ToString("##,##0.00"); if (depthMax <= 0.0) { DepthMax.Text = infinityStr; } else { DepthMax.Text = depthMax.ToString("##,##0.00"); } dataFileName = OSservices.AddSlash(PicesSipperVariables.PicesReportDir()) + "PlanktonDataFiles"; dataFileName = OSservices.AddSlash(dataFileName); if (group != null) { dataFileName += group.Name; } else { if (!String.IsNullOrEmpty(cruise)) { dataFileName += cruise; if (!String.IsNullOrEmpty(station)) { dataFileName += "-" + station; if (!String.IsNullOrEmpty(deployment)) { dataFileName += "-" + deployment; if (!String.IsNullOrEmpty(sipperFileName)) { dataFileName += "-" + sipperFileName; } } } } } if (mlClass != null) { if (!String.IsNullOrEmpty(dataFileName)) { dataFileName += "-"; } dataFileName += mlClass.Name; } dataFileName += ".data"; FeatureFileName.Text = dataFileName; IncludeSampleImagesNumPerClass.Text = includeSampleImagesNumPerClass.ToString(); StartLoadingStatusOnTotalImageCount(); } /* SaveImagesToDisk2_Load */
private void SaveFeatureData_Load(object sender, EventArgs e) { CruiseName.Text = cruise; StationName.Text = station; DeploymentNum.Text = deployment; SipperFile.Text = sipperFileName; if (group != null) { GroupName.Text = group.Name; } if (mlClass != null) { ClassName.Text = mlClass.Name; } ProbMin.Text = (100.0f * probMin).ToString("##0.0") + "%"; ProbMax.Text = (100.0f * probMax).ToString("##0.0") + "%"; SizeMin.Text = sizeMin.ToString("#,###,##0"); if (sizeMax <= 0) { SizeMax.Text = infinityStr; } else { SizeMax.Text = sizeMax.ToString("#,###,##0"); } DepthMin.Text = depthMin.ToString("##,##0.00"); if (depthMax <= 0.0) { DepthMax.Text = infinityStr; } else { DepthMax.Text = depthMax.ToString("##,##0.00"); } featureFileName = OSservices.AddSlash(PicesSipperVariables.PicesReportDir()) + "FeatureDataFiles"; featureFileName = OSservices.AddSlash(featureFileName); if (group != null) { featureFileName += group.Name; } else { if (!String.IsNullOrEmpty(cruise)) { featureFileName += cruise; if (!String.IsNullOrEmpty(station)) { featureFileName += "-" + station; if (!String.IsNullOrEmpty(deployment)) { featureFileName += "-" + deployment; if (!String.IsNullOrEmpty(sipperFileName)) { featureFileName += "-" + sipperFileName; } } } } } if (mlClass != null) { if (!String.IsNullOrEmpty(featureFileName)) { featureFileName += "-"; } featureFileName += mlClass.Name; } featureFileName += ".data"; FeatureFileName.Text = featureFileName; String[] validFileFormats = PicesFeatureFileIO.RegisteredDriverNames(false, true); foreach (String s in validFileFormats) { FileFormat.Items.Add(s); } FileFormat.SelectedItem = fileFormat; IncludeSampleImagesNumPerClass.Text = includeSampleImagesNumPerClass.ToString(); StartLoadingStatusOnTotalImageCount(); } /* SaveImagesToDisk2_Load */