diff --git a/Readme.md b/Readme.md index deb85c06..7c66b511 100644 --- a/Readme.md +++ b/Readme.md @@ -8,18 +8,20 @@ netcdf3, netcdf4, hdf4, hdf5, hdf-eos2, and hdf-eos5 data files. Please contact me if you'd like to help out. Especially needed are test datasets from all the important data archives!! -## Building +### Building * Download Java 21 JDK and set JAVA_HOME. * Download git and add to PATH. - +* +```` cd git clone https://github.com/JohnLCaron/netchdf.git cd netchdf ./gradlew clean assemble +```` Also see: - * [Building and Running ncdump](clibs/Readme.md) + * [Building and Running ncdump](cli/Readme.md) ### Why this library? @@ -137,7 +139,7 @@ More and deeper test coverage is provided in the clibs module, which compares ne the Netcdf, HDF5, and HDF4 C libraries. The clibs module is not part of the released netchdf library and is only supported for test purposes. -Currently we have ~1500 test files: +Currently we have 1470 test files in the core test suite: ```` hdf-eos2 = 267 files diff --git a/cli/Readme.md b/cli/Readme.md index 8d6fb7fc..999a24c9 100644 --- a/cli/Readme.md +++ b/cli/Readme.md @@ -3,13 +3,17 @@ ## Building +```` cd clone https://github.com/JohnLCaron/netchdf.git cd netchdf ./gradlew clean assemble ./gradlew :cli:uberJar +```` ## Running ncdump +```` cd cli/build/libs -java -jar netchdf-uber.jar --filename your_file \ No newline at end of file +java -jar netchdf-uber.jar --filename your_file +```` \ No newline at end of file diff --git a/clibs/src/test/kotlin/com/sunya/netchdf/NetchdfClibTest.kt b/clibs/src/test/kotlin/com/sunya/netchdf/NetchdfClibTest.kt index 14326466..7368f271 100644 --- a/clibs/src/test/kotlin/com/sunya/netchdf/NetchdfClibTest.kt +++ b/clibs/src/test/kotlin/com/sunya/netchdf/NetchdfClibTest.kt @@ -41,7 +41,10 @@ class NetchdfClibTest { @AfterAll fun afterAll() { if (versions.size > 0) { - versions.keys.forEach{ println("$it = ${versions[it]!!.size } files") } + val sversions = versions.toSortedMap() + sversions.keys.forEach{ println("$it = ${sversions[it]!!.size } files") } + val total = sversions.keys.map{ sversions[it]!!.size }.sum() + println("total # files = $total") } Stats.show() } diff --git a/core/src/test/kotlin/com/sunya/netchdf/NetchdfExtra.kt b/core/src/test/kotlin/com/sunya/netchdf/NetchdfExtra.kt index 9e39eebf..75c7d21b 100644 --- a/core/src/test/kotlin/com/sunya/netchdf/NetchdfExtra.kt +++ b/core/src/test/kotlin/com/sunya/netchdf/NetchdfExtra.kt @@ -24,7 +24,10 @@ class NetchdfExtra { @AfterAll fun afterAll() { if (versions.size > 0) { - versions.keys.forEach{ println("$it = ${versions[it]!!.size } files") } + val sversions = versions.toSortedMap() + sversions.keys.forEach{ println("$it = ${sversions[it]!!.size } files") } + val total = sversions.keys.map{ sversions[it]!!.size }.sum() + println("total # files = $total") } Stats.show() }