#include <algorithm>
#include <cmath>
#include <string>
#include <AMReX_BoxArray.H>
#include <AMReX_REAL.H>
#include <AMReX_Vector.H>
#include "ERF_LatLonMap.H"
Go to the source code of this file.
◆ StationEarthWind
| Enumerator |
|---|
| None | |
| UEast | |
| VNorth | |
| WindSpeed | |
| WindDir | |
@ None
Definition: ERF_LSM_Types.H:6
◆ station_bilinear_skip_missing()
| amrex::Real station_bilinear_skip_missing |
( |
amrex::Real |
v00, |
|
|
amrex::Real |
v10, |
|
|
amrex::Real |
v01, |
|
|
amrex::Real |
v11, |
|
|
amrex::Real |
wx, |
|
|
amrex::Real |
wy, |
|
|
amrex::Real |
missing_value |
|
) |
| |
|
inline |
100 const amrex::Real v[4] = {v00, v10, v01, v11};
101 const amrex::Real w[4] = {(amrex::Real(1.0)-wx)*(amrex::Real(1.0)-wy),
102 wx*(amrex::Real(1.0)-wy),
103 (amrex::Real(1.0)-wx)*wy,
105 amrex::Real sum = amrex::Real(0.0);
106 amrex::Real wsum = amrex::Real(0.0);
107 for (
int n = 0; n < 4; ++n) {
108 if (w[n] > amrex::Real(0.0) && std::isfinite(v[n]) && v[n] != missing_value) {
113 return (wsum > amrex::Real(0.0)) ? sum / wsum : missing_value;
Referenced by ERF::sample_stations().
◆ station_earth_wind_from_name()