Commit 7dd17d57 authored by Gaetano Raffaele's avatar Gaetano Raffaele

FIX: bug in validation function

parent e48c4b5b
......@@ -670,7 +670,7 @@ def main(argv):
val_out = final_fld + '/VAL_samples_' + cfield + '.shp'
val_out_check = final_fld + '/VAL_samples_' + cfield + '_check.shp'
classify(val_list, 'p'+cfield, stat_file, model_file, val_out_tmp, var_list)
keepFields(val_out_tmp,val_out,['Segment_ID','p'+cfield])
keepFields(val_out_tmp,val_out,['Segment_ID',cfield,'p'+cfield])
shpd.DeleteDataSource(val_out_tmp)
txt_out = final_fld + '/VAL_samples.' + cfield + '.report.txt'
if val_mode == 0:
......
#BEGIN CONFIGURATION
[GENERAL CONFIGURATION]
BASEFOLDER: /home/raffaele/Data/Reunion/1617
EXTENT: /home/raffaele/Data/Reunion/Extent/contour974_epsg32740_buffer1000m.shp
REFERENCE: /home/raffaele/Data/Reunion/GT/BD_reunion_V1_app.shp
CHAINNAME: TEST1
[SENTINEL-2 CONFIGURATION]
#Naming
REFLECTANCE: STACK_*.tif
VALIDITYMASK: MASK_*.tif
GAPMASK: GAPMASK_*.tif
#Band Mapping
B01:
B02: 1
B03: 2
B04: 3
B05: 4
B06: 5
B07: 6
B08: 7
B8A: 8
B09:
B10:
B11: 9
B12: 10
#Selected bands and radiometric indices to compute as features
#current available indices : NDVI, NDWI, BRI, MNDVI, MNDWI, RNDVI (red edge)
FEAT: B02,B03,B04,B05,B06,B07,B08,B8A,B11,B12,NDVI,NDWI,BRI,MNDVI,MNDWI,RNDVI
#GapFilling Setup
#Mode NONE : no gapfilling (clouds filled with R-like rough-fix strategy)
#Mode BASE : gapfilling on reflectance values prior to feature computation --> NOT IMPLEMENTED
#Mode FEATURE : independent feature-wise gapfilling
GAPFILLINGMODE: FEATURE
MINVIEWS: 2
[LANDSAT 8 CONFIGURATION]
#Naming
REFLECTANCE: *_PS_TOA_*.TIF
VALIDITYMASK: *_MASK_HR_*.TIF
GAPMASK: *_GAPMASK_*.TIF
#Band Mapping
B1: 1
B2: 2
B3: 3
B4: 4
B5: 5
B6: 6
B7: 7
B9: 8
B10:
B11:
#Selected bands and radiometric indices to compute as features
#current available indices : NDVI, NDWI, BRI, MNDVI, MNDWI
FEAT: B1,B2,B3,B4,B5,B6,B7,NDVI,NDWI,BRI,MNDVI,MNDWI
#GapFilling Setup
#Mode NONE : no gapfilling (clouds filled with R-like rough-fix strategy)
#Mode BASE : gapfilling on reflectance values prior to feature computation --> NOT IMPLEMENTED
#Mode FEATURE : independent feature-wise gapfilling
GAPFILLINGMODE: FEATURE
MINVIEWS: 2
[VHR SCENE CONFIGURATION]
#Naming
PANFOLDER:
MSFOLDER: /home/raffaele/Data/Reunion/1617/SPOT6/READY
#Usage
TOA: NO
PANSHARPENING: NO
#Segmentation Parameters (Baatz & Schaepe)
SCALE: 120
SHAPE: 0.9
COMPACTNESS: 0.5
[VHR-SITS COREGISTRATION]
COREGISTER: YES
#Select band to be used for homologous points extraction
VHRBAND: 1
S2BAND: 3
L8BAND: 4
[TRAINING CONFIGURATION]
CLASSCODE: Code_N3
PARAMETERS: -classifier rf -classifier.rf.max 10 -classifier.rf.nbtrees 400
[CLASSIFICATION OUTPUT CONFIGURATION]
#Produce a full raster output: NO / VRT / FULL
RASTERIZE: VRT
[ADDITIONAL FEATURES]
USERFEATLIST:
#END CONFIGURATION
\ No newline at end of file
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