From 642b9f28a873a011ed21d045f2599a4894f0caeb Mon Sep 17 00:00:00 2001 From: Leo Date: Thu, 18 Jul 2024 09:31:34 -0500 Subject: [PATCH] final version --- cdm/core/src/main/java/ucar/nc2/filter/Classifier.java | 5 +---- .../src/main/java/ucar/nc2/filter/EnhancementProvider.java | 2 +- cdm/core/src/main/java/ucar/nc2/filter/Normalizer.java | 2 +- cdm/core/src/main/java/ucar/nc2/filter/Standardizer.java | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/cdm/core/src/main/java/ucar/nc2/filter/Classifier.java b/cdm/core/src/main/java/ucar/nc2/filter/Classifier.java index 66a3f4d3da..1734400be2 100644 --- a/cdm/core/src/main/java/ucar/nc2/filter/Classifier.java +++ b/cdm/core/src/main/java/ucar/nc2/filter/Classifier.java @@ -126,16 +126,13 @@ public static int[] stringToIntArray(String str) { } public static class Provider implements EnhancementProvider { - - - @Override public boolean appliesTo(Enhance enhance, AttributeContainer attributes, DataType dt) { return enhance == Enhance.ApplyClassifier && attributes.findAttribute(CDM.CLASSIFY) != null && dt.isNumeric(); } @Override - public Classifier Create(VariableDS var) { + public Classifier create(VariableDS var) { return createFromVariable(var); } } diff --git a/cdm/core/src/main/java/ucar/nc2/filter/EnhancementProvider.java b/cdm/core/src/main/java/ucar/nc2/filter/EnhancementProvider.java index f1d0f7ee2d..a8cf2fdb04 100644 --- a/cdm/core/src/main/java/ucar/nc2/filter/EnhancementProvider.java +++ b/cdm/core/src/main/java/ucar/nc2/filter/EnhancementProvider.java @@ -18,7 +18,7 @@ public interface EnhancementProvider { boolean appliesTo(Enhance enhance, AttributeContainer attributes, DataType dt); - Enhancement Create(VariableDS var); + Enhancement create(VariableDS var); } diff --git a/cdm/core/src/main/java/ucar/nc2/filter/Normalizer.java b/cdm/core/src/main/java/ucar/nc2/filter/Normalizer.java index b97941b6f2..fcae8710c4 100644 --- a/cdm/core/src/main/java/ucar/nc2/filter/Normalizer.java +++ b/cdm/core/src/main/java/ucar/nc2/filter/Normalizer.java @@ -87,7 +87,7 @@ public boolean appliesTo(Enhance enhance, AttributeContainer attributes, DataTyp } @Override - public Normalizer Create(VariableDS var) { + public Normalizer create(VariableDS var) { return Normalizer.createFromVariable(var); } diff --git a/cdm/core/src/main/java/ucar/nc2/filter/Standardizer.java b/cdm/core/src/main/java/ucar/nc2/filter/Standardizer.java index 1ca59957ea..5bf8948b29 100644 --- a/cdm/core/src/main/java/ucar/nc2/filter/Standardizer.java +++ b/cdm/core/src/main/java/ucar/nc2/filter/Standardizer.java @@ -89,7 +89,7 @@ public boolean appliesTo(Enhance enhance, AttributeContainer attributes, DataTyp } @Override - public Standardizer Create(VariableDS var) { + public Standardizer create(VariableDS var) { return createFromVariable(var); } }