Skip to content

Commit 52ae364

Browse files
committed
Next development version, refactoring to netcdf 5 and other updates.
1 parent a6c088f commit 52ae364

File tree

31 files changed

+119
-86
lines changed

31 files changed

+119
-86
lines changed

cross-annotations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>cross</artifactId>
66
<groupId>io.github.nilshoffmann</groupId>
7-
<version>2.0.1</version>
7+
<version>2.0.2-SNAPSHOT</version>
88
</parent>
99
<artifactId>cross-annotations</artifactId>
1010
<packaging>jar</packaging>

cross-cache/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>cross</artifactId>
55
<groupId>io.github.nilshoffmann</groupId>
6-
<version>2.0.1</version>
6+
<version>2.0.2-SNAPSHOT</version>
77
</parent>
88
<artifactId>cross-cache</artifactId>
99
<packaging>jar</packaging>

cross-event/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>cross</artifactId>
55
<groupId>io.github.nilshoffmann</groupId>
6-
<version>2.0.1</version>
6+
<version>2.0.2-SNAPSHOT</version>
77
</parent>
88
<artifactId>cross-event</artifactId>
99
<packaging>jar</packaging>

cross-exception/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>cross</artifactId>
55
<groupId>io.github.nilshoffmann</groupId>
6-
<version>2.0.1</version>
6+
<version>2.0.2-SNAPSHOT</version>
77
</parent>
88
<artifactId>cross-exception</artifactId>
99
<packaging>jar</packaging>

cross-main/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>cross</artifactId>
66
<groupId>io.github.nilshoffmann</groupId>
7-
<version>2.0.1</version>
7+
<version>2.0.2-SNAPSHOT</version>
88
</parent>
99
<artifactId>cross-main</artifactId>
1010
<packaging>jar</packaging>
@@ -84,7 +84,7 @@
8484
</dependency>
8585
<dependency>
8686
<groupId>edu.ucar</groupId>
87-
<artifactId>netcdfAll</artifactId>
87+
<artifactId>cdm-core</artifactId>
8888
</dependency>
8989
<dependency>
9090
<groupId>org.jdom</groupId>

cross-main/src/main/java/cross/Factory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ public void dumpConfig(final String filename, final Date d) {
152152
File configLocationNew = new File(location.getParentFile(), configLocation.getName());
153153
FileUtils.copyFile(configLocation, configLocationNew);
154154
}
155-
LoggerFactory.getLogger(Factory.class).error("Saving configuration to: ");
156-
LoggerFactory.getLogger(Factory.class).error("{}", location.getAbsolutePath());
155+
LoggerFactory.getLogger(Factory.class).info("Saving configuration to: ");
156+
LoggerFactory.getLogger(Factory.class).info("{}", location.getAbsolutePath());
157157
saveConfiguration(cfg, location);
158158
} catch (IOException | ConfigurationException ex) {
159159
LoggerFactory.getLogger(Factory.class).error("{}", ex);

cross-main/src/main/java/cross/datastructures/cache/SerializableArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public SerializableArray(Array array) {
7676
@Override
7777
public void writeExternal(ObjectOutput oo) throws IOException {
7878
if (array != null) {
79-
oo.writeObject(DataType.getType(array.getElementType()));
79+
oo.writeObject(DataType.getType(array));
8080
oo.writeObject(array.getShape());
8181
oo.writeObject(array.getStorage());
8282
}

cross-main/src/main/java/cross/datastructures/fragments/VariableFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public void setArray(final Array a1) {
376376
ArrayList<Array> list = new ArrayList<>(1);
377377
list.add(a1);
378378
parent.getCache().put(this, list);
379-
setDataType(DataType.getType(a1.getElementType()));
379+
setDataType(DataType.getType(a1));
380380
if (getDimensions() == null) {
381381
setDimensions(cross.datastructures.tools.ArrayTools.getDefaultDimensions(a1));
382382
}
@@ -437,7 +437,7 @@ protected void setIndexedArrayInternal(final List<Array> al1) {
437437
if (al1 != null && !al1.isEmpty()) {
438438
this.isModified = true;
439439
parent.getCache().put(this, al1);
440-
setDataType(DataType.getType(al1.get(0).getElementType()));
440+
setDataType(DataType.getType(al1.get(0)));
441441
} else {
442442
clear();
443443
}

cross-main/src/main/java/cross/datastructures/tools/FragmentTools.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static IVariableFragment createIntArrayD1(
158158
} else {
159159
vf = new VariableFragment(parent, varname);
160160
}
161-
final ArrayInt.D1 a = new ArrayInt.D1(size);
161+
final ArrayInt.D1 a = new ArrayInt.D1(size, false);
162162
vf.setArray(a);
163163
return vf;
164164
}

cross-main/src/main/java/cross/io/xml/FragmentXMLSerializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ public ArrayList<Array> readIndexed(final IVariableFragment f)
506506
// read in the full index_array
507507
log.debug("Reading index array {}", index);
508508
Array index_array = readSingle(index);
509-
switch (DataType.getType(index_array.getElementType())) {
509+
switch (DataType.getType(index_array)) {
510510
case LONG:
511511
log.warn("Index array contains long values, this is currently only supported up to Integer.MAX_VALUE");
512512
break;
@@ -588,7 +588,7 @@ public ArrayList<Array> readIndexed(final IVariableFragment f)
588588
data_end = Math.min(data_dim.getLength() - 1, data_end);
589589
if (data_start > data_end) {
590590
log.warn("scan_index contains an invalid last scan offset. Inserting terminating array with length 0!");
591-
al.add(Array.factory(DataType.getType(data_array.getElementType()), new int[0]));
591+
al.add(Array.factory(DataType.getType(data_array), new int[0]));
592592
} else {
593593
try {
594594
log.debug("Reading array {}, from {} to {}", new Object[]{

0 commit comments

Comments
 (0)