@prefix CommandLineBinding: <https://w3id.org/cwl/cwl#CommandLineBinding/> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix DockerRequirement: <https://w3id.org/cwl/cwl#DockerRequirement/> .
@prefix Workflow: <https://w3id.org/cwl/cwl#Workflow/> .
@prefix sld:   <https://w3id.org/cwl/salad#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix CommandOutputBinding: <https://w3id.org/cwl/cwl#CommandOutputBinding/> .
@prefix ns1:   <http://commonwl.org/cwltool#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ScatterMethod: <https://w3id.org/cwl/cwl#ScatterMethod/> .
@prefix Dirent: <https://w3id.org/cwl/cwl#Dirent/> .
@prefix cwl:   <https://w3id.org/cwl/cwl#> .
@prefix ResourceRequirement: <https://w3id.org/cwl/cwl#ResourceRequirement/> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "This step splits a multi-facet region file into individual facet region files." ;
        rdfs:label               "Split Polygon Facets" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( "$(inputs.lofar_helpers.path)/ds9_helpers/split_polygon_facets.py" "--extra_boundary=0.0" ) ;
        cwl:baseCommand          ( "python3" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:hints                [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMin  1
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/lofar_helpers> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/h5parm> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/facet_regions> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/polygon_info> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/logfile> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/polygon_regions> ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry  "$(inputs.h5parm)" ] ;
                                   cwl:listing  [ cwl:entry  "$(inputs.facet_regions)" ]
                                 ] ;
        cwl:stderr               "split_polygons_err.log" ;
        cwl:stdout               "split_polygons.log" .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract>
        a                        cwl:Workflow ;
        rdfs:comment             "Use WSClean to predict and subtract model data, to split all facets into separate MeasurementSets." ;
        rdfs:label               "Facet subtraction" ;
        ns1:original_cwlVersion  "v1.2" ;
        Workflow:steps           <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/concat_facets> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/make_concat_parset> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_facet_layout> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_model_images> ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:inputs               <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/facetselfcal> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/ncpu> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/msin> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/h5parm> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/dysco_bitrate> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/lofar_helpers> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/copy_to_local_scratch> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/model_image_folder> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/polygon_info> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/polygon_regions> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/facet_ms> ;
        cwl:requirements         [ a  cwl:MultipleInputFeatureRequirement ] ;
        cwl:requirements         [ a  cwl:ScatterFeatureRequirement ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/model_image_folder>
        rdfs:comment      "Directory containing 1.2\" (or optionally other resolution) model images." ;
        cwl:inputBinding  [ CommandLineBinding:position  2 ;
                            CommandLineBinding:prefix    "--model_image_folder"
                          ] ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Generates DS9 facet layout for direction-dependent facet imaging." ;
        rdfs:label               "DS9 Facet Generator" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( "$( inputs.facetselfcal.path + '/submods/ds9facetgenerator.py' )" ) ;
        cwl:baseCommand          ( "python3" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMin  1
                                 ] ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/h5parm> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/pixelscale> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/facetselfcal> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/msin> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/regionfile> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/imsize> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/logfile> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/facet_regions> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry  "$(inputs.msin)" ] ;
                                   cwl:listing  [ cwl:entry  "$(inputs.h5parm)" ]
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stderr               "get_facet_layout_err.log" ;
        cwl:stdout               "get_facet_layout.log" .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/concat_facets/msin>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/facet_ms> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/copy_to_local_scratch>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/copy_to_local_scratch> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/h5parm>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/h5parm> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/subtracted_ms>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/subtracted_ms> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/ncpu>
        rdfs:comment  "Number of cores to use during the subtract." ;
        sld:default   16 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/facetselfcal>
        rdfs:comment  "facetselfcal directory." ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet>
        rdfs:label         "Predict a polygon back in empty MS" ;
        cwl:in             <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/polygon_info> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/copy_to_local_scratch> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/h5parm> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/ncpu> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/polygon_region> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/model_image_folder> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/lofar_helpers> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/subtracted_ms> ;
        cwl:out            <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/facet_ms> ;
        cwl:run            <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl> ;
        cwl:scatter        ( <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/subtracted_ms> <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/polygon_region> ) ;
        cwl:scatterMethod  ScatterMethod:flat_crossproduct .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/model_image_folder>
        rdfs:comment  "Folder with 1.2\" model images." ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl#makeparsets>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Generate direction concatenation parsets\n" ;
        rdfs:label               "Make concat parsets" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( "$( inputs.lofar_helpers.path + '/ms_helpers/concat_with_dummies.py' )" "--make_only_parset" "--only_basename" ) ;
        cwl:baseCommand          ( "python3" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl#makeparsets/dysco_bitrate> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl#makeparsets/lofar_helpers> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl#makeparsets/msin> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl#makeparsets/logfile> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl#makeparsets/concat_parsets> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ Dirent:writable  false ;
                                                  cwl:entry        "$(inputs.msin)"
                                                ]
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stderr               "python_concat_err.log" ;
        cwl:stdout               "python_concat.log" .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/make_concat_parset>
        rdfs:label  "Make concat parsets" ;
        cwl:in      <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/make_concat_parset/dysco_bitrate> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/make_concat_parset/lofar_helpers> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/make_concat_parset/msin> ;
        cwl:out     <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/make_concat_parset/concat_parsets> ;
        cwl:run     <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/concat_facets>
        rdfs:label   "Run DP3 parsets" ;
        cwl:in       <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/concat_facets/parset> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/concat_facets/msin> ;
        cwl:out      <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/concat_facets/msout> ;
        cwl:run      <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/dp3_parset.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/concat_facets/parset> ) .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean>
        rdfs:label   "Subtract complete FoV" ;
        cwl:in       <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/copy_to_local_scratch> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/model_image_folder> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/h5parm> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/ncpu> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/facet_regions> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/lofar_helpers> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/msin> ;
        cwl:out      <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/subtracted_ms> ;
        cwl:run      <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/msin> ) .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/logfile>
        rdfs:comment       "Log files from current step." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "predict_facet*.log" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "This step uses WSClean to subtract visibilities corresponding to model images." ;
        rdfs:label               "Subtract with WSClean" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( "$( inputs.lofar_helpers.path + '/subtract/subtract_with_wsclean.py' )" ) ;
        cwl:baseCommand          ( "python3" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:hints                [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMin  "$(inputs.ncpu)"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/facet_regions> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/model_image_folder> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/lofar_helpers> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/copy_to_local_scratch> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/msin> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/ncpu> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/h5parm> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/subtracted_ms> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/logfile> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  "${\n  // Set 'writable' on the \"msin\" entry only if copy_to_local_scratch is true.\n  let stagedListing = [\n    { entry: inputs.msin },\n    { entry: inputs.model_image_folder },\n    { entry: inputs.facet_regions },\n    { entry: inputs.h5parm }\n  ];\n  if (!inputs.copy_to_local_scratch) {\n    stagedListing[0].writable = true;\n  }\n  return stagedListing;\n}\n"
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stderr               "subtract_fov_err.log" ;
        cwl:stdout               "subtract_fov.log" .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/msin>
        rdfs:comment      "MeasurementSet" ;
        cwl:inputBinding  [ CommandLineBinding:position  2 ;
                            CommandLineBinding:prefix    "--ms"
                          ] ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/logfile>
        rdfs:comment       "Log files from current step." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "split_polygons*.log" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Uses WSClean to predict sources within a facet and adds the predicted visibilities to the input data." ;
        rdfs:label               "Predict with WSClean" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( "$( inputs.lofar_helpers.path + '/subtract/subtract_with_wsclean.py' )" "--applybeam" "--applycal" "--forwidefield" "--inverse" "--speedup_facet_subtract" "--cleanup_input_ms" ) ;
        cwl:baseCommand          ( "python3" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:hints                [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMin  "$(inputs.ncpu)"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/ncpu> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/polygon_region> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/subtracted_ms> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/h5parm> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/model_image_folder> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/copy_to_local_scratch> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/polygon_info> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/lofar_helpers> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/logfile> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/facet_ms> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  "${\n  // Set 'writable' on the \"subtracted_ms\" entry only if copy_to_local_scratch is true.\n  let stagedListing = [\n    { entry: inputs.subtracted_ms },\n    { entry: inputs.model_image_folder },\n    { entry: inputs.polygon_region },\n    { entry: inputs.h5parm },\n    { entry: inputs.polygon_info }\n  ];\n  if (!inputs.copy_to_local_scratch) {\n    stagedListing[0].writable = true;\n  }\n  return stagedListing;\n}\n"
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stderr               "predict_facet_err.log" ;
        cwl:stdout               "predict_facet.log" .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/h5parm>
        rdfs:comment  "Merged h5parms" ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/dp3_parset.cwl#dp3_parset>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Run DP3 with a parset" ;
        rdfs:label               "DP3 with parset" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "DP3" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:hints                [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMin  6
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/dp3_parset.cwl#dp3_parset/parset> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/dp3_parset.cwl#dp3_parset/msin> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/dp3_parset.cwl#dp3_parset/logfile> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/dp3_parset.cwl#dp3_parset/msout> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry  "$(inputs.msin)" ]
                                 ] ;
        cwl:stderr               "dp3_parset_err.log" ;
        cwl:stdout               "dp3_parset.log" .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_model_images/model_image_folder>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/model_image_folder> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_facet_layout/msin>
        cwl:source     <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/msin> ;
        cwl:valueFrom  "$(self[0])" .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/polygon_regions>
        rdfs:comment       "The facet regions." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "poly*.reg" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/model_image_folder>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_model_images/filtered_model_image_folder> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/ncpu>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/ncpu> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/polygon_info>
        cwl:outputSource  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/polygon_info> ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/ncpu>
        rdfs:comment  "Number of cores to use during predict and subtract." ;
        sld:default   16 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/lofar_helpers>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/lofar_helpers> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/h5parm>
        rdfs:comment      "The HDF5 solution file containing the solutions for prediction." ;
        cwl:inputBinding  [ CommandLineBinding:position  4 ;
                            CommandLineBinding:prefix    "--h5parm_predict"
                          ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/h5parm>
        rdfs:comment      "Multi-directional HDF5 file." ;
        cwl:inputBinding  [ CommandLineBinding:position  3 ;
                            CommandLineBinding:prefix    "--h5"
                          ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl#makeparsets/dysco_bitrate>
        rdfs:comment      "Number of bits per float used for columns containing visibilities." ;
        cwl:inputBinding  [ CommandLineBinding:position  2 ;
                            CommandLineBinding:prefix    "--bitrate" ;
                            CommandLineBinding:separate  true
                          ] ;
        sld:default       8 ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/lofar_helpers>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/lofar_helpers> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/make_concat_parset/dysco_bitrate>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/dysco_bitrate> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/h5parm>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/h5parm> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/lofar_helpers>
        rdfs:comment  "The lofar_helpers directory." ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/facet_ms>
        rdfs:comment       "MeasurementSet after predicting back facet model visibilities" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "facet*.ms" ] ;
        sld:type           cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_facet_layout>
        rdfs:label  "Get DS9 facet layout" ;
        cwl:in      <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_facet_layout/facetselfcal> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_facet_layout/h5parm> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_facet_layout/msin> ;
        cwl:out     <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_facet_layout/facet_regions> ;
        cwl:run     <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/facet_regions>
        rdfs:comment       "The output DS9 region file." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.regionfile)" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/copy_to_local_scratch>
        rdfs:comment  "Specific option for using --bypass-file-store on the Spider cluster to run predict and subtract on local scratch." ;
        sld:default   false ;
        sld:type      xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/polygon_region>
        rdfs:comment      "DS9 region file with facets for prediction." ;
        cwl:inputBinding  [ CommandLineBinding:position  3 ;
                            CommandLineBinding:prefix    "--region"
                          ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/regionfile>
        rdfs:comment      "Name of the output DS9 region file." ;
        cwl:inputBinding  [ CommandLineBinding:position  6 ;
                            CommandLineBinding:prefix    "--DS9regionout"
                          ] ;
        sld:default       "facets.reg" ;
        sld:type          xsd:string .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/subtracted_ms>
        rdfs:comment      "Input data in MeasurementSet format." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--mslist"
                          ] ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/facet_regions>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_facet_layout/facet_regions> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/facet_ms>
        cwl:outputSource  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/concat_facets/msout> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/facet_ms> ;
        cwl:pickValue     "first_non_null" ;
        sld:type          [ sld:items  cwl:Directory ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_facet_layout/facetselfcal>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/facetselfcal> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/msin>
        rdfs:comment      "MeasurementSet for source subtraction." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--mslist"
                          ] ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/polygon_region>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/polygon_regions> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/h5parm>
        rdfs:comment      "Multi-directional HDF5 file." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--h5"
                          ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_facet_layout/h5parm>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/h5parm> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/subtracted_ms>
        rdfs:comment       "MS subtracted data" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "subfov_*.ms" ] ;
        sld:type           cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/facet_regions>
        rdfs:comment      "The DS9 region file that defines the facets." ;
        cwl:inputBinding  [ CommandLineBinding:position  2 ;
                            CommandLineBinding:prefix    "--reg"
                          ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/dp3_parset.cwl#dp3_parset/logfile>
        rdfs:comment       "The files containing the stdout\nand stderr from the step.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "dp3_parset*.log" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/dp3_parset.cwl#dp3_parset/msout>
        rdfs:comment       "Output measurement set" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "*.concat.ms" ] ;
        sld:type           cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl#makeparsets/concat_parsets>
        rdfs:comment       "The output data with corrected\ndata in MeasurementSet format.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "*.parset" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/model_image_folder>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_model_images/filtered_model_image_folder> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/gather_model_images.cwl#gatherdis2>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Gather the correct WSClean model images from model_image_folder" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "gather_model_images.sh" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/gather_model_images.cwl#gatherdis2/model_image_folder> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/gather_model_images.cwl#gatherdis2/filtered_model_image_folder> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/msin>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/msin> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/polygon_info>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/polygon_info> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/msin>
        rdfs:comment  "Unaveraged MeasurementSets with coverage of the target directions." ;
        sld:type      [ sld:items  cwl:Directory ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/dp3_parset.cwl#dp3_parset/parset>
        rdfs:comment      "Parset for DP3" ;
        cwl:inputBinding  [ CommandLineBinding:position
                          0 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/lofar_helpers>
        rdfs:comment  "LOFAR helpers directory." ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl#makeparsets/logfile>
        rdfs:comment       "The files containing the stdout\nand stderr from the step.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "python_concat*.log" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/polygon_info>
        rdfs:comment  "CSV file with polygon information (RA/DEC of calibrator and facet centers and averaging factor)" ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/dp3_parset.cwl#dp3_parset/msin>
        rdfs:comment  "input MS" ;
        sld:type      [ sld:items  cwl:Directory ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/h5parm>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/h5parm> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/logfile>
        rdfs:comment       "log files from get_facet_layout" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "get_facet_layout*.log" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/lofar_helpers>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/lofar_helpers> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/lofar_helpers>
        rdfs:comment  "LOFAR helpers directory." ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/make_concat_parset/msin>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/facet_ms> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl#split_polygons/polygon_info>
        rdfs:comment       "Polygon CSV file." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "*.csv" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/pixelscale>
        rdfs:comment      "Pixel scale in arcseconds per pixel." ;
        cwl:inputBinding  [ CommandLineBinding:position  5 ;
                            CommandLineBinding:prefix    "--pixelscale"
                          ] ;
        sld:default       4e-01 ;
        sld:type          xsd:float .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/copy_to_local_scratch>
        rdfs:comment      "Specific option for using --bypass-file-store on the Spider cluster to run predict and subtract on local scratch." ;
        cwl:inputBinding  [ CommandLineBinding:position  5 ;
                            CommandLineBinding:prefix    "--copy_to_local_scratch" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:default       false ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_model_images>
        rdfs:label  "Get WSClean model images" ;
        cwl:in      <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_model_images/model_image_folder> ;
        cwl:out     <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_model_images/filtered_model_image_folder> ;
        cwl:run     <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/gather_model_images.cwl> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl#makeparsets/msin>
        rdfs:comment      "Input data in MeasurementSet format." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--msin" ;
                            CommandLineBinding:separate  true
                          ] ;
        sld:type          [ sld:items  cwl:Directory ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/logfile>
        rdfs:comment       "Log files from current step." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "subtract_fov*.log" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/ncpu>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/ncpu> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/gather_model_images.cwl#gatherdis2/model_image_folder>
        rdfs:comment      "Directory with model images" ;
        cwl:inputBinding  [ CommandLineBinding:position
                          1 ] ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/dysco_bitrate>
        rdfs:comment  "Number of bits per float used for columns containing visibilities." ;
        sld:default   8 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons>
        rdfs:label  "Split polygon file" ;
        cwl:in      <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/facet_regions> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/lofar_helpers> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/h5parm> ;
        cwl:out     <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/polygon_regions> , <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/polygon_info> ;
        cwl:run     <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/split_polygons.cwl> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/polygon_regions>
        cwl:outputSource  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/split_polygons/polygon_regions> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/predict_facet/copy_to_local_scratch>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/copy_to_local_scratch> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/model_image_folder>
        rdfs:comment      "Folder containing 1.2\" model images." ;
        cwl:inputBinding  [ CommandLineBinding:position  2 ;
                            CommandLineBinding:prefix    "--model_image_folder"
                          ] ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/concat_facets/parset>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/make_concat_parset/concat_parsets> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/subtract_fov_wsclean/facet_regions>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/get_facet_layout/facet_regions> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/facet_regions>
        rdfs:comment      "The DS9 region file that defines the facets for prediction." ;
        cwl:inputBinding  [ CommandLineBinding:position  3 ;
                            CommandLineBinding:prefix    "--facets_predict"
                          ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/h5parm>
        rdfs:comment      "HDF5 file containing the solutions for prediction." ;
        cwl:inputBinding  [ CommandLineBinding:position  4 ;
                            CommandLineBinding:prefix    "--h5parm_predict"
                          ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/make_concat_parsets.cwl#makeparsets/lofar_helpers>
        rdfs:comment  "Path to lofar_helpers directory." ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/subtract_fov_wsclean.cwl#subtract_with_wsclean/copy_to_local_scratch>
        rdfs:comment      "Specific option for using --bypass-file-store on the Spider cluster to run predict and subtract on local scratch." ;
        cwl:inputBinding  [ CommandLineBinding:position  5 ;
                            CommandLineBinding:prefix    "--copy_to_local_scratch" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:default       false ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/predict_facet.cwl#predict_facet/ncpu>
        rdfs:comment  "Number of cores to use during the subtract." ;
        sld:default   16 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/make_concat_parset/lofar_helpers>
        cwl:source  <https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/lofar_helpers> .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/get_facet_layout.cwl#get_facet_layout/imsize>
        rdfs:comment      "Image size in pixels (larger than image fov to help wsclean 1.2\" imaging at boundaries)." ;
        cwl:inputBinding  [ CommandLineBinding:position  4 ;
                            CommandLineBinding:prefix    "--imsize"
                          ] ;
        sld:default       25000 ;
        sld:type          xsd:int .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/steps/gather_model_images.cwl#gatherdis2/filtered_model_image_folder>
        rdfs:comment       "Directory with filtered WSClean model images" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "output_images" ] ;
        sld:type           cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/lofar_helpers>
        rdfs:comment  "LOFAR helpers directory." ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/c8adbbe43d59cea1b1bc31e2867258016f0b6a7b/workflows/facet_subtract.cwl#facet_subtract/facetselfcal>
        rdfs:comment  "facetselfcal directory." ;
        sld:type      cwl:Directory .
