@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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 Dirent: <https://w3id.org/cwl/cwl#Dirent/> .
@prefix Workflow: <https://w3id.org/cwl/cwl#Workflow/> .
@prefix cwl:   <https://w3id.org/cwl/cwl#> .
@prefix sld:   <https://w3id.org/cwl/salad#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ResourceRequirement: <https://w3id.org/cwl/cwl#ResourceRequirement/> .
@prefix CommandOutputBinding: <https://w3id.org/cwl/cwl#CommandOutputBinding/> .
@prefix ns1:   <http://commonwl.org/cwltool#> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/msout>
        rdfs:comment       "Output data in MeasurementSet format." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.msout_name==\".\" ? inputs.msin.basename : inputs.msout_name)" ] ;
        sld:type           cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_prep_targ/file_list>
        cwl:linkMerge  "merge_flattened" ;
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/logfile> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/concat_logfiles_clip_A-team/file_prefix>
        sld:default  "clip_A-team" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags>
        rdfs:comment      "A JSON formatted file containing flagging\nstatistics of all the initial data.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags_join/flagged_fraction_antenna> ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags>
        rdfs:comment      "A JSON formatted file containing flagging\nstatistics of all the data after application of LINC solutions.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags_join/flagged_fraction_antenna> ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/logfiles>
        rdfs:comment      "The file containing the `stdin` and `stderr`\nfrom the `clip_A-team` workflow.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_clip_A-team/output> ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/parset>
        rdfs:comment      "DP3 parameter set file." ;
        cwl:inputBinding  [ CommandLineBinding:position
                          -1 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags_join/state>
        sld:default  "initial" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl#make_parset/flag_baselines>
        rdfs:comment  "The baselines to be flagged. Can be a pattern, e.g. \"[ CS013HBA*&&* ]\"." ;
        sld:type      sld:null ;
        sld:type      [ sld:items  xsd:string ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/linc_libraries>
        rdfs:comment  "Scripts and reference files from the\nLOFAR INitial Calibration pipeline.\nMust contain `Ateam_LBA_CC.skymodel`\nand `Ateamclipper.py`.\n" ;
        sld:type      [ sld:items  cwl:File ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/min_separation>
        rdfs:comment  "The minimal accepted angular distance\nto an A-team source on the sky in degrees.\n" ;
        sld:default   30 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/number_cores>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/number_cores> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags_join/flagged_fraction_dict>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/flag_statistics_before> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_prep_targ>
        rdfs:label  "concat_logfiles_prep_target" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_prep_targ/file_list> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_prep_targ/file_prefix> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_prep_targ/output> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/save_logfiles/sub_directory_name>
        sld:default  "setup" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/parset>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset/parset> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Checks whether the source is sufficiently\nfar away from A-team sources. Produces an\nimage of the plotted distance.\n" ;
        rdfs:label               "check Ateam separation" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "python3" "check_Ateam_separation.py" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:hints                [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry  "$(inputs.linc_libraries)" ]
                                 ] ;
        cwl:hints                [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/output_image_name> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/linc_libraries> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/min_separation> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/ms> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/output_image> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/output_json> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/logfile> ;
        cwl:stdout               "Ateam_separation.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/number_cores>
        rdfs:comment  "The minimum number of cores that should be\navailable for steps that require high I/O.\n" ;
        sld:default   12 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/parset>
        rdfs:comment  "Parameter set file used by DP3." ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/max_dp3_threads>
        rdfs:comment  "The maximum number of threads DP3\nshould use per process.\n" ;
        sld:default   5 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/phasesol>
        rdfs:comment  "The name of the target solution table to use from the solset input." ;
        sld:default   "TGSSphase" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl#make_parset/solset>
        rdfs:comment  "The solution tables generated by the LINC target pipeline\nin an HDF5 format.\n" ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_prep_targ/file_prefix>
        sld:default  "dp3_prep_targ" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/number_cores>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/number_cores> .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl#make_parset>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Creates a DP3 parameter set file." ;
        rdfs:label               "Make parset" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "cat" "input.parset" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl#make_parset/solset> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl#make_parset/phasesol> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl#make_parset/flag_baselines> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl#make_parset/station_mismatch> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl#make_parset/parset> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry      "steps                               =   [filter,count1,flag,flagamp,applyPA,applybandpass,applyclock,applybeam,applyRM,applyphase,count2]\n#\nnumthreads                          =   2\n#\ncount1.type                         =   counter\n#\ncount2.type                         =   counter\n#\nmsin.datacolumn                     =   DATA\nmsin.baseline                       =   $(inputs.station_mismatch)\n#\nmsout                               =   .\nmsout.storagemanager                =   \"Dysco\"\nmsout.datacolumn                    =   DATA\nmsout.writefullresflag              =   False\n#\nflag.type                           =   preflagger\nflag.baseline                       =   $(inputs.flag_baselines)\n#\nflagamp.type                        =   preflagger\nflagamp.amplmin                     =   1e-30\n#p\nfilter.type                         =   filter\nfilter.baseline                     =   $(inputs.station_mismatch)\nfilter.remove                       =   true\n#\napplyPA.type                        =   applycal\napplyPA.correction                  =   polalign\napplyPA.solset                      =   calibrator\n#\napplybandpass.type                  =   applycal\napplybandpass.correction            =   bandpass\napplybandpass.updateweights         =   true\napplybandpass.solset                =   calibrator\n#\napplyclock.type                     =   applycal\napplyclock.correction               =   clock\napplyclock.solset                   =   calibrator\n#\napplybeam.type                      =   applybeam\napplybeam.usechannelfreq            =   true\napplybeam.updateweights             =   true\n#\napplyRM.type                        =   applycal\napplyRM.correction                  =   RMextract\napplyRM.solset                      =   target\n#\napplyphase.type                     =   applycal\napplyphase.correction               =   $(inputs.phasesol)\napplyphase.solset                   =   target\n#\n" ;
                                                  cwl:entryname  "input.parset"
                                                ]
                                 ] ;
        cwl:requirements         [ a  cwl:ShellCommandRequirement ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stdout               "dp3.parset" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join/filter_station>
        rdfs:comment  "A regular expression pattern for station names to select." ;
        sld:default   "*&" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/msout>
        rdfs:comment      "The input data in MeasurementSet format after\nthe LINC solutions have been applied and A-team\nsources have been removed.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/msout> ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/max_dp3_threads>
        rdfs:comment      "The number of threads per DP3 process." ;
        cwl:inputBinding  [ CommandLineBinding:prefix      "numthreads=" ;
                            CommandLineBinding:separate    false ;
                            CommandLineBinding:shellQuote  false
                          ] ;
        sld:default       5 ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/msin_datacolumn>
        rdfs:comment      "Data column of the MeasurementSet\nfrom which input data is read.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position    0 ;
                            CommandLineBinding:prefix      "msin.datacolumn=" ;
                            CommandLineBinding:separate    false ;
                            CommandLineBinding:shellQuote  false
                          ] ;
        sld:default       "DATA" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch/msin>
        rdfs:comment      "Input MeasurementSets." ;
        cwl:inputBinding  [ CommandLineBinding:position
                          0 ] ;
        sld:type          [ sld:items  cwl:Directory ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/msin>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/msout> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/max_dp3_threads>
        rdfs:comment  "The maximum number of threads DP3 should use per process." ;
        sld:default   5 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/logdir>
        rdfs:comment      "The directory containing all the stdin and\nstderr files from the workflow.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/save_logfiles/dir> ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/flag_baselines>
        rdfs:comment  "The baselines to be flagged by DP3.\nCan be a pattern, e.g. [ CS013HBA*&&* ].\n" ;
        sld:type      sld:null ;
        sld:type      [ sld:items  xsd:string ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/ms>
        rdfs:comment      "An array of input data in MeasurementSet format." ;
        cwl:inputBinding  [ CommandLineBinding:position
                          0 ] ;
        sld:type          cwl:Directory ;
        sld:type          [ sld:items  cwl:Directory ;
                            sld:type   sld:array
                          ] .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collect_linc_libraries.cwl#linc>
        rdfs:comment  "The installation directory of the\nLOFAR INitial Calibration pipeline.\n" ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset/flag_baselines>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/flag_baselines> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_clip_A-team>
        rdfs:label  "concat_logfiles_clip_A-team" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_clip_A-team/file_list> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_clip_A-team/file_prefix> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_clip_A-team/output> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/collect_linc_libraries/library>
        sld:default  "scripts/Ateamclipper.py" , "scripts/check_Ateam_separation.py" , "skymodels/Ateam_LBA_CC.skymodel" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch/solset_name>
        rdfs:comment  "Name of the solution set." ;
        sld:default   "vlbi" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/flag_statistics_filename_before>
        rdfs:comment      "The filename for the flagging\ninformation of the initial data.\n" ;
        cwl:inputBinding  [ CommandLineBinding:prefix    "count1.jsonfilename=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:default       "out1.json" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/sources>
        rdfs:comment      "Labels of the skymodel patches to\nuse to simulate visibilities.\n" ;
        cwl:inputBinding  [ CommandLineBinding:itemSeparator
                                    "," ;
                            CommandLineBinding:position    0 ;
                            CommandLineBinding:prefix      "clipper.sources=" ;
                            CommandLineBinding:separate    false ;
                            CommandLineBinding:shellQuote  false ;
                            cwl:valueFrom                  "\"$(self)\""
                          ] ;
        sld:default       "CasA_4_patch" , "CygAGG" , "TauAGG" , "VirA_4_patch" ;
        sld:type          sld:null ;
        sld:type          [ sld:items  xsd:string ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/linc_libraries>
        rdfs:comment  "Scripts and reference files from the\nLOFAR INitial Calibration pipeline.\nMust contain `Ateam_LBA_CC.skymodel`.\n" ;
        sld:type      [ sld:items  cwl:File ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/msin>
        rdfs:comment  "input data in MeasurementSet format." ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset>
        cwl:in   <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset/phasesol> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset/station_mismatch> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset/flag_baselines> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset/solset> ;
        cwl:out  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset/parset> ;
        cwl:run  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collect_linc_libraries.cwl#library>
        rdfs:comment      "The paths of the necessary libraries\nwith respect to the LINC root directory.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            cwl:valueFrom                "$(inputs.linc.path)/$(self)"
                          ] ;
        sld:type          xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/output>
        rdfs:comment       "A text file containing flagging fraction statistics." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "Ateamclipper.json" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/parset>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/parset> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collectfiles.cwl#collectfiles/files>
        rdfs:comment      "The files or directories that should be placed\nin the output directory.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position
                          0 ] ;
        sld:type          cwl:File ;
        sld:type          [ sld:items  cwl:Directory , cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup>
        a                        cwl:Workflow ;
        rdfs:comment             "Applies the LINC calibrator and target solutions to the\ninput data and clips A-team contributions based on\npredicted skymodel data.\n" ;
        rdfs:label               "VLBI setup" ;
        ns1:original_cwlVersion  "v1.2" ;
        Workflow:steps           <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/collect_linc_libraries> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/save_logfiles> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags_join> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/concat_logfiles_clip_A-team> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags_join> ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/number_cores> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/phasesol> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/filter_baselines> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/flag_baselines> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/solset> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/min_separation> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/max_dp3_threads> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/linc> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_Ateam_separation_file> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/parset> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/logdir> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags> ;
        cwl:requirements         [ a  cwl:ScatterFeatureRequirement ] ;
        cwl:requirements         [ a  cwl:MultipleInputFeatureRequirement ] ;
        cwl:requirements         [ a  cwl:SubworkflowFeatureRequirement ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/msin>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/msin> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch/msin>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/msin> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/flag_statistics_before>
        rdfs:comment      "A JSON formatted file containing flagging\nstatistics of the initial data.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/flag_statistics_before> ;
        sld:type          xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/linc_libraries>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/collect_linc_libraries/libraries> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/number_cores>
        rdfs:comment  "The minimum number of cores that should be available for steps that require high I/O." ;
        sld:default   12 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl#make_parset/station_mismatch>
        rdfs:comment  "Filter of mismatches between solset and the input data." ;
        sld:default   "*&" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collect_linc_libraries.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "This step is intended to extract a list of\nfiles from the LOFAR INitial Calibration\n(LINC) pipeline, which can then be used by\nthe VLBI pipeline.\n" ;
        rdfs:label               "Collect LINC libraries" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( "-t" "$(runtime.outdir)" ) ;
        cwl:baseCommand          ( "cp" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collect_linc_libraries.cwl#linc> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collect_linc_libraries.cwl#library> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collect_linc_libraries.cwl#libraries> ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/flag_statistics_after>
        rdfs:comment       "The flagging information of the output data as a parsed JSON string.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob  "$(inputs.flag_statistics_filename_after)" ;
                             CommandOutputBinding:outputEval
                                     "$(JSON.parse(self[0].contents).flagged_fraction_dict)" ;
                             cwl:loadContents           true
                           ] ;
        sld:type           xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl#concatfiles/file_suffix>
        rdfs:comment  "The output file extension." ;
        sld:default   "log" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch/filter_out>
        rdfs:comment       "A JSON formatted filter command containing\nthe station names to filter.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob  "out.json" ;
                             CommandOutputBinding:outputEval
                                     "$(JSON.parse(self[0].contents).filter_out)" ;
                             cwl:loadContents           true
                           ] ;
        sld:type           xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/save_logfiles/files>
        cwl:linkMerge  "merge_flattened" ;
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/concat_logfiles_clip_A-team/output> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch/logfile> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch/filter_baselines>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/filter_baselines> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/msout_name>
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/msin> ;
        cwl:valueFrom  "$(self.basename)" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/max_dp3_threads>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/max_dp3_threads> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset/phasesol>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/phasesol> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch/solset>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/solset> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/concat_logfiles_clip_A-team>
        rdfs:label  "concat_logfiles_clip_A-team" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/concat_logfiles_clip_A-team/file_list> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/concat_logfiles_clip_A-team/file_prefix> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/concat_logfiles_clip_A-team/output> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collectfiles.cwl#collectfiles/dir>
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.start_directory === null ? inputs.sub_directory_name: inputs.start_directory.basename)\n" ] ;
        sld:type           cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl#make_parset/phasesol>
        rdfs:comment  "The type of correction to perform." ;
        sld:default   "TGSSphase" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/msin>
        cwl:linkMerge  "merge_flattened" ;
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/msin> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/parset>
        rdfs:comment      "The parameter set used by DP3.\nUsed for debugging purposes.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset/parset> ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/save_logfiles>
        rdfs:label  "save_logfiles" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/save_logfiles/files> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/save_logfiles/sub_directory_name> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/save_logfiles/dir> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collectfiles.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags_join/flagged_fraction_dict>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/flag_statistics_after> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collectfiles.cwl#collectfiles/start_directory>
        rdfs:comment  "A string of the directory that\nshould contain the output directory.\n" ;
        sld:type      cwl:Directory , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl#concatfiles>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Takes an array of text files and concatenates them.\nThe output file can be given a file name and, optionally,\na suffix.\n" ;
        rdfs:label               "Concatenate files" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "bash" "bulk_rename.sh" ) ;
        cwl:baseCommand          ( "bash" "bulk_rename.sh" ) ;
        cwl:baseCommand          ( "bash" "bulk_rename.sh" ) ;
        cwl:baseCommand          ( "bash" "bulk_rename.sh" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl#concatfiles/file_prefix> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl#concatfiles/file_list> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl#concatfiles/file_suffix> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl#concatfiles/output> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ Dirent:writable  false ;
                                                  cwl:entry        "#!/bin/bash\nset -e\nFILE_LIST=(\"\\${@}\")\nFILE_PREFIX=$(inputs.file_prefix)\nFILE_SUFFIX=$(inputs.file_suffix === null ? '' : inputs.file_suffix)\ncat \"\\${FILE_LIST[@]}\" > $FILE_PREFIX.$FILE_SUFFIX\n" ;
                                                  cwl:entryname    "bulk_rename.sh"
                                                ]
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ Dirent:writable  false ;
                                                  cwl:entry        "#!/bin/bash\nset -e\nFILE_LIST=(\"\\${@}\")\nFILE_PREFIX=$(inputs.file_prefix)\nFILE_SUFFIX=$(inputs.file_suffix === null ? '' : inputs.file_suffix)\ncat \"\\${FILE_LIST[@]}\" > $FILE_PREFIX.$FILE_SUFFIX\n" ;
                                                  cwl:entryname    "bulk_rename.sh"
                                                ]
                                 ] ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ Dirent:writable  false ;
                                                  cwl:entry        "#!/bin/bash\nset -e\nFILE_LIST=(\"\\${@}\")\nFILE_PREFIX=$(inputs.file_prefix)\nFILE_SUFFIX=$(inputs.file_suffix === null ? '' : inputs.file_suffix)\ncat \"\\${FILE_LIST[@]}\" > $FILE_PREFIX.$FILE_SUFFIX\n" ;
                                                  cwl:entryname    "bulk_rename.sh"
                                                ]
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ Dirent:writable  false ;
                                                  cwl:entry        "#!/bin/bash\nset -e\nFILE_LIST=(\"\\${@}\")\nFILE_PREFIX=$(inputs.file_prefix)\nFILE_SUFFIX=$(inputs.file_suffix === null ? '' : inputs.file_suffix)\ncat \"\\${FILE_LIST[@]}\" > $FILE_PREFIX.$FILE_SUFFIX\n" ;
                                                  cwl:entryname    "bulk_rename.sh"
                                                ]
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Compares the lists of stations contained in MeasurementSets\nagainst the list of station in the solution file and ensures\nboth are consistent.\n" ;
        rdfs:label               "Check station mismatch" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "python3" "compare_station_list.py" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch/filter_baselines> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch/solset_name> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch/solset> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch/filter_out> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch/logfile> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry      "import sys\nimport json\nimport yaml\nimport os\nfrom compareStationListVLBI import plugin_main as compareStationList\n\nmss = sys.argv[1:]\ntry:\n    inputs = json.loads(r\"\"\"$(inputs)\"\"\")\nexcept:\n    inputs = yaml.loads(r\"\"\"$(inputs)\"\"\")\nh5parmdb = inputs['solset']['path']\nsolset_name = inputs['solset_name']\nfilter = inputs['filter_baselines']\nprint(mss)\n\noutput = compareStationList(mss,\n                            h5parmdb = h5parmdb,\n                            solset_name = solset_name,\n                            filter = filter)\n\nfilter_out = output['filter']\ncwl_output = {\"filter_out\": filter_out}\n\nwith open('./out.json', 'w') as fp:\n    json.dump(cwl_output, fp)\n" ;
                                                  cwl:entryname  "compare_station_list.py"
                                                ]
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stderr               "compareStationMismatch_err.log" ;
        cwl:stdout               "compareStationMismatch.log" .

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

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join/state>
        rdfs:comment  "State information for the collection of antenna statistics." ;
        sld:default   "NONE" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch/solset>
        rdfs:comment  "The solution set from the LINC pipeline." ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join/refant>
        rdfs:comment       "The reference antenna, containing\nthe least amount of flagged data.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob  "out.json" ;
                             CommandOutputBinding:outputEval
                                     "$(JSON.parse(self[0].contents).refant)" ;
                             cwl:loadContents           true
                           ] ;
        cwl:outputBinding  [ CommandOutputBinding:glob  "out.json" ;
                             CommandOutputBinding:outputEval
                                     "$(JSON.parse(self[0].contents).refant)" ;
                             cwl:loadContents           true
                           ] ;
        sld:type           xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join/flagged_fraction_dict>
        rdfs:comment  "A list of flagged antennas per MeasurementSet." ;
        sld:type      sld:null ;
        sld:type      [ sld:items  xsd:string ;
                        sld:type   sld:array
                      ] ;
        sld:type      [ sld:items  xsd:string ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/solset>
        rdfs:comment  "The solution tables generated by the LINC target pipeline\nin an HDF5 format.\n" ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/linc>
        rdfs:comment  "The installation directory for the\nLOFAR INitial calibration pipeline.\n" ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_cliptar/file_list>
        cwl:linkMerge  "merge_flattened" ;
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/logfile> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl#check_station_mismatch/filter_baselines>
        rdfs:comment  "Filter constrains for the dp3_prep_target step." ;
        sld:default   "*&" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_make_parset.cwl#make_parset/parset>
        rdfs:comment       "A file containing input parameters for a call to DP3." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "dp3.parset" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_cliptar>
        rdfs:label  "concat_logfiles_cliptar" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_cliptar/file_list> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_cliptar/file_prefix> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_cliptar/output> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/output_image>
        rdfs:comment       "The output image containing the plotted distances." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.output_image_name)" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags_join>
        rdfs:label  "prep_target_flags_join" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags_join/flagged_fraction_dict> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags_join/filter_station> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags_join/state> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags_join/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags_join/flagged_fraction_antenna> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/filter_baselines>
        rdfs:comment  "The default filter constraints\nfor the dp3_prep_target step.\n" ;
        sld:default   "*&" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/solset>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/solset> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags_join/state>
        sld:default  "prep_target" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch>
        rdfs:label  "check_station_mismatch" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch/filter_baselines> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch/solset> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch/filter_out> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch/logfile> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_station_mismatch.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation/ms>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/msin> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/number_cores>
        rdfs:comment  "Number of cores to use per job for tasks with\nhigh I/O or memory.\n" ;
        sld:default   12 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/solset>
        rdfs:comment  "The solution tables generated by the LINC target pipeline in an HDF5 format." ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset/station_mismatch>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_station_mismatch/filter_out> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation/linc_libraries>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/collect_linc_libraries/libraries> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/output_json>
        rdfs:comment       "Distances to A-team sources in JSON format." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "*.json" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/flag_statistics_filename_after>
        rdfs:comment      "The filename for the flagging\ninformation of the output data.\n" ;
        cwl:inputBinding  [ CommandLineBinding:prefix    "count2.jsonfilename=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:default       "out2.json" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/dp3_make_parset/solset>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/solset> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collectfiles.cwl#collectfiles/sub_directory_name>
        rdfs:comment  "A string that determines\nthe name of the output directory.\n" ;
        sld:type      xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team>
        a                        cwl:Workflow ;
        rdfs:comment             "This workflow performs the actual application of\nLINC solutions to the data. It then simulates\nA-team visibilities based on the given catalogue,\nand clips the resulting A-team sources from the data.\n" ;
        rdfs:label               "Clip A-team" ;
        ns1:original_cwlVersion  "v1.2" ;
        Workflow:steps           <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_prep_targ> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_clip_A-team> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_cliptar> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target> ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/max_dp3_threads> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/linc_libraries> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/number_cores> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/solset> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/parset> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/flag_statistics_after> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/flag_statistics_before> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/logfiles> ;
        cwl:requirements         [ a  cwl:StepInputExpressionRequirement ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team>
        rdfs:label   "clip_A-team" ;
        cwl:in       <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/solset> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/linc_libraries> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/max_dp3_threads> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/parset> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/number_cores> ;
        cwl:out      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/flag_statistics_before> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/flag_statistics_after> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/logfiles> ;
        cwl:run      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/msin> ) .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/msin>
        rdfs:comment      "Input data in MeasurementSet format." ;
        cwl:inputBinding  [ CommandLineBinding:position    0 ;
                            CommandLineBinding:prefix      "msin=" ;
                            CommandLineBinding:separate    false ;
                            CommandLineBinding:shellQuote  false
                          ] ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/collect_flag_statistics_before>
        rdfs:comment      "Boolean to determine whether to write flagging\ninformation of the data to a file in JSON format.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "count1.savetojson=True"
                          ] ;
        sld:default       true ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Selects station data from a dictionary, determines\nand outputs the fraction of flagged data and the\nstation name with the least amount of flagged data.\n" ;
        rdfs:label               "Find Reference Antenna join" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "python3" "findRefAnt_join.py" ) ;
        cwl:baseCommand          ( "python3" "findRefAnt_join.py" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join/filter_station> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join/state> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join/flagged_fraction_dict> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join/flagged_fraction_antenna> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join/refant> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry      "import sys\nimport json\nimport re\nimport ast\n\ninputs = json.loads(r\"\"\"$(inputs)\"\"\")\nwith open('input.json', 'r') as f_stream:\n    flagged_fraction_dict_list = json.load(f_stream)\nfilter_station = inputs['filter_station']\nno_station_selected = True\n\nwhile no_station_selected:\n    print('Applying station filter ' + str(filter_station))\n    flagged_fraction_data = {}\n    no_station_selected = False\n    for flagged_fraction_dict in flagged_fraction_dict_list:\n        entry = ast.literal_eval(flagged_fraction_dict)\n        antennas = entry.keys()\n        selected_stations = [ station_name for station_name in antennas if re.match(filter_station, station_name) ]\n        if len(selected_stations) == 0:\n            print('No stations left after filtering. Station(s) do(es) not exist in all subbands. No filter is used.')\n            filter_station = ''\n            no_station_selected = True\n            break\n        for antenna in selected_stations:\n            try:\n                flagged_fraction_data[antenna].append(float(entry[antenna]))\n            except KeyError:\n                flagged_fraction_data[antenna] = [float(entry[antenna])]\n\nflagged_fraction_list = []\nsorted_stations = sorted(flagged_fraction_data.keys())\n\nflagged_fraction_antenna = {}\n\nfor antenna in sorted_stations:\n    flagged_fraction = sum(flagged_fraction_data[antenna]) / len(flagged_fraction_data[antenna])\n    flagged_fraction_list.append(flagged_fraction)\n    flagged_fraction_antenna[antenna] = flagged_fraction\n    try:\n        flagged_fraction_data[flagged_fraction].append(antenna)\n    except KeyError:\n        flagged_fraction_data[flagged_fraction] = [antenna]\n\nmin_flagged_fraction = min(flagged_fraction_list)\nrefant = flagged_fraction_data[min_flagged_fraction][0]\nprint('Selected station ' + str(refant) + ' as reference antenna. Fraction of flagged data is ' + '{:>3}'.format('{:.1f}'.format(100 * min_flagged_fraction) + '%'))\n\nflagged_fraction_antenna['state'] = inputs['state']\n\ncwl_output = {'refant': str(refant)}\n\nwith open('./out.json', 'w') as fp:\n    json.dump(cwl_output, fp)\n\nwith open('./flagged_fraction_antenna.json', 'w') as fp:\n    json.dump(flagged_fraction_antenna, fp)\n" ;
                                                  cwl:entryname  "findRefAnt_join.py"
                                                ] ;
                                   cwl:listing  [ cwl:entry      "$(inputs.flagged_fraction_dict)" ;
                                                  cwl:entryname  "input.json"
                                                ]
                                 ] ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry      "$(inputs.flagged_fraction_dict)" ;
                                                  cwl:entryname  "input.json"
                                                ] ;
                                   cwl:listing  [ cwl:entry      "import sys\nimport json\nimport re\nimport ast\n\ninputs = json.loads(r\"\"\"$(inputs)\"\"\")\nwith open('input.json', 'r') as f_stream:\n    flagged_fraction_dict_list = json.load(f_stream)\nfilter_station = inputs['filter_station']\nno_station_selected = True\n\nwhile no_station_selected:\n    print('Applying station filter ' + str(filter_station))\n    flagged_fraction_data = {}\n    no_station_selected = False\n    for flagged_fraction_dict in flagged_fraction_dict_list:\n        entry = ast.literal_eval(flagged_fraction_dict)\n        antennas = entry.keys()\n        selected_stations = [ station_name for station_name in antennas if re.match(filter_station, station_name) ]\n        if len(selected_stations) == 0:\n            print('No stations left after filtering. Station(s) do(es) not exist in all subbands. No filter is used.')\n            filter_station = ''\n            no_station_selected = True\n            break\n        for antenna in selected_stations:\n            try:\n                flagged_fraction_data[antenna].append(float(entry[antenna]))\n            except KeyError:\n                flagged_fraction_data[antenna] = [float(entry[antenna])]\n\nflagged_fraction_list = []\nsorted_stations = sorted(flagged_fraction_data.keys())\n\nflagged_fraction_antenna = {}\n\nfor antenna in sorted_stations:\n    flagged_fraction = sum(flagged_fraction_data[antenna]) / len(flagged_fraction_data[antenna])\n    flagged_fraction_list.append(flagged_fraction)\n    flagged_fraction_antenna[antenna] = flagged_fraction\n    try:\n        flagged_fraction_data[flagged_fraction].append(antenna)\n    except KeyError:\n        flagged_fraction_data[flagged_fraction] = [antenna]\n\nmin_flagged_fraction = min(flagged_fraction_list)\nrefant = flagged_fraction_data[min_flagged_fraction][0]\nprint('Selected station ' + str(refant) + ' as reference antenna. Fraction of flagged data is ' + '{:>3}'.format('{:.1f}'.format(100 * min_flagged_fraction) + '%'))\n\nflagged_fraction_antenna['state'] = inputs['state']\n\ncwl_output = {'refant': str(refant)}\n\nwith open('./out.json', 'w') as fp:\n    json.dump(cwl_output, fp)\n\nwith open('./flagged_fraction_antenna.json', 'w') as fp:\n    json.dump(flagged_fraction_antenna, fp)\n" ;
                                                  cwl:entryname  "findRefAnt_join.py"
                                                ]
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stderr               "findRefAnt_err.log" ;
        cwl:stdout               "findRefAnt.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/collect_linc_libraries>
        rdfs:label   "Collect neccesary LINC libraries" ;
        cwl:in       <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/collect_linc_libraries/library> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/collect_linc_libraries/linc> ;
        cwl:out      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/collect_linc_libraries/libraries> ;
        cwl:run      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collect_linc_libraries.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/collect_linc_libraries/library> ) .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/concat_logfiles_clip_A-team/file_list>
        cwl:linkMerge  "merge_flattened" ;
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/logfiles> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/flag_statistics_before>
        rdfs:comment       "The flagging information of the initial data as a parsed JSON string.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob  "$(inputs.flag_statistics_filename_before)" ;
                             CommandOutputBinding:outputEval
                                     "$(JSON.parse(self[0].contents).flagged_fraction_dict)" ;
                             cwl:loadContents           true
                           ] ;
        sld:type           xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/msout>
        rdfs:comment       "Output data in MeasurementSet format." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.msin.basename)" ] ;
        sld:type           cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/msout_name>
        rdfs:comment      "The name of the output MeasurementSet.\nDefaults to overwriting the input MeasurementSet.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "msout=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:default       "." ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl#findRefAnt_join/flagged_fraction_antenna>
        rdfs:comment       "The fraction of flagged data per\nantenna in a CSV format.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "flagged_fraction_antenna.json" ] ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "flagged_fraction_antenna.json" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/flag_statistics_after>
        rdfs:comment      "A JSON formatted file containing flagging statistics\nof the data after application of LINC solutions\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/flag_statistics_after> ;
        sld:type          xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/solset>
        rdfs:comment  "The solution tables generated by the LINC\ntarget pipeline in an HDF5 format.\n" ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl#concatfiles/file_list>
        rdfs:comment      "The list of files to be concatenated." ;
        cwl:inputBinding  [ CommandLineBinding:position
                          0 ] ;
        cwl:inputBinding  [ CommandLineBinding:position
                          0 ] ;
        cwl:inputBinding  [ CommandLineBinding:position
                          0 ] ;
        cwl:inputBinding  [ CommandLineBinding:position
                          0 ] ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/collect_flag_statistics_after>
        rdfs:comment      "Boolean to determine whether to write flagging\ninformation of the output data to a file in JSON format.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "count2.savetojson=True"
                          ] ;
        sld:default       true ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags_join>
        rdfs:label  "initial_flags_join" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags_join/filter_station> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags_join/flagged_fraction_dict> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags_join/state> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags_join/flagged_fraction_antenna> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags_join/logfile> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/findRefAnt_join.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/msin>
        rdfs:comment  "The raw input data in a MeasurementSet\nversion 2.0 format.\n" ;
        sld:type      [ sld:items  cwl:Directory ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/linc_libraries>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/linc_libraries> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/solset>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/solset> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/min_separation>
        rdfs:comment      "The minimal accepted distance to an\nA-team source on the sky in degrees.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--min_separation"
                          ] ;
        sld:type          xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation/min_separation>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/min_separation> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl#concatfiles/file_prefix>
        rdfs:comment  "The output file name." ;
        sld:type      xsd:string .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper>
        cwl:in   <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/linc_libraries> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/number_cores> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/max_dp3_threads> ;
        cwl:out  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/output> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/logfile> ;
        cwl:run  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target>
        rdfs:label  "dp3_prep_target" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/parset> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/msout_name> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/solset> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/flag_statistics_before> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/dp3_prep_target/flag_statistics_after> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_Ateam_separation_file>
        rdfs:comment      "JSON formatted file containing the A-team sources\nwithin min_separation degrees of the target.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation/output_json> ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation>
        rdfs:label  "check_Ateam_separation" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation/min_separation> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation/linc_libraries> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation/ms> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation/output_image> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation/output_json> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/check_ateam_separation/logfile> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collectfiles.cwl#collectfiles>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "This step stores an array of files\nor directories in an a directory.\n" ;
        rdfs:label               "Collect files" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "bash" "collect_files.sh" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collectfiles.cwl#collectfiles/start_directory> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collectfiles.cwl#collectfiles/sub_directory_name> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collectfiles.cwl#collectfiles/files> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collectfiles.cwl#collectfiles/dir> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ Dirent:writable  false ;
                                                  cwl:entry        "#!/bin/bash\nset -e\nBASE_DIR=\"$(inputs.start_directory === null ? \"\" : inputs.start_directory.basename)\"\nSUB_DIR=\"$(inputs.sub_directory_name)\"\nif [ -z \"$BASE_DIR\" ]\nthen\nOUTPUT_PATH=$SUB_DIR\nelse\nOUTPUT_PATH=$BASE_DIR/$SUB_DIR\nfi\necho $OUTPUT_PATH\nmkdir -p $OUTPUT_PATH\ncp -rL $* $OUTPUT_PATH\n" ;
                                                  cwl:entryname    "collect_files.sh"
                                                ]
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_cliptar/file_prefix>
        sld:default  "Ateamclipper" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/collect_linc_libraries.cwl#libraries>
        rdfs:comment       "The files extracted from LINC." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "*" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_clip_A-team/file_list>
        cwl:linkMerge  "merge_flattened" ;
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_cliptar/output> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_prep_targ/output> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Simulates data for the A-team sources based off a skymodel,\nand flags the visibilities of the input MeasuremenSet where\nthe model data exceeds the threshold for LBA (50 janskys)\nor HBA (5 janksys).\n" ;
        rdfs:label               "clip A-team" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( "steps=[filter,clipper,counter]" "clipper.sourcedb=Ateam_LBA_CC.skymodel" "clipper.usechannelfreq=False" "clipper.operation=replace" "clipper.beamproximitylimit=2000" "filter.baseline=[CR]S*&" "filter.remove=False" "counter.savetojson=True" "counter.jsonfilename=Ateamclipper.json" "msout=." "msout.storagemanager=dysco" "msout.storagemanager.databitrate=0" ) ;
        cwl:baseCommand          ( "DP3" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:hints                [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMin  "$(inputs.number_cores)"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/msin_datacolumn> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/max_dp3_threads> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/linc_libraries> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/usebeammodel> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/sources> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/number_cores> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/output> ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ Dirent:writable  true ;
                                                  cwl:entry        "$(inputs.msin)"
                                                ] ;
                                   cwl:listing  [ cwl:entry  "$(inputs.linc_libraries)" ]
                                 ] ;
        cwl:requirements         [ a  cwl:ShellCommandRequirement ] ;
        cwl:stderr               "clipper_err.log" ;
        cwl:stdout               "clipper.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/linc_libraries>
        rdfs:comment  "Scripts and reference files from the\nLOFAR INitial Calibration pipeline.\nMust contain `check_Ateam_separation.py`.\n" ;
        sld:type      [ sld:items  cwl:File ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/msout>
        rdfs:comment      "The input data in MeasurementSet format after\nthe LINC solutions have been applied and A-team\nsources have been removed.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/clip_A-team/msout> ;
        sld:type          [ sld:items  cwl:Directory ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/collect_linc_libraries/linc>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/linc> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl#concatfiles/output>
        rdfs:comment       "The concatenated file." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.file_prefix).$(inputs.file_suffix)" ] ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.file_prefix).$(inputs.file_suffix)" ] ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.file_prefix).$(inputs.file_suffix)" ] ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.file_prefix).$(inputs.file_suffix)" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/Ateamclipper/max_dp3_threads>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/max_dp3_threads> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/clip_A-team.cwl#clip_A-team/concat_logfiles_clip_A-team/file_prefix>
        sld:default  "Ateamcliptar" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Flags requested antennas, flags erroneously\nlow amplitudes, applies LINC calibrator and\ntarget solutions.\n" ;
        rdfs:label               "DP3 prep target" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( "applyPA.parmdb=$(inputs.solset.path)" "applybandpass.parmdb=$(inputs.solset.path)" "applyclock.parmdb=$(inputs.solset.path)" "applyRM.parmdb=$(inputs.solset.path)" "applyphase.parmdb=$(inputs.solset.path)" ) ;
        cwl:baseCommand          ( "DP3" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/flag_statistics_filename_after> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/parset> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/msout_name> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/flag_statistics_filename_before> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/collect_flag_statistics_before> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/collect_flag_statistics_after> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/solset> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/flag_statistics_before> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/flag_statistics_after> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/logfile> ;
        cwl:requirements         [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMin  6
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stderr               "dp3_prep_target_err.log" ;
        cwl:stdout               "dp3_prep_target.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/prep_target_flags_join/filter_station>
        sld:default  "" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/clipper.cwl#Ateamclipper/usebeammodel>
        rdfs:comment      "Determines whether to use the beam model.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position    0 ;
                            CommandLineBinding:prefix      "clipper.usebeammodel=True" ;
                            CommandLineBinding:shellQuote  false
                          ] ;
        sld:default       true ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/setup.cwl#setup/initial_flags_join/filter_station>
        sld:default  "" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_prep_target.cwl#dp3_prep_target/msin>
        rdfs:comment      "Input data in MeasurementSet format." ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "msin=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/check_ateam_separation.cwl#check_ateam_separation/output_image_name>
        rdfs:comment      "The filename of the output image." ;
        cwl:inputBinding  [ CommandLineBinding:position  2 ;
                            CommandLineBinding:prefix    "--outputimage"
                          ] ;
        sld:default       "Ateam_separation.png" ;
        sld:type          xsd:string , sld:null .
