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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
David Youssefi
otb
Commits
c24588a2
Commit
c24588a2
authored
17 years ago
by
Thomas Feuvrier
Browse files
Options
Downloads
Patches
Plain Diff
Correction sur le nombre d'argument
parent
cdf1a4f7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Testing/Code/Radiometry/CMakeLists.txt
+1
-2
1 addition, 2 deletions
Testing/Code/Radiometry/CMakeLists.txt
Testing/Code/Radiometry/otbAtmosphericCorrectionSequencement.cxx
+15
-15
15 additions, 15 deletions
.../Code/Radiometry/otbAtmosphericCorrectionSequencement.cxx
with
16 additions
and
17 deletions
Testing/Code/Radiometry/CMakeLists.txt
+
1
−
2
View file @
c24588a2
...
...
@@ -455,10 +455,9 @@ ADD_TEST(raTvAtmosphericCorrectionSequencementTest ${RADIOMETRY_TESTS}
# LuminanceToReflectance parameters
27.3
#elevation et azimuth solaire
4
#day
12
#mo
u
nth
12
#month
${
INPUTDATA
}
/atmosphericCorrectionSequencement_solar_illumination.txt
# AtmosphericCorrectionParametersTo6SAtmosphericRadiativeTerms parameters
27.3
152.7
2.5
-77.0
...
...
This diff is collapsed.
Click to expand it.
Testing/Code/Radiometry/otbAtmosphericCorrectionSequencement.cxx
+
15
−
15
View file @
c24588a2
...
...
@@ -40,13 +40,13 @@
int
otbAtmosphericCorrectionSequencementTest
(
int
argc
,
char
*
argv
[]
)
{
if
(
argc
!=
20
)
if
(
argc
!=
19
)
{
std
::
cerr
<<
"Missing Parameters "
<<
std
::
endl
;
std
::
cerr
<<
"Usage: "
<<
argv
[
0
];
std
::
cerr
<<
" inputImage , outputImage,"
<<
std
::
endl
;
std
::
cerr
<<
" alphaBetaFileName ,
z
enithal
SolarRadius
, day, month , solarIlluminationFileName,"
<<
std
::
endl
;
std
::
cerr
<<
"
solarZenithalAngle ,
solarAzimutalAngle , viewingZenithalAngle , viewingAzimutalAngle,"
<<
std
::
endl
;
std
::
cerr
<<
" alphaBetaFileName ,
solarZ
enithal
Angle
, day, month , solarIlluminationFileName,"
<<
std
::
endl
;
std
::
cerr
<<
" solarAzimutalAngle , viewingZenithalAngle , viewingAzimutalAngle,"
<<
std
::
endl
;
std
::
cerr
<<
" atmosphericPressure , waterVaporAmount , ozoneAmount , aerosolModel , AerosolOptical,"
<<
std
::
endl
;
std
::
cerr
<<
" wavelenghtSpectralBandFileName , adjencyEffect6SCorrectionWindowRadius, pixelSpacingInKilometers"
<<
std
::
endl
;
std
::
cerr
<<
std
::
endl
;
...
...
@@ -178,7 +178,7 @@ int otbAtmosphericCorrectionSequencementTest( int argc, char *argv[] )
std
::
string
sString
;
ValuesVectorType
vector
;
fin
.
open
(
argv
[
1
7
]);
fin
.
open
(
argv
[
1
6
]);
fin
>>
nbBands
;
for
(
unsigned
int
i
=
0
;
i
<
nbBands
;
i
++
)
{
...
...
@@ -205,18 +205,18 @@ int otbAtmosphericCorrectionSequencementTest( int argc, char *argv[] )
// Set parameters
dataAtmosphericCorrectionParameters
->
SetSolarZenithalAngle
(
static_cast
<
double
>
(
atof
(
argv
[
8
])
));
dataAtmosphericCorrectionParameters
->
SetSolarAzimutalAngle
(
static_cast
<
double
>
(
atof
(
argv
[
9
])));
dataAtmosphericCorrectionParameters
->
SetViewingZenithalAngle
(
static_cast
<
double
>
(
atof
(
argv
[
10
])));
dataAtmosphericCorrectionParameters
->
SetViewingAzimutalAngle
(
static_cast
<
double
>
(
atof
(
argv
[
1
1
])));
dataAtmosphericCorrectionParameters
->
SetSolarZenithalAngle
(
filterLuminanceToReflectance
->
GetZenithalSolarAngle
(
));
dataAtmosphericCorrectionParameters
->
SetSolarAzimutalAngle
(
static_cast
<
double
>
(
atof
(
argv
[
8
])));
dataAtmosphericCorrectionParameters
->
SetViewingZenithalAngle
(
static_cast
<
double
>
(
atof
(
argv
[
9
])));
dataAtmosphericCorrectionParameters
->
SetViewingAzimutalAngle
(
static_cast
<
double
>
(
atof
(
argv
[
1
0
])));
dataAtmosphericCorrectionParameters
->
SetMonth
(
month
);
dataAtmosphericCorrectionParameters
->
SetDay
(
day
);
dataAtmosphericCorrectionParameters
->
SetAtmosphericPressure
(
static_cast
<
double
>
(
atof
(
argv
[
1
2
])));
dataAtmosphericCorrectionParameters
->
SetWaterVaporAmount
(
static_cast
<
double
>
(
atof
(
argv
[
1
3
])));
dataAtmosphericCorrectionParameters
->
SetOzoneAmount
(
static_cast
<
double
>
(
atof
(
argv
[
1
4
])));
AerosolModelType
aerosolModel
=
static_cast
<
AerosolModelType
>
(
::
atoi
(
argv
[
1
5
]));
dataAtmosphericCorrectionParameters
->
SetAtmosphericPressure
(
static_cast
<
double
>
(
atof
(
argv
[
1
1
])));
dataAtmosphericCorrectionParameters
->
SetWaterVaporAmount
(
static_cast
<
double
>
(
atof
(
argv
[
1
2
])));
dataAtmosphericCorrectionParameters
->
SetOzoneAmount
(
static_cast
<
double
>
(
atof
(
argv
[
1
3
])));
AerosolModelType
aerosolModel
=
static_cast
<
AerosolModelType
>
(
::
atoi
(
argv
[
1
4
]));
dataAtmosphericCorrectionParameters
->
SetAerosolModel
(
aerosolModel
);
dataAtmosphericCorrectionParameters
->
SetAerosolOptical
(
static_cast
<
double
>
(
atof
(
argv
[
1
6
])));
dataAtmosphericCorrectionParameters
->
SetAerosolOptical
(
static_cast
<
double
>
(
atof
(
argv
[
1
5
])));
AtmosphericCorrectionParametersTo6SRadiativeTermsType
::
Pointer
filterAtmosphericCorrectionParametersTo6SRadiativeTerms
=
AtmosphericCorrectionParametersTo6SRadiativeTermsType
::
New
();
filterAtmosphericCorrectionParametersTo6SRadiativeTerms
->
SetInput
(
dataAtmosphericCorrectionParameters
);
...
...
@@ -235,8 +235,8 @@ int otbAtmosphericCorrectionSequencementTest( int argc, char *argv[] )
SurfaceAdjencyEffect6SCorrectionSchemeFilterType
::
Pointer
filterSurfaceAdjencyEffect6SCorrectionSchemeFilter
=
SurfaceAdjencyEffect6SCorrectionSchemeFilterType
::
New
();
filterSurfaceAdjencyEffect6SCorrectionSchemeFilter
->
SetAtmosphericRadiativeTerms
(
filterAtmosphericCorrectionParametersTo6SRadiativeTerms
->
GetOutput
());
filterSurfaceAdjencyEffect6SCorrectionSchemeFilter
->
SetWindowRadius
(
atoi
(
argv
[
1
8
]));
filterSurfaceAdjencyEffect6SCorrectionSchemeFilter
->
SetPixelSpacingInKilometers
(
static_cast
<
double
>
(
atof
(
argv
[
1
9
])));
filterSurfaceAdjencyEffect6SCorrectionSchemeFilter
->
SetWindowRadius
(
atoi
(
argv
[
1
7
]));
filterSurfaceAdjencyEffect6SCorrectionSchemeFilter
->
SetPixelSpacingInKilometers
(
static_cast
<
double
>
(
atof
(
argv
[
1
8
])));
filterSurfaceAdjencyEffect6SCorrectionSchemeFilter
->
SetZenithalViewingAngle
(
dataAtmosphericCorrectionParameters
->
GetViewingZenithalAngle
());
filterSurfaceAdjencyEffect6SCorrectionSchemeFilter
->
SetInput
(
filterReflectanceToSurfaceReflectanceImageFilter
->
GetOutput
());
...
...
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