Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <your_build_dir>
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?

Expand Down Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion cli/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@

## Building

````
cd <your_build_dir>
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
java -jar netchdf-uber.jar --filename your_file
````
5 changes: 4 additions & 1 deletion clibs/src/test/kotlin/com/sunya/netchdf/NetchdfClibTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
5 changes: 4 additions & 1 deletion core/src/test/kotlin/com/sunya/netchdf/NetchdfExtra.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down