Here you can find the source of anglesInvalid(double sza, double vza, double saa, double vaa)
public static boolean anglesInvalid(double sza, double vza, double saa, double vaa)
//package com.java2s; //License from project: GNU General Public License public class Main { public 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; // final boolean szaInvalid = sza > 85.0; // GK, 20150326 final boolean szaInvalid = sza > 70.0; // GK, 20150922 final boolean vzaInvalid = Double.isNaN(vza); final boolean saaInvalid = Double.isNaN(saa); final boolean vaaInvalid = Double.isNaN(vaa); return szaInvalid || saaInvalid || vzaInvalid || vaaInvalid; }//from ww w . java 2s . co m }