Skip to content
Snippets Groups Projects

ADD: .gitlab-ci.yml

Merged Rémi Cresson requested to merge 9-add_ci into master
1 unresolved thread
1 file
+ 9
8
Compare changes
  • Side-by-side
  • Inline
+ 9
8
@@ -395,9 +395,9 @@ class Slicer(otbObject):
- an ExtractROI app that handles extracting bands and ROI and can be written to disk or used in pipelines
- in case the user only wants to extract one band, an expression such as "im1b#"
:param x: input
:param rows: number of rows
:param cols: number of columns
:param channels: number of channels
:param rows: rows slicing (e.g. 100:2000)
:param cols: columns slicing (e.g. 100:2000)
:param channels: channels, can be slicing, list or int
"""
# Initialize the app that will be used for writing the slicer
app = App('ExtractROI', {"in": x, 'mode': 'extent'}, propagate_pixel_type=True)
@@ -967,8 +967,9 @@ class Operation(otbObject):
def get_real_exp(self, fake_exp_bands):
"""
Generates the BandMathX expression
:param fake_exp_bands: BandMath expression
:return: exp_bands, exp
:param fake_exp_bands: list of fake expressions, each item corresponding to one band
:return exp_bands: BandMath expression, split in a list, each item corresponding to one band
:return exp: BandMath expression
"""
# Create a list of expression, each item corresponding to one band (e.g. ['im1b1 + 1', 'im1b2 + 1'])
exp_bands = []
@@ -1011,9 +1012,9 @@ class logicalOperation(Operation):
def create_fake_exp(self, operator, inputs, nb_bands=None):
"""
Create a dummy bandmath expression
:param operator: Operator
:param inputs: Inputs
:param nb_bands: number of channels
:param operator: (str) one of >, <, >=, <=, ==, !=, &, |
:param inputs: Can be App, Output, Input, Operation, Slicer, filepath, int or float
:param nb_bands: to specify the output nb of bands. Optional, should only be used for `?` operation
"""
# For any other operations, the output number of bands is the same as inputs
Loading