Java Angle anglesInvalid(double sza, double vza, double saa, double vaa)

Here you can find the source of anglesInvalid(double sza, double vza, double saa, double vaa)

Description

angles Invalid

License

Open Source License

Declaration

public static boolean anglesInvalid(double sza, double vza, double saa, double vaa) 

Method Source Code

//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
}

Related

  1. angleInRange(float theta1, float theta2, float tolerance)
  2. angleLinear(float a, float b, int spin, float f)
  3. angleOfLine(int x1, int y1, int x2, int y2)
  4. angleOfLineDeg(double x1, double y1, double x2, double y2)
  5. angleRadToDegClipped(final double angleRad)
  6. angleSum(float a1, float a2)
  7. angleTo(final int x, final int y, final int thatx, final int thaty)
  8. angleToCompass(double angleIn)
  9. angleToDefaultAngle(double angle)