-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service Provider for applying enhancements #1369
Changes from 13 commits
82fdbe9
20d02d5
dfdfbd0
d0f67e2
c44eddc
0a17feb
773e442
ecb551f
1717675
5324639
bfbc4ff
74f6a03
7ee573e
642b9f2
7892b2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2021 University Corporation for Atmospheric Research/Unidata | ||
* See LICENSE for license information. | ||
*/ | ||
|
||
package ucar.nc2.filter; | ||
|
||
import ucar.ma2.*; | ||
import ucar.nc2.*; | ||
import ucar.nc2.dataset.NetcdfDataset.Enhance; | ||
import ucar.nc2.dataset.VariableDS; | ||
|
||
|
||
/** | ||
* A Service Provider of {@link Enhancement}. | ||
*/ | ||
public interface EnhancementProvider { | ||
|
||
boolean appliesTo(Enhance enhance, AttributeContainer attributes, DataType dt); | ||
|
||
Enhancement Create(VariableDS var); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should start with lower case for method names in java, so let's make it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 |
||
|
||
|
||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -290,5 +290,8 @@ public int getId() { | |
public Filter create(Map<String, Object> properties) { | ||
return new ScaleOffset(properties); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no need to commit changes to this file at all it seems :) |
||
|
||
} | ||
|
||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ucar.nc2.filter.Classifier$Provider | ||
ucar.nc2.filter.Standardizer$Provider | ||
ucar.nc2.filter.Normalizer$Provider | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you make another commit, remove these spaces just to keep things clean