Package org.aavso.tools.vstar.data

Examples of org.aavso.tools.vstar.data.SeriesType


      return mag;
    }

    private SeriesType getBand(Matcher magMatcher) {
      SeriesType seriesType = null;

      String bandStr = magMatcher.group(4);

      if (bandStr.equals("C")) {
        return SeriesType.Unknown;
View Full Code Here


    SingleSeriesSelectionDialog seriesDlg = new SingleSeriesSelectionDialog(
        model);

    if (!seriesDlg.isCancelled()) {
      // Get the mean magnitude.
      SeriesType series = seriesDlg.getSeries();
      List<ValidObservation> obs = seriesInfo.getObservations(series);
      // TODO: how should this be computed? B-V or arithmetic mean as
      // below?
      magnitude = DescStats.calcMagMeanInRange(obs,
          JDTimeElementEntity.instance, 0, obs.size() - 1)[DescStats.MEAN_MAG_INDEX];
View Full Code Here

            .validate(uncertaintyStr);
        observation.getMagnitude().setUncertainty(uncertainty);
      }

      String filter = fields[4].trim();
      SeriesType band = SeriesType.getSeriesFromShortName(filter);
      observation.setBand(band);

      String transformedStr = fields[5].trim();
      if (!isNA(transformedStr)) {
        boolean transformed = transformedValidator
View Full Code Here

    ValidObservation last = null;

    for (ValidObservation curr : obs) {
      if (last != null) {
        int lastIntegerJD = (int) last.getJD();
        SeriesType lastBand = last.getBand();
        SeriesType currBand = curr.getBand();
        if (lastIntegerJD % 9 == 0
            && (currBand == SeriesType.Johnson_V || currBand == SeriesType.Johnson_B)
            && (lastBand == SeriesType.Johnson_V || lastBand == SeriesType.Johnson_B)) {
          addToSubset(curr);
        }
View Full Code Here

    Map<SeriesType, Boolean> seriesVisibilityMap = obsModel
        .getSeriesVisibilityMap();

    for (int seriesNum : seriesNumToObsMap.keySet()) {
      SeriesType seriesType = obsModel.getSeriesNumToSrcTypeMap().get(
          seriesNum);
      if (seriesVisibilityMap.get(seriesType)) {

        List<ValidObservation> obs = seriesNumToObsMap.get(seriesNum);
        int index = 0;
View Full Code Here

   * @param visibility
   *            Whether this series should be visible.
   * @return Whether or not the visibility of the object changed.
   */
  protected boolean changeSeriesVisibility(int seriesNum, boolean visibility) {
    SeriesType seriesType = seriesNumToSrcTypeMap.get(seriesNum);
    Boolean currVis = this.seriesVisibilityMap.get(seriesType);

    boolean changed = currVis != null && currVis != visibility;

    if (changed) {
View Full Code Here

            .getMeanSourceSeriesNum()) {

          this.meanSourceSeriesNum = obsAndMeanPlotModel
              .getMeanSourceSeriesNum();

          SeriesType meanSourceSeriesType = obsAndMeanPlotModel
              .getSeriesNumToSrcTypeMap().get(
                  this.meanSourceSeriesNum);

          meanSourceSeriesChangeNotifier
              .notifyListeners(new MeanSourceSeriesChangeMessage(
View Full Code Here

      if (getLatestNewStarMessage() != null && validObsList != null) {
        SingleSeriesSelectionDialog dialog = new SingleSeriesSelectionDialog(
            obsAndMeanPlotModel);

        if (!dialog.isCancelled()) {
          SeriesType type = dialog.getSeries();

          List<ValidObservation> obs = getSeriesInfoProvider()
              .getObservations(type);

          this.getProgressNotifier().notifyListeners(
View Full Code Here

      if (getLatestNewStarMessage() != null && validObsList != null) {
        SingleSeriesSelectionDialog seriesDialog = new SingleSeriesSelectionDialog(
            obsAndMeanPlotModel);

        if (!seriesDialog.isCancelled()) {
          SeriesType type = seriesDialog.getSeries();

          List<ValidObservation> obs = getSeriesInfoProvider()
              .getObservations(type);

          IModel model = plugin.getModel(obs);
View Full Code Here

        lastSelectedSeriesNum = obsPlotPane.getObsModel()
            .getMeanSourceSeriesNum();
      } else {
        // Means not changed (e.g. too few data points in selected
        // series), so restore radio buttons to last selected.
        SeriesType seriesToRevertTo = obsPlotPane.getObsModel()
            .getSeriesNumToSrcTypeMap().get(lastSelectedSeriesNum);

        Enumeration<AbstractButton> elts = seriesGroup.getElements();

        while (elts.hasMoreElements()) {
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.data.SeriesType

Copyright © 2018 www.massapicom. 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.