WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
meteoio
Commits
1259812b
Commit
1259812b
authored
Aug 27, 2015
by
Mathias Bavay
Browse files
oups, the previous commit contained a debug hack...
parent
feb92516
Changes
1
Hide whitespace changes
Inline
Side-by-side
meteoio/IOUtils.h
View file @
1259812b
...
...
@@ -68,11 +68,8 @@ namespace IOUtils {
const
double
lon_epsilon
=
grid_epsilon
/
Cst
::
earth_R0
*
Cst
::
to_deg
;
///<in degrees. Small angle for longitudes, so sin(x)=x
const
double
lat_epsilon
=
lon_epsilon
;
///<in degrees. Small angle for latitudes.
/*inline double C_TO_K(const double& T) {return ((T==nodata)? T : T + Cst::t_water_freezing_pt);}
inline double K_TO_C(const double& T) {return ((T==nodata)? T : T - Cst::t_water_freezing_pt);}*/
inline
double
C_TO_K
(
const
double
&
T
)
{
return
(
T
+
Cst
::
t_water_freezing_pt
);}
inline
double
K_TO_C
(
const
double
&
T
)
{
return
(
T
-
Cst
::
t_water_freezing_pt
);}
inline
double
C_TO_K
(
const
double
&
T
)
{
return
((
T
==
nodata
)
?
T
:
T
+
Cst
::
t_water_freezing_pt
);}
inline
double
K_TO_C
(
const
double
&
T
)
{
return
((
T
==
nodata
)
?
T
:
T
-
Cst
::
t_water_freezing_pt
);}
/**
* @brief Check whether two values are equal regarding a certain epsilon environment (within certain radius of each other)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment