Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main Repositories
otb
Commits
6338cbc2
Commit
6338cbc2
authored
10 years ago
by
Mickael Savinaud
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: remove non-ascii characters
parent
f28f8098
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Radiometry/otbVarSol.h
+6
-10
6 additions, 10 deletions
Code/Radiometry/otbVarSol.h
with
6 additions
and
10 deletions
Code/Radiometry/otbVarSol.h
+
6
−
10
View file @
6338cbc2
...
@@ -28,8 +28,8 @@ namespace otb
...
@@ -28,8 +28,8 @@ namespace otb
*
*
* Call VarSol main function
* Call VarSol main function
*
*
* [1] Vermote, E., Tanré, D., Deuze, J., Herman, M., Morcette, J., 1997.
* [1] Vermote, E., Tanré, D., Deuze, J., Herman, M., Morcette, J., 1997.
* Second simulation of the satellite signal in the solar spectrum, 6S: An overview.
* Second simulation of the satellite signal in the solar spectrum, 6S: An overview.
* IEEE Transactions on Geoscience and Remote Sensing 35
* IEEE Transactions on Geoscience and Remote Sensing 35
* \ingroup Radiometry
* \ingroup Radiometry
*
*
...
@@ -37,20 +37,17 @@ namespace otb
...
@@ -37,20 +37,17 @@ namespace otb
class
ITK_EXPORT
VarSol
class
ITK_EXPORT
VarSol
{
{
public:
public:
/** Call the varSol function*/
/** Call the varSol function*/
static
double
GetVarSol
(
const
int
day
,
const
int
month
)
static
double
GetVarSol
(
const
int
day
,
const
int
month
)
{
{
/* System generated locals */
/* System generated locals */
double
d__1
;
double
d__1
;
/* Builtin functions */
//double acos(double), cos(double);
/* Local variables */
/* Local variables */
int
j
;
int
j
;
double
om
;
double
om
;
/* calculation of the variability of the solar constant during the year. */
/* calculation of the variability of the solar constant during the year. */
/* day is the number of the day in the month */
/* day is the number of the day in the month */
if
(
month
<=
2
)
if
(
month
<=
2
)
...
@@ -59,7 +56,7 @@ namespace otb
...
@@ -59,7 +56,7 @@ namespace otb
j
=
(
month
-
1
)
*
31
-
(
month
-
2
)
/
2
-
2
+
day
;
j
=
(
month
-
1
)
*
31
-
(
month
-
2
)
/
2
-
2
+
day
;
else
else
j
=
(
month
-
1
)
*
31
-
(
month
-
1
)
/
2
-
2
+
day
;
j
=
(
month
-
1
)
*
31
-
(
month
-
1
)
/
2
-
2
+
day
;
om
=
(
double
)
(
j
-
4
)
*
.9856
*
CONST_PI_180
;
om
=
(
double
)
(
j
-
4
)
*
.9856
*
CONST_PI_180
;
/* Computing 2nd power */
/* Computing 2nd power */
d__1
=
1.
-
vcl_cos
(
om
)
*
.01673
;
d__1
=
1.
-
vcl_cos
(
om
)
*
.01673
;
...
@@ -68,4 +65,3 @@ namespace otb
...
@@ -68,4 +65,3 @@ namespace otb
};
};
}
//end namespace otb
}
//end namespace otb
#endif
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment