Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance improvements #3

Merged
merged 123 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
595c4d0
using TreeMap should give better performance, because the map entries…
marpet Aug 9, 2019
eede2a0
disabled computation of not used result
marpet Aug 9, 2019
4862011
constant array access moved before loop or if condition
marpet Aug 9, 2019
0fd98f6
replaced HashMaps by TreeMaps
marpet Aug 9, 2019
0849ac0
constant array access moved before loop
marpet Aug 9, 2019
55507b7
removed unnecessary condition
marpet Aug 9, 2019
8eda856
removed watermask operator and used the classifier directly (#2)
marpet Aug 13, 2019
8340b1f
increased version to 7.0.1-SNAPSHOT
marpet Aug 13, 2019
f584659
Idepix OLCI Cloud shadow fronts: do not change sourceFlagTile any more
dolaf Aug 16, 2019
0da3438
Merge remote-tracking branch 'origin/master'
dolaf Aug 16, 2019
ab9c82b
some adjustments in Idepix MODIS
dolaf Oct 4, 2019
be5fe46
cleanup and a fix: for most sensors, cloud buffer was not correctly s…
dolaf Oct 8, 2019
cb62377
fix in S2IdepixOp: demName was not passed into post processing operator
dolaf Oct 9, 2019
46588d9
added user option for a C3S-Lot5 processing mode in Idepix for ProbaV…
dolaf Oct 15, 2019
bea091f
increased versions of Idepix Core, ProbaV and SPOT-VGT to 7.0.1-SNAPS…
dolaf Oct 21, 2019
435feb7
fixed distribution management
TonioF Nov 8, 2019
d191603
removed idepix dependencies and increased version
TonioF Nov 8, 2019
621c563
set to snapshot
TonioF Nov 8, 2019
f59869c
set to snapshot
TonioF Nov 8, 2019
8950b60
set to snapshot
TonioF Nov 8, 2019
74e2f28
set to snapshot
TonioF Nov 8, 2019
9cea467
updated parent
TonioF Nov 8, 2019
49f5081
set to snapshot
TonioF Nov 8, 2019
d4742f3
updated parent
TonioF Nov 8, 2019
ed38219
updated parent
TonioF Nov 8, 2019
2431b2e
set to snapshot
TonioF Nov 8, 2019
eeaced5
updated parent
TonioF Nov 8, 2019
f611047
set to snapshot
TonioF Nov 8, 2019
9604658
remove file from index
TonioF Nov 8, 2019
f2d856d
fix cloud buffer tile boundary problem in ProbaV and VGT post processing
dolaf Nov 24, 2019
ee43d1c
only remove bands that are contained in product
TonioF Dec 6, 2019
a43d6e4
only remove reflectance bands for cloud shadow when compute cloud sha…
TonioF Dec 6, 2019
2b1aede
fix in S2 MSI: user option 'computeCloudBufferForCloudAmbiguous' was …
dolaf Dec 18, 2019
183e9fa
Merge remote-tracking branch 'origin/master'
dolaf Dec 18, 2019
511493f
fix in S2 MSI: latitude was not passed into S2 algorithm, thus snow t…
dolaf Dec 20, 2019
c40ed4b
use geocoding to get lat value
TonioF Jan 24, 2020
4c20d06
S2 MSI: set version to 7.0.1 for release after latest fixes of snow f…
dolaf Jan 28, 2020
b75542a
S2 MSI: set version to 7.0.1 for release after latest fixes of snow f…
dolaf Jan 28, 2020
fd17696
corrected version in S2MSI Idepix
marpet Feb 3, 2020
810d092
set version to 7.0.1 in OLCI
marpet Feb 3, 2020
67d440c
updated versions ins assembly pom
marpet Feb 3, 2020
dceb970
removed workspace file from project
marpet Feb 3, 2020
bd0b098
removed .idea
marpet Feb 3, 2020
1b1f96a
Update README.md
marpet Feb 3, 2020
bfdc887
increased versions of Idepix OLCI and Idepix core to 7.0.2-SNAPSHOT
dolaf Feb 14, 2020
16c4d98
Cloud shadow fixed for southern hemisphere
dagmarM Feb 14, 2020
63daf54
Merge pull request #7 from bcdev/dagmar_cloud_shadow
Feb 14, 2020
30e288c
Flag of inland water is used to switch to the correct classification …
dagmarM Feb 20, 2020
0f3318d
Comment removed for FRESH_INLAND_WATER flag.
dagmarM Feb 20, 2020
7c22058
Merge pull request #8 from bcdev/dagmar_cloud_shadow
Feb 20, 2020
6839095
fixed wrong parent pom in Idepix assembly pom
Feb 20, 2020
c5b4eaf
OLCI version 3.0.2
marpet Mar 2, 2020
348432d
idepix.core and olci set to module version 7.0.2; used in assembly
marpet Mar 2, 2020
679853f
Idepix OLCI: fixed issue with snow/ice flag over fresh inland water
dolaf Mar 4, 2020
790df22
increased idepix-olci version to 7.0.3-SNAPSHOT
dolaf Mar 5, 2020
dd7f886
added preliminary changelog for olci
marpet Mar 18, 2020
ed4e733
added travis configuration
marpet Jul 22, 2020
cdd105d
removed old nexus repository
marpet Jul 22, 2020
70697c2
set guava ersion to 24.1.1-jre
marpet Jul 22, 2020
0426321
set surefire version
marpet Jul 22, 2020
6bfcfe1
using oracle jdk
marpet Jul 22, 2020
480deb7
switched to trusty dist- this one shall contain oracle jdk 8
marpet Jul 22, 2020
e6eb779
disabled travis
marpet Jul 22, 2020
04e1c75
disabled travis
marpet Jul 22, 2020
2a86394
fixed NPE in OLCI postprocessing in case cloud buffer is disabled in …
dolaf Jul 27, 2020
ea3eda7
updated to SNAP 8 SNAPSHOT
marpet Aug 4, 2020
8d08933
testing travis with snap8
marpet Aug 5, 2020
9cfcc49
trigger build
marpet Aug 6, 2020
4b288a3
correctly named travis file
marpet Aug 6, 2020
5ee259a
added travis badge to readme
marpet Aug 6, 2020
1a8d88e
Updated name of plugin category
marpet Sep 29, 2020
6605765
updated gitignore
marpet Sep 29, 2020
bfd04c6
Bump junit from 4.12 to 4.13.1 (#19)
dependabot[bot] Oct 15, 2020
af829f4
prepared IDEPIX 8.0 release
marpet Oct 16, 2020
661a8a9
S2IdepixAlgorithm: removed isLand() condition in isClearSnow() method
dolaf Nov 10, 2020
5a4e430
Idepix S2: set version to 8.0.1-SNAPSHOT
dolaf Nov 10, 2020
55160a7
Idepix S2: fix of performance issue
dolaf Nov 11, 2020
0d1b97d
Idepix S2: eliminated wrong mountain shadows caused by not excluding …
dolaf Nov 12, 2020
b1f53af
added comment about the source of the algorithm
marpet Dec 3, 2020
706232e
release S2MSI v8.0.1
marpet Dec 3, 2020
2975ef9
increased version to 8.0.2-SNAPSHOT
marpet Dec 3, 2020
c989ffc
s2idepix-27-only-use-hillshade-mountain-shadow (#31)
TonioF Jan 12, 2021
95e1412
fix cloud buffer tile boundary problem in ProbaV and VGT post processing
dolaf Jan 15, 2021
bda333e
release S2MSI v8.0.2
marpet Jan 20, 2021
01a3e5b
release S2MSI v8.0.2
marpet Jan 20, 2021
62b6c49
set S2MSI v8.0.3-SNAPSHOT
marpet Jan 20, 2021
60c12a5
Idepix OLCI: made hillshade algorithm available (issue #28); some cle…
dolaf Jan 22, 2021
f10bd42
Merge remote-tracking branch 'origin/master'
dolaf Jan 22, 2021
fc63e51
Adapt Idepix OLCI to updated OLCI O2A Harmonisation #13
marpet Feb 18, 2021
beaf57d
master is now at 9.0.0-SNAPSHOT and uses SNAP 9-SNAPSHOT
marpet Mar 4, 2021
b6e3925
Idepix MERIS: 4th reprocessing: uses adapter and Op now from s3tbx-se…
dolaf Mar 18, 2021
fa629b8
creating also a lcuster. to be used in dev environment
marpet Mar 21, 2021
cf0d8ac
changed name
marpet Mar 21, 2021
dfc904f
fix #26 - Duplicated cloud shadow near scene edge in OLCI data
marpet Mar 25, 2021
849296d
update help and exception message regarding TensorFlow and MS C++ red…
marpet Mar 26, 2021
e49fcb8
removed system.out.println
marpet Mar 26, 2021
d351767
fix #14 Update Tensorflow library to latest version
marpet Mar 26, 2021
a5c2457
reverted #14 Update Tensorflow library to latest version
marpet Mar 26, 2021
a750496
fix #14 Update Tensorflow library to latest version (again)
marpet Apr 6, 2021
23abaa0
updated MERIS "Algorithm Specification" help page
marpet Apr 8, 2021
adef8c6
idepix44: S2 Idepix ends with ArrayIndexOutOfBoundsException
TonioF Apr 8, 2021
9c6cc3e
idepix43: S2 Idepix creates very large log
TonioF Apr 8, 2021
ad6bfe1
use median if geometry center is not available
TonioF Apr 8, 2021
200f442
do not log as often
TonioF Apr 8, 2021
ff7c876
added import
TonioF Apr 8, 2021
b2d52ce
added import
TonioF Apr 8, 2021
802692d
Merge pull request #45 from bcdev/toniof-idepix44-aiobe
TonioF Apr 9, 2021
1589c06
idepix-37: Update jblas library to 1.2.5
TonioF Apr 9, 2021
d491a6e
idepix-30: clear water flags mountains as water
TonioF Apr 9, 2021
d4304e0
revert commit
TonioF Apr 9, 2021
f3279a7
fixed #26 Duplicated cloud shadow near scene edge in OLCI data
marpet Apr 15, 2021
314236b
avoid arrayindexoutofboundsexception
TonioF Apr 27, 2021
7e897a5
fixes #46 - harmonised Pre-Processing to Preprocessing and set catego…
marpet May 10, 2021
f34854d
fixes #7 - Use style of SNAP 8/9 for help pages
marpet May 10, 2021
3f4a051
removed guava dependency - not necessary
marpet Jun 22, 2021
bee9278
using TreeMap should give better performance, because the map entries…
marpet Aug 9, 2019
450f19a
disabled computation of not used result
marpet Aug 9, 2019
c1987a4
constant array access moved before loop or if condition
marpet Aug 9, 2019
bcd1087
replaced HashMaps by TreeMaps
marpet Aug 9, 2019
0a13b7a
constant array access moved before loop
marpet Aug 9, 2019
9560ae1
removed unnecessary condition
marpet Aug 9, 2019
07340e5
Merge remote-tracking branch 'origin/performance_improvements' into p…
marpet Jul 19, 2021
0c3f2a4
not using TreeMap, because test needs HashMap (see comments)
marpet Jul 22, 2021
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
target/
.idea/
/.run/
*.iml
pom.xml.tag
pom.xml.releaseBackup
Expand Down
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
dist: trusty

language: java

jdk:
- oraclejdk8

notifications:
email:
recipients:
- olaf.danne@brockmann-consult.de
- marco.peters@brockmann-consult.de
- tonio.fincke@brockmann-consult.de
on_success: change # default: change
on_failure: always # default: always
File renamed without changes.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
snap-idepix
SNAP-IdePix [![Build Status](https://travis-ci.org/bcdev/snap-idepix.svg?branch=master)](https://travis-ci.org/bcdev/snap-idepix)
===========

The SNAP IdePix processors provide a pixel classification into properties such as clear/cloudy, land/water, snow,
ice etc., for various instruments.
ice etc., for various instruments.

More information can be found at: https://www.brockmann-consult.de/portfolio/idepix/
144 changes: 118 additions & 26 deletions idepix-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,111 @@
<parent>
<artifactId>snap-idepix</artifactId>
<groupId>org.esa.snap</groupId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<artifactId>idepix-assembly</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
<packaging>nbm</packaging>

<description>Collects NBM modules in one directory for uploading to SNAP repository</description>
<packaging>pom</packaging>


<dependencies>
<!-- mp: Shall not be released yet -->
<!-- <dependency>-->
<!-- <groupId>org.esa.snap</groupId>-->
<!-- <artifactId>idepix-avhrr</artifactId>-->
<!-- <version>9.0.0-SNAPSHOT</version>-->
<!-- <type>nbm</type>-->
<!-- </dependency>-->
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-core</artifactId>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</dependency>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-landsat8</artifactId>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</dependency>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-meris</artifactId>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</dependency>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-modis</artifactId>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</dependency>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-olci</artifactId>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</dependency>
<!-- mp: Shall not be released yet -->
<!-- <dependency>-->
<!-- <groupId>org.esa.snap</groupId>-->
<!-- <artifactId>idepix-olcislstr</artifactId>-->
<!-- <version>9.0.0-SNAPSHOT</version>-->
<!-- <type>nbm</type>-->
<!-- </dependency>-->
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-probav</artifactId>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</dependency>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-s2msi</artifactId>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</dependency>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-seawifs</artifactId>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</dependency>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-spotvgt</artifactId>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</dependency>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-viirs</artifactId>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>nbm</goal>
<goal>cluster</goal>
<goal>autoupdate</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Expand All @@ -32,77 +124,77 @@
<configuration>
<artifactItems>
<!-- mp: Shall not be released yet -->
<!-- <artifactItem>-->
<!-- <groupId>org.esa.snap</groupId>-->
<!-- <artifactId>idepix-avhrr</artifactId>-->
<!-- <version>7.0.0</version>-->
<!-- <type>nbm</type>-->
<!-- </artifactItem>-->
<!-- <artifactItem>-->
<!-- <groupId>org.esa.snap</groupId>-->
<!-- <artifactId>idepix-avhrr</artifactId>-->
<!-- <version>9.0.0-SNAPSHOT</version>-->
<!-- <type>nbm</type>-->
<!-- </artifactItem>-->
<artifactItem>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-core</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</artifactItem>
<artifactItem>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-landsat8</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</artifactItem>
<artifactItem>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-meris</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</artifactItem>
<artifactItem>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-modis</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</artifactItem>
<artifactItem>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-olci</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</artifactItem>
<!-- mp: Shall not be released yet -->
<!-- <artifactItem>-->
<!-- <groupId>org.esa.snap</groupId>-->
<!-- <artifactId>idepix-olcislstr</artifactId>-->
<!-- <version>7.0.0</version>-->
<!-- <type>nbm</type>-->
<!-- </artifactItem>-->
<!-- <artifactItem>-->
<!-- <groupId>org.esa.snap</groupId>-->
<!-- <artifactId>idepix-olcislstr</artifactId>-->
<!-- <version>9.0.0-SNAPSHOT</version>-->
<!-- <type>nbm</type>-->
<!-- </artifactItem>-->
<artifactItem>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-probav</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</artifactItem>
<artifactItem>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-s2msi</artifactId>
<version>7.0.1-SNAPSHOT</version>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</artifactItem>
<artifactItem>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-seawifs</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</artifactItem>
<artifactItem>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-spotvgt</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</artifactItem>
<artifactItem>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-viirs</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
<type>nbm</type>
</artifactItem>
</artifactItems>
Expand Down
17 changes: 11 additions & 6 deletions idepix-avhrr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,38 @@
<parent>
<groupId>org.esa.snap</groupId>
<artifactId>snap-idepix</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
</parent>

<artifactId>idepix-avhrr</artifactId>
<version>7.0.0</version>
<version>9.0.0-SNAPSHOT</version>
<packaging>nbm</packaging>

<name>IdePix AVHRR</name>
<description>Classification of pixels (cloud, snow, ice, land, water) originating from AVHRR.
</description>

<properties>
<idepix.version>8.0.0</idepix.version>
</properties>

<dependencies>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>ceres-core</artifactId>
<artifactId>idepix-core</artifactId>
<version>${idepix.version}</version>
</dependency>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>snap-core</artifactId>
<artifactId>ceres-core</artifactId>
</dependency>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>snap-gpf</artifactId>
<artifactId>snap-core</artifactId>
</dependency>
<dependency>
<groupId>org.esa.snap</groupId>
<artifactId>idepix-core</artifactId>
<artifactId>snap-gpf</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public abstract class AbstractAvhrrClassificationOp extends PixelOperator {


static final int ALBEDO_TO_RADIANCE = 0;
static final int RADIANCE_TO_ALBEDO = 1;
private static final int RADIANCE_TO_ALBEDO = 1;

static final String AVHRRAC_NET_NAME = "6x3_114.1.net";

Expand Down Expand Up @@ -144,7 +144,7 @@ void computeSunPosition() {
sunPosition = SunPositionCalculator.calculate(calendar);
}

int getDoy() {
private int getDoy() {
return IdepixUtils.getDoyFromYYMMDD(getProductDatestring());
}

Expand Down Expand Up @@ -260,7 +260,8 @@ GeoPos getGeoPos(int x, int y) {
} else if (mode == RADIANCE_TO_ALBEDO) {
result = input / (conversionFactor * Math.cos(sza * MathUtils.DTOR) * getDistanceCorr());
} else {
throw new IllegalArgumentException("wrong mode " + mode + " for albedo/radiance conversion");
throw new IllegalArgumentException("wrong mode " + AbstractAvhrrClassificationOp.ALBEDO_TO_RADIANCE +
" for albedo/radiance conversion");
}
return result;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
*
* @author olafd
*/
public class AvhrrAcUtils {
class AvhrrAcUtils {

public static FlagCoding createAvhrrAcFlagCoding(String flagId) {
static FlagCoding createAvhrrAcFlagCoding() {

FlagCoding flagCoding = IdepixFlagCoding.createDefaultFlagCoding(flagId);
FlagCoding flagCoding = IdepixFlagCoding.createDefaultFlagCoding(IdepixConstants.CLASSIF_BAND_NAME);

// additional flags for AVHRR-AC (tests):
flagCoding.addFlag("F_REFL1_ABOVE_THRESH", BitSetter.setFlag(0, IdepixConstants.NUM_DEFAULT_FLAGS + 1), null);
Expand All @@ -36,7 +36,7 @@ public static FlagCoding createAvhrrAcFlagCoding(String flagId) {
}


public static int setupAvhrrAcClassifBitmask(Product classifProduct) {
static int setupAvhrrAcClassifBitmask(Product classifProduct) {

int index = IdepixFlagCoding.setupDefaultClassifBitmask(classifProduct);

Expand Down Expand Up @@ -79,7 +79,7 @@ public static int setupAvhrrAcClassifBitmask(Product classifProduct) {
return index;
}

public static Calendar getProductDateAsCalendar(String ddmmyy) {
static Calendar getProductDateAsCalendar(String ddmmyy) {
final Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
int year = Integer.parseInt(ddmmyy.substring(4, 6));
if (year < 50) {
Expand All @@ -93,7 +93,7 @@ public static Calendar getProductDateAsCalendar(String ddmmyy) {
return calendar;
}

public static boolean anglesInvalid(double sza, double vza, double saa, double vaa) {
static boolean anglesInvalid(double sza, double vza, double saa, double vaa) {
// todo: we have a discontinuity in angle retrieval at sza=90deg. Check!
// final double eps = 1.E-6;
// final boolean szaInvalid = sza < 90.0 + eps && sza > 90.0 - eps;
Expand All @@ -107,7 +107,8 @@ public static boolean anglesInvalid(double sza, double vza, double saa, double v
return szaInvalid || saaInvalid || vzaInvalid || vaaInvalid;
}

public static double convertRadianceToBt(String noaaId, AvhrrAuxdata.Rad2BTTable rad2BTTable, double radianceOrig, int ch, float waterFraction) {
static double convertRadianceToBt(String noaaId, AvhrrAuxdata.Rad2BTTable rad2BTTable, double radianceOrig, int ch,
float waterFraction) {
final double c1 = 1.1910659E-5;
final double c2 = 1.438833;

Expand Down
Loading