Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cresson Remi
NDVITimeSeries
Commits
cb1f7d8a
Commit
cb1f7d8a
authored
Feb 05, 2018
by
remi cresson
Browse files
ENH: the application resample rainfall time series using bicubic interpolation (spatial)
parent
81dc96d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/otbTimeSeriesIndexTrend.cxx
View file @
cb1f7d8a
...
...
@@ -146,6 +146,8 @@ private:
{
p
[
i
]
=
i
*
2
;
}
// p = {65,63,67,64,68,62,70,66,68,67,69,71};
// Y = [68,66,68,65,69,66,68,65,71,67,68,70]
std
::
cout
<<
f
(
p
)
<<
std
::
endl
;
}
...
...
@@ -476,7 +478,7 @@ private:
m_ResampleFilter
=
ResampleImageFilterType
::
New
();
m_ResampleFilter
->
SetInput
(
m_RFCumulReduceFilter
->
GetOutput
());
m_ResampleFilter
->
SetOutputOrigin
(
m_NDVIConcatener
->
GetOutput
()
->
GetOrigin
());
m_ResampleFilter
->
SetOutputSpacing
(
m_NDVIConcatener
->
GetOutput
()
->
GetSpacing
());
m_ResampleFilter
->
SetOutputSpacing
(
m_NDVIConcatener
->
GetOutput
()
->
GetS
ignedS
pacing
());
m_ResampleFilter
->
SetOutputSize
(
m_NDVIConcatener
->
GetOutput
()
->
GetLargestPossibleRegion
().
GetSize
());
m_ResampleFilter
->
SetInterpolator
(
linInterpolator
);
...
...
@@ -490,7 +492,7 @@ private:
// Compute residues
m_ResiduesFilter
=
ResiduesFilterType
::
New
();
m_ResiduesFilter
->
SetInput1
(
reducedNDVI
);
m_ResiduesFilter
->
SetInput2
(
m_R
FCumulReduc
eFilter
->
GetOutput
());
m_ResiduesFilter
->
SetInput2
(
m_R
esampl
eFilter
->
GetOutput
());
// Output residues
if
(
HasValue
(
"residues"
))
...
...
@@ -519,7 +521,7 @@ private:
// Correlation between NDVI and Rainfall
m_CorrelationFilter
=
PearsonCorrelationFilterType
::
New
();
m_CorrelationFilter
->
SetInput1
(
reducedNDVI
);
m_CorrelationFilter
->
SetInput2
(
m_R
FCumulReduc
eFilter
->
GetOutput
());
m_CorrelationFilter
->
SetInput2
(
m_R
esampl
eFilter
->
GetOutput
());
if
(
HasValue
(
"pearsoncoef"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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