Skip to content

Commit

Permalink
little clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
SabineEmbacher committed Apr 11, 2024
1 parent e621cd3 commit 61f4e15
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
20 changes: 10 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
<artifactId>s3tbx-sentinel3-reader</artifactId>
<version>9.0.3</version>
<!--<exclusions>-->
<!--<exclusion>-->
<!--<groupId>edu.ucar</groupId>-->
<!--<artifactId>netcdf</artifactId>-->
<!--</exclusion>-->
<!--<exclusion>-->
<!--<groupId>edu.ucar</groupId>-->
<!--<artifactId>netcdf</artifactId>-->
<!--</exclusion>-->
<!--</exclusions>-->
</dependency>

Expand Down Expand Up @@ -118,15 +118,15 @@
<version>5.3.3</version>
</dependency>
<!--<dependency>-->
<!--<groupId>edu.ucar</groupId>-->
<!--<artifactId>netcdf4</artifactId>-->
<!--<version>4.7.4</version>-->
<!--<groupId>edu.ucar</groupId>-->
<!--<artifactId>netcdf4</artifactId>-->
<!--<version>4.7.4</version>-->
<!--</dependency>-->

<!--<dependency>-->
<!--<groupId>edu.ucar</groupId>-->
<!--<artifactId>cdm</artifactId>-->
<!--<version>4.6.14</version>-->
<!--<groupId>edu.ucar</groupId>-->
<!--<artifactId>cdm</artifactId>-->
<!--<version>4.6.14</version>-->
<!--</dependency>-->

<!-- test dependencies -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ private static InterpolationContext createInterpolationContext_2D(Array lonArray
final float lon = lonArray.getFloat(lonIdx);
final float lat = latArray.getFloat(latIdx);
if (!(isValidLon(lon) && isValidLat(lat))) {
continue; // we cannot interpolate here tb 2021-05-04
// we cannot interpolate here tb 2021-05-04
continue;
}

// + detect four era5 corner-points for interpolation
Expand Down Expand Up @@ -114,7 +115,7 @@ private static InterpolationContext createInterpolationContext_0D(Array lonArray
}

static boolean isValidLon(float lon) {
return lon >= -180.f && lon <= 180.f;
return lon >= -180.f && lon <= 180.f;
}

static boolean isValidLat(float lat) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.bc.fiduceo.post.plugin.era5;

import java.awt.*;

class InterpolationContext {

private final BilinearInterpolator[][] interpolators;
Expand Down

0 comments on commit 61f4e15

Please sign in to comment.