-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* the best version so far * matche python mostly * before major change, kinda works * long one, all numpy stuff * classfier v1 * Seems to be working * stlye check * removed some not used stuff * add additional convert methods * some test fixes * rehaul * changes from code review comments * starting to work * trying new ncml * new tests * all seems to work * all seems to be working! * applied style * final style update * fix the shape of class_specs to 17 * fix pr comments * fix the flaky test * delete tests, modify constructor * remove unused ncml, add int and float test * update variable length to correct num * Suppress spurious/not relevant jfreechart CVEs (#1358) finalize reviews --------- Co-authored-by: Tara Drwenski <[email protected]> Co-authored-by: Hailey Johnson <[email protected]>
- Loading branch information
1 parent
c2058b2
commit da644a8
Showing
5 changed files
with
165 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
cdm/core/src/test/data/ncml/enhance/testAddToClassifier.ncml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
~ Copyright (c) 1998-2020 John Caron and University Corporation for Atmospheric Research/Unidata | ||
~ See LICENSE for license information. | ||
--> | ||
|
||
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2" enhance="all"> | ||
|
||
<variable name="class_specs" shape="17" type="double"> | ||
<attribute name="classify" value="NaN 0 0; 0 10 10; 10 100 100; 100 NaN 1000"/> | ||
<values>-500000 NaN -10 0 1 2 3 11 25 29 NaN 100 150 121 102 199999 12211</values> | ||
</variable> | ||
|
||
<variable name="classify_ints" shape="5" type="int"> | ||
<attribute name="classify" value="NaN 0 0; 0 NaN 1"/> | ||
<values>1 -2 0 4 -5</values> | ||
</variable> | ||
|
||
<variable name="classify_floats" shape="5" type="float"> | ||
<attribute name="classify" value="NaN 0 0; 0 NaN 1"/> | ||
<values>1.0 -2.0 0.0 4.0 -5.0</values> | ||
</variable> | ||
|
||
|
||
|
||
|
||
|
||
</netcdf> |
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
cdm/core/src/test/java/ucar/nc2/filter/TestClassifier.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.