示例#1
0
  // Creates a MERIS bitmask term given the bitmask expression from the request. If no expression is
  // set, it uses the
  // default expression
  private void createMerisBitmaskTerm() throws ProcessorException {
    if ("".equalsIgnoreCase(_bitMaskExpression)) {
      _bitMaskTerm =
          ProcessorUtils.createTerm(SmacConstants.DEFAULT_MERIS_FLAGS_VALUE, _inputProduct);

      _logger.warning(SmacConstants.LOG_MSG_NO_BITMASK);
      _logger.warning(
          SmacConstants.LOG_MSG_DEFAULT_BITMASK + SmacConstants.DEFAULT_MERIS_FLAGS_VALUE);
    } else {
      _bitMaskTerm = ProcessorUtils.createTerm(_bitMaskExpression, _inputProduct);

      _logger.info(SmacConstants.LOG_MSG_BITMASK + _bitMaskExpression);
    }
  }
示例#2
0
  // Creates an AATSR bitmask term given the bitmask expression from the request. If no expression
  // is set, it uses the
  // default expression
  private void createAatsrBitmaskTerm() throws ProcessorException {
    if ("".equalsIgnoreCase(_bitMaskExpression)) {
      _bitMaskTerm =
          ProcessorUtils.createTerm(SmacConstants.DEFAULT_NADIR_FLAGS_VALUE, _inputProduct);
      _bitMaskTermForward =
          ProcessorUtils.createTerm(SmacConstants.DEFAULT_FORWARD_FLAGS_VALUE, _inputProduct);

      _logger.warning(SmacConstants.LOG_MSG_NO_BITMASK);
      _logger.warning(
          SmacConstants.LOG_MSG_DEFAULT_NADIR_BITMASK + SmacConstants.DEFAULT_NADIR_FLAGS_VALUE);
      _logger.warning(
          SmacConstants.LOG_MSG_DEFAULT_FORWARD_BITMASK
              + SmacConstants.DEFAULT_FORWARD_FLAGS_VALUE);
    } else {
      _bitMaskTerm = ProcessorUtils.createTerm(_bitMaskExpression, _inputProduct);
      _bitMaskTermForward = ProcessorUtils.createTerm(_bitMaskExpressionForward, _inputProduct);

      _logger.info(SmacConstants.LOG_MSG_NADIR_BITMASK + _bitMaskExpression);
      _logger.info(SmacConstants.LOG_MSG_FORWARD_BITMASK + _bitMaskExpressionForward);
    }
  }