Unverified Commit c9f0de76 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added parameter 'vswir_overlap_algorithm. Added EnPT with its minimal required...


Added parameter 'vswir_overlap_algorithm. Added EnPT with its minimal required version to requirements.txt. Updated HISTORY.rst and version info.
Signed-off-by: Daniel Scheffler's avatardanschef <daniel.scheffler@gfz-potsdam.de>
parent 8af586de
Pipeline #7880 passed with stages
in 1 minute and 27 seconds
......@@ -2,8 +2,14 @@
History
=======
0.5.0 (coming soon)
-------------------
0.4.2 (2020-03-26)
------------------
* added parameter 'vswir_overlap_algorithm'
0.4.1 (2020-03-26)
------------------
* nosetests are now properly working:
EnPT is called with the given GUI parameters and sends back a file containing all received parameters
......@@ -11,6 +17,7 @@ History
* fixed Linux implementation
* improved error messages in case not all software components are properly installed
0.4.0 (2020-03-25)
------------------
......
......@@ -167,6 +167,7 @@ class EnPTAlgorithm(QgsProcessingAlgorithm):
P_deadpix_P_interp_spectral = 'deadpix_P_interp_spectral'
P_deadpix_P_interp_spatial = 'deadpix_P_interp_spatial'
P_ortho_resampAlg = 'ortho_resampAlg'
P_vswir_overlap_algorithm = 'vswir_overlap_algorithm'
# # Output parameters
P_OUTPUT_RASTER = 'outraster'
......@@ -395,6 +396,14 @@ class EnPTAlgorithm(QgsProcessingAlgorithm):
multiLine=False,
optional=True))
self.addParameter(QgsProcessingParameterString(
name=self.P_vswir_overlap_algorithm,
description="Algorithm specifying how to deal with the spectral bands in the VNIR/SWIR spectral overlap "
"region ('order_by_wvl', 'average', 'vnir_only', 'swir_only')",
defaultValue='swir_only',
multiLine=False,
optional=True))
@staticmethod
def _run_cmd(cmd, qgis_feedback=None, **kwargs):
"""Execute external command and get its stdout, exitcode and stderr.
......
......@@ -22,6 +22,6 @@
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.4.1'
__versionalias__ = '20200326.01'
__version__ = '0.4.2'
__versionalias__ = '20200326.02'
__author__ = 'Daniel Scheffler'
......@@ -59,6 +59,7 @@ enpt_test_parameters = dict(
json_config=None,
n_lines_to_append=NULL,
ortho_resampAlg='bilinear',
vswir_overlap_algorithm='vnir_only',
output_dir='TEMPORARY_OUTPUT',
path_earthSunDist=None,
path_l1b_enmap_image='D:\\Daten\\Code\\python\\EnPT\\tests\\data\\EnMAP_Level_1B\\'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment