@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/aoflagger.cwl#aoflagging/keepstatistics>
        rdfs:comment      "Indicates whether statistics should be written to file." ;
        cwl:inputBinding  [ CommandLineBinding:prefix
                          "aoflagger.keepstatistics=True" ] ;
        sld:default       true ;
        sld:type          xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/bad_antennas>
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/bad_antennas> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/compare_stations_filter> ;
        cwl:valueFrom  "$(self.join(''))" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging/linc_libraries>
        rdfs:comment  "Scripts and reference files from the\nLOFAR INitial calibration pipeline.\nMust contain `lofar-default.lua`.\n" ;
        sld:type      sld:null ;
        sld:type      [ sld:items  cwl:File ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/timeresolution>
        rdfs:comment      "Target time resolution in seconds\nfor the first averaging.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "average1.timeresolution=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:default       4e+00 ;
        sld:type          xsd:float , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/solutions>
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--solutions"
                          ] ;
        sld:default       false ;
        sld:type          xsd:boolean , cwl:File , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/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/subworkflows/concatenation.cwl#concatenation/dp3_concat/msin>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/msin> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging/file_prefix>
        sld:default  "AOflagging" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "This step creates a JSON formatted file\ncontaining pipeline run summary statistics.\n" ;
        rdfs:label               "VLBI summary" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "make_summary.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/summary.cwl#summary/output_fname> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/clip_sources> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/min_unflagged_fraction> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/demix_sources> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/flagFiles> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/pipeline> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/structure_file> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/run_type> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/solutions> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/refant> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/filter> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/Ateam_separation_file> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/demix> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/bad_antennas> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/removed_bands> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/summary_file> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/logfile> ;
        cwl:stderr               "summary_err.log" ;
        cwl:stdout               "summary.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate>
        rdfs:label  "sort_concatmap" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/firstSB> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/linc_libraries> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/numbands> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/groupnames> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/filenames> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/clip_sources>
        rdfs:comment  "List of sources that were clipped." ;
        sld:type      sld:null ;
        sld:type      [ sld:items  xsd:string ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/linc_libraries>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/collect_linc_libraries/libraries> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/beam_direction>
        rdfs:comment      "Source coordinates (right ascension, declination)\nto apply beam corrections.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "applybeam.direction=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/solutions>
        rdfs:comment      "The calibrated solutions for the\ndelay calibrator in HDF5 format.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/h5parm> ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay/mode>
        sld:default  "delay_calibration" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/time_resolution>
        rdfs:comment      "Target time resolution in seconds\nfor the second averaging.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "average2.timeresolution=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:default       "32.0" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/prep_delay.cwl#prep_delay>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Converts the delay calibrator information into strings.\n" ;
        rdfs:label               "Prepare delay" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "python3" "prep_delay.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/prep_delay.cwl#prep_delay/mode> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/prep_delay.cwl#prep_delay/delay_calibrator> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/prep_delay.cwl#prep_delay/coordinates> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/prep_delay.cwl#prep_delay/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/prep_delay.cwl#prep_delay/source_id> ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry      "import json\nfrom TargetListToCoords import plugin_main as targetListToCoords\n\ninputs = json.loads(r\"\"\"$(inputs)\"\"\")\n\ntarget_file = inputs['delay_calibrator']['path']\nmode = inputs['mode']\n\noutput = targetListToCoords(target_file=target_file, mode=mode)\n\nwith open('./out.json', 'w') as fp:\n    json.dump(output, fp)\n" ;
                                                  cwl:entryname  "prep_delay.py"
                                                ]
                                 ] ;
        cwl:stderr               "prep_delay_err.log" ;
        cwl:stdout               "prep_delay.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/msin>
        rdfs:comment  "Input data phase-shifted to the\ndelay calibrator in MeasurementSet format.\n" ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation>
        a                        cwl:Workflow ;
        rdfs:comment             "Concatenation selects MeasurementSets from the\ninput data based on predetermined frequency\ngrouping, and concatenates the resulting groups.\nOptionally, the concatenated MeasurementSets can\nbe flagged, in which case DP3 memory constraints\nand LINC flagging strategies must be given as inputs.\n" ;
        rdfs:label               "Concatenation" ;
        ns1:original_cwlVersion  "v1.2" ;
        Workflow:steps           <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concatenate_logfiles> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/filter_ms_group> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging> ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/group_id> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/aoflagger_memory> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/max_dp3_threads> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/groups_specification> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/linc_libraries> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/aoflag_logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concatenate_logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_flag_statistics> ;
        cwl:requirements         [ a  cwl:StepInputExpressionRequirement ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Reduces the dataset by concatenating\nsubbands into frequency groups.\n" ;
        rdfs:label               "DP3 concatenate" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( "steps=[count]" "msin.orderms=False" "msin.missingdata=True" "msout.overwrite=True" "msout.writefullresflag=False" "count.savetojson=True" "count.jsonfilename=out.json" ) ;
        cwl:baseCommand          ( "DP3" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMin  6
                                 ] ;
        cwl:hints                [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ Dirent:writable  false ;
                                                  cwl:entry        "$(inputs.msin)"
                                                ]
                                 ] ;
        cwl:hints                [ a                             cwl:DockerRequirement ;
                                   DockerRequirement:dockerPull  "vlbi-cwl"
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/max_dp3_threads> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/msin_filenames> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/datacolumn_in> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/datacolumn_out> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/storagemanager> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/msout_name> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/flagged_statistics> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/logfile> ;
        cwl:requirements         [ a  cwl:ShellCommandRequirement ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stderr               "dp3_concat_err.log" ;
        cwl:stdout               "dp3_concat.log" .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/refant>
        rdfs:comment      "The reference antenna used." ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--refant"
                          ] ;
        sld:default       "" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging/max_dp3_threads>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/max_dp3_threads> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging>
        rdfs:label  "AOflagging" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging/max_dp3_threads> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging/memory> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging/linc_libraries> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging/logfile> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl> ;
        cwl:when    "$((inputs.linc_libraries != null) && (inputs.memory != null))" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/clip_sources>
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/clip_sources> ;
        cwl:valueFrom  "$(self.join(','))" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/msout>
        rdfs:comment      "The data in MeasurementSet format after\nphase-shifting to the delay calibrator.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/msout> ;
        sld:type          [ sld:items  cwl:Directory ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_flags_join/state>
        sld:default  "phaseup_concat" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/msout_name>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/group_id> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/h5merger>
        rdfs:comment  "External LOFAR helper scripts for merging h5 files." ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/filter_ms_group/measurement_sets>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/msin> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/pipeline>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/pipeline> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging/max_dp3_threads>
        rdfs:comment      "The number of threads per DP3 process." ;
        cwl:inputBinding  [ CommandLineBinding:position    0 ;
                            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/facet_selfcal.cwl#facet_selfcal/selfcal>
        rdfs:comment  "External self-calibration script." ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/pictures>
        rdfs:comment      "The inspection plots generated\nby delay_solve.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/images> ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

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

<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/steps/facet_selfcal.cwl#facet_selfcal/images>
        rdfs:comment       "Delay calibrator images generated by lofar_facet_selfcal.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "plotlosoto*/*.png" , "*.png" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/save_logfiles/files>
        cwl:linkMerge  "merge_flattened" ;
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_cal_model/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/concat_logfiles_phaseup/output> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/logfile> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/groups_specification>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/filenames> .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/datacolumn_out>
        rdfs:comment      "The name of the data column into\nwhich the output data is written.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position    0 ;
                            CommandLineBinding:prefix      "msout.datacolumn=" ;
                            CommandLineBinding:separate    false ;
                            CommandLineBinding:shellQuote  false
                          ] ;
        sld:default       "DATA" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging/memory>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/aoflagger_memory> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/run_type>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/run_type> .

<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/steps/prep_delay.cwl#prep_delay/delay_calibrator>
        rdfs:comment  "The file containing the properties and\ncoordinates of the delay calibrator.\n" ;
        sld:type      cwl:File .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Runs the AO-flagging module of DP3.\n" ;
        rdfs:label               "AOflagger" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( "steps=[aoflagger]" "aoflagger.strategy=lofar-default.lua" "aoflagger.type=aoflagger" "msout=." ) ;
        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/aoflagger.cwl#aoflagging/linc_libraries> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging/msin_datacolumn> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging/max_dp3_threads> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging/keepstatistics> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging/memory> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging/logfile> ;
        cwl:requirements         [ a  cwl:ShellCommandRequirement ] ;
        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:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMin  6 ;
                                   ResourceRequirement:ramMin    "$(inputs.memory)"
                                 ] ;
        cwl:stderr               "aoflag_err.log" ;
        cwl:stdout               "aoflag.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/summary_file>
        rdfs:comment       "Summary File in JSON format." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "*.json" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Phaseshifts data to the delay calibrator,\naverages the data, combines the core\nstations into one superstation.\n" ;
        rdfs:label               "DP3 phaseup" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( "steps=[shift, average1, applybeam, average2]" "shift.type=phaseshift" "average1.type=averager" "applybeam.type=applybeam" "applybeam.updateweights=true" "average2.type=averager" "msout.overwrite=True" ) ;
        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_phaseup.cwl#dp3_phaseup/datacolumn_out> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/time_resolution> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/timeresolution> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/freqresolution> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/max_dp3_threads> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/phase_center> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/frequency_resolution> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/beam_mode> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/beam_direction> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/storagemanager> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/datacolumn_in> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/msout_name> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/errorfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/msout> ;
        cwl:requirements         [ a                             cwl:ResourceRequirement ;
                                   ResourceRequirement:coresMin  "$(inputs.max_dp3_threads)"
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stderr               "dp3_phaseup_err.log" ;
        cwl:stdout               "dp3_phaseup.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/filter_ms_group.cwl#filter_ms_group>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Collects MeasurementSets for concatenation,\nexcluding dummy data.\n" ;
        rdfs:label               "Filter MeasurementSet group" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:arguments            ( [ CommandLineBinding:position  0 ;
                                     cwl:valueFrom                "filter_ms_group.py"
                                   ]
                                 ) ;
        cwl:baseCommand          ( "python3" ) ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:hints                [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ Dirent:writable  true ;
                                                  cwl:entry        "$(inputs.measurement_sets)"
                                                ]
                                 ] ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/filter_ms_group.cwl#filter_ms_group/measurement_sets> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/filter_ms_group.cwl#filter_ms_group/groups_specification> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/filter_ms_group.cwl#filter_ms_group/group_id> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/filter_ms_group.cwl#filter_ms_group/selected_ms> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry      "import sys\nimport json\nimport os\n\ninputs = json.loads(r\"\"\"$(inputs)\"\"\")\ngroup_id = inputs['group_id']\njson_file = sys.argv[1]\nms_list = sys.argv[2:]\n\nms_by_name = { ms.split(os.path.sep)[-1]:\n               {'class':'Directory', 'path': ms} for ms in ms_list}\n\noutput_file = 'selected_ms.json'\n\nwith open(json_file, 'r') as f_stream:\n    selected_ms = json.load(f_stream)[group_id]\n\nselected_ms = [os.path.basename(ms_name) for ms_name in selected_ms]\ncwl_output  = {'selected_ms': selected_ms}\n\nwith open('./out.json', 'w') as fp:\n    json.dump(cwl_output, fp)\n\nselected_ms = [ms_by_name[ms_name] for ms_name in selected_ms if ms_name != 'dummy.ms']\n\n\nwith open(output_file, 'w') as f_stream:\n    json.dump(selected_ms, f_stream)\n" ;
                                                  cwl:entryname  "filter_ms_group.py"
                                                ]
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stderr               "filter_ms_by_group_err.log" ;
        cwl:stdout               "filter_ms_by_group.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/max_dp3_threads>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/max_dp3_threads> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/delay_cal_model.cwl#delay_cal_model/skymodel>
        rdfs:comment       "The skymodel of the delay calibrator." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "skymodel.txt" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/configfile>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/configfile> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/clip_sources>
        cwl:inputBinding  [ CommandLineBinding:itemSeparator
                                    "," ;
                            CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--clip_sources" ;
                            CommandLineBinding:separate  true ;
                            cwl:valueFrom                "$(self)"
                          ] ;
        sld:default       false ;
        sld:type          xsd:boolean , xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/selfcal>
        rdfs:comment  "Path of external calibration scripts." ;
        sld:type      cwl:Directory .

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

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/max_dp3_threads>
        rdfs:comment      "The number of CPU threads to use.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "numthreads=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:default       5 ;
        sld:type          xsd:int , sld:null .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/Ateam_separation_file>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/check_Ateam_separation.json> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/beam_mode>
        rdfs:comment      "Applied beam mode. 'Full' applies both element beam and array factor." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "applybeam.beammode=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:default       "full" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/beam_direction>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay/coordinates> .

<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/workflows/subworkflows/concatenation.cwl#concatenation/concat_flag_statistics>
        rdfs:comment      "A JSON formatted file containing flagging\nstatistics of the data after concatenation.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/flagged_statistics> ;
        sld:type          xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/collect_linc_libraries>
        rdfs:label   "Collect neccesary LINC libraries" ;
        cwl:in       <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/collect_linc_libraries/linc> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/collect_linc_libraries/library> ;
        cwl:out      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/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/phaseup-concat.cwl#phaseup-concat/collect_linc_libraries/library> ) .

<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/steps/filter_ms_group.cwl#filter_ms_group/selected_ms>
        rdfs:comment       "The names of the selected MeasurementSets.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob  "out.json" ;
                             CommandOutputBinding:outputEval
                                     "$(JSON.parse(self[0].contents).selected_ms)" ;
                             cwl:loadContents           true
                           ] ;
        sld:type           [ sld:items  xsd:string ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging/linc_libraries>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/linc_libraries> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/h5merger>
        rdfs:comment  "External LOFAR helper scripts for merging HDF5 files." ;
        sld:type      cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/removed_bands>
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/removed_bands> ;
        cwl:valueFrom  "$(self.join(','))" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/prep_delay.cwl#prep_delay/coordinates>
        rdfs:comment       "Catalogue source coordinates." ;
        cwl:outputBinding  [ CommandOutputBinding:glob  "out.json" ;
                             CommandOutputBinding:outputEval
                                     "$(JSON.parse(self[0].contents).coords)" ;
                             cwl:loadContents           true
                           ] ;
        sld:type           xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/flags>
        rdfs:comment  "Flagging information in JSON format." ;
        sld:type      sld:null ;
        sld:type      [ sld:items  cwl:File ;
                        sld:type   sld:array
                      ] .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/logfile>
        rdfs:comment       "The file containing the stdout from the step." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "dp3_phaseup.log" ] ;
        sld:type           cwl:File .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/filter_baselines>
        rdfs:comment  "Name pattern of antennas to be filtered from the processing." ;
        sld:default   "[CR]S*&" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/compare_stations_filter>
        sld:default  "[CR]S*&" ;
        sld:type     xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/msout_name>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay/source_id> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/msin>
        rdfs:comment  "Input data in MeasurementSet format." ;
        sld:type      [ sld:items  cwl:Directory ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/group_id>
        rdfs:comment  "The name of the final concatenated MeasurementSet." ;
        sld:type      xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/refant>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/refant> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/DP3fill>
        rdfs:comment  "Add dummy file names for missing frequencies,\nso that DP3 can fill the data with flagged dummy data.\n" ;
        sld:default   true ;
        sld:type      xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary>
        rdfs:label  "summary" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/refant> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/pipeline> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/filter> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/run_type> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/removed_bands> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/clip_sources> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/solutions> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/bad_antennas> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/flagFiles> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/min_unflagged_fraction> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/Ateam_separation_file> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/summary_file> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concatenate_logfile>
        rdfs:comment      "The file containing the stdout and\nstderr from the dp3_concatenate step.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concatenate_logfiles/output> ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging/memory>
        rdfs:comment      "The amount of maximum amount of memory to use in GB." ;
        cwl:inputBinding  [ CommandLineBinding:position    0 ;
                            CommandLineBinding:prefix      "aoflagger.memorymax=" ;
                            CommandLineBinding:separate    false ;
                            CommandLineBinding:shellQuote  false ;
                            cwl:valueFrom                  "$((self/1000 > 30) ? self/1000 : 30)"
                          ] ;
        sld:type          xsd:int , xsd:float , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay>
        rdfs:label  "prep_delay" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay/delay_calibrator> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay/mode> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay/source_id> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay/coordinates> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/prep_delay.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/msin>
        rdfs:comment  "Input data in MeasurementSet format." ;
        sld:type      [ sld:items  cwl:Directory ;
                        sld:type   sld:array
                      ] .

<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/workflows/phaseup-concat.cwl#phaseup-concat/min_unflagged_fraction>
        rdfs:comment  "The minimum fraction of unflagged data per band to continue." ;
        sld:default   5e-01 ;
        sld:type      xsd:float , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging/memory>
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/aoflagger_memory> ;
        cwl:valueFrom  "$(self)" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/bad_antennas>
        rdfs:comment      "A pattern of names of antennas with bad data." ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--bad_antennas"
                          ] ;
        sld:default       "*&" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/aoflagger.cwl#aoflagging/msin>
        rdfs:comment      "Data to be processed 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/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/group_id>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/groupnames> .

<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/prep_delay.cwl#prep_delay/logfile>
        rdfs:comment       "The files containing the stdout\nand stderr outputs from the step.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "prep_delay*.log" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/structure_file>
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--structure_file"
                          ] ;
        sld:default       false ;
        sld:type          xsd:boolean , cwl:File , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/aoflagger_memory>
        rdfs:comment  "The amount of memory in mebibytes that should be available\nfor an AOFlagger flagging job. Must be set if the concatenated\ndata should be flagged.\n" ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/max_dp3_threads>
        rdfs:comment      "The number of CPU threads to use." ;
        cwl:inputBinding  [ CommandLineBinding:position    0 ;
                            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/facet_selfcal.cwl#facet_selfcal/fits_images>
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "*MFS-image.fits" ] ;
        sld:type           [ sld:items  cwl:File ;
                             sld:type   sld:array
                           ] .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/filter_ms_group>
        rdfs:label  "filter_ms_group" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/filter_ms_group/measurement_sets> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/filter_ms_group/group_id> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/filter_ms_group/groups_specification> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/filter_ms_group/selected_ms> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/filter_ms_group.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/firstSB>
        rdfs:comment  "If set, reference the grouping of files to this station subband." ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/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/sort_concatmap.cwl#sort_concatmap/groupnames>
        rdfs:comment       "A string of names of the frequency groups." ;
        cwl:outputBinding  [ CommandOutputBinding:glob  "out.json" ;
                             CommandOutputBinding:outputEval
                                     "$(JSON.parse(self[0].contents).groupnames)" ;
                             cwl:loadContents           true
                           ] ;
        sld:type           [ sld:items  xsd:string ;
                             sld:type   sld:array
                           ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/numbands>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/numbands> .

<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/workflows/phaseup-concat.cwl#phaseup-concat/logdir>
        rdfs:comment      "The directory containing all the stdin\nand stderr files from the workflow.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/save_logfiles/dir> ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concatenate_logfiles/file_prefix>
        sld:default  "dp3_concatenation" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate>
        rdfs:label   "phaseup_concatenate" ;
        cwl:in       <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/group_id> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/groups_specification> ;
        cwl:out      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/concatenate_logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/aoflag_logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/concat_flag_statistics> ;
        cwl:run      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/group_id> ) .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/demix_sources>
        cwl:inputBinding  [ CommandLineBinding:itemSeparator
                                    "," ;
                            CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--demix_sources" ;
                            CommandLineBinding:separate  true ;
                            cwl:valueFrom                "$(self)"
                          ] ;
        sld:default       false ;
        sld:type          xsd:boolean , xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_cal_model>
        rdfs:label  "delay_cal_model" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_cal_model/delay_calibrator> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_cal_model/msin> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_cal_model/skymodel> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_cal_model/logfile> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/delay_cal_model.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/prep_delay.cwl#prep_delay/mode>
        rdfs:comment  "A boolean that, if set to true, ensures that\nthe step will only extract the source_id and\ncoordinates of the first entry of the catalogue.\n" ;
        sld:type      xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/numbands>
        rdfs:comment  "The number of files that have to be grouped together." ;
        sld:default   -1 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/configfile>
        rdfs:comment  "A plain-text file containing configuration options for self-calibration." ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/filter_ms_group/groups_specification>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/groups_specification> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/delay_cal_model.cwl#delay_cal_model>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Creates a skymodel for use in the self-calibration.\n" ;
        rdfs:label               "Delay cal model" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "skynet.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/delay_cal_model.cwl#delay_cal_model/delay_calibrator> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/delay_cal_model.cwl#delay_cal_model/msin> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/delay_cal_model.cwl#delay_cal_model/skymodel> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/delay_cal_model.cwl#delay_cal_model/logfile> ;
        cwl:stderr               "delay_cal_model_err.log" ;
        cwl:stdout               "delay_cal_model.log" .

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

<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: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: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 ] ;
        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"
                                                ]
                                 ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/datacolumn_in>
        rdfs:comment      "Name of the data column from which\ninput data is read.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position    1 ;
                            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/summary.cwl#summary/pipeline>
        rdfs:comment      "Name of the pipeline." ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--pipeline"
                          ] ;
        sld:default       "VLBI" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/msin_filenames>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/filter_ms_group/selected_ms> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/min_unflagged_fraction>
        rdfs:comment      "The minimum required fraction of unflagged data per band." ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--min_unflagged"
                          ] ;
        sld:default       5e-01 ;
        sld:type          xsd:float , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/firstSB>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/firstSB> .

<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" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/output_fname>
        rdfs:comment      "The name of the output file." ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--output_fname"
                          ] ;
        sld:default       false ;
        sld:type          xsd:boolean , xsd:string , sld:null .

<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/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
                           ] ;
        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
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/concat_logfiles_phaseup/file_prefix>
        sld:default  "dp3_phaseup" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/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/subworkflows/concatenation.cwl#concatenation/AOflagging/linc_libraries>
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/linc_libraries> ;
        cwl:valueFrom  "$(self)" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve>
        rdfs:label  "delay_solve" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/skymodel> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/configfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/selfcal> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/h5merger> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/h5parm> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/images> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/logfile> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/flagFiles>
        cwl:linkMerge  "merge_flattened" ;
        cwl:pickValue  "all_non_null" ;
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/flags> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_flags_join/flagged_fraction_antenna> ;
        cwl:valueFrom  "$(self)" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/configfile>
        rdfs:comment  "Settings for the delay calibration in delay_solve." ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/storagemanager>
        rdfs:comment      "String that specifies what storage manager\nto use. By default uses dysco compression.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position    1 ;
                            CommandLineBinding:prefix      "msout.storagemanager=" ;
                            CommandLineBinding:separate    false ;
                            CommandLineBinding:shellQuote  false
                          ] ;
        sld:default       "dysco" ;
        sld:type          xsd:string , sld:null .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/concat_logfiles_phaseup/file_list>
        cwl:linkMerge  "merge_flattened" ;
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/logfile> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/groups_specification>
        rdfs:comment  "A list of filenames that have to\nbe concatenated, in JSON format.\n" ;
        sld:type      cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/filter_ms_group.cwl#filter_ms_group/groups_specification>
        rdfs:comment      "A file containing directories of MeasurementSets.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position
                          1 ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/skymodel>
        rdfs:comment  "The skymodel to be used in the first\ncycle in the self-calibration.\n" ;
        sld:type      cwl:File , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/filenames>
        rdfs:comment       "A list of filenames that have to\nbe concatenated, in JSON format.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "filenames.json" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Sorts the subbands into a given number\nof regularly spaced frequency groups.\n" ;
        rdfs:label               "Sort concatenate map" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "python3" "sort_times.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/sort_concatmap.cwl#sort_concatmap/firstSB> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/mergeLastGroup> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/DP3fill> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/numbands> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/truncateLastSBs> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/linc_libraries> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/stepname> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/filenames> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/groupnames> ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry      "import sys\nimport json\nfrom sort_times_into_freqGroups import main as sort_times_into_freqGroups\n\nmss = sys.argv[1:]\n\ninputs = json.loads(r\"\"\"$(inputs)\"\"\")\n\nnumbands = inputs['numbands']\nstepname = inputs['stepname']\nNDPPPfill = inputs['DP3fill']\nmergeLastGroup = inputs['mergeLastGroup']\ntruncateLastSBs = inputs['truncateLastSBs']\nfirstSB = inputs['firstSB']\n\nprint(mss, numbands, NDPPPfill, stepname, mergeLastGroup, truncateLastSBs, firstSB)\n\noutput = sort_times_into_freqGroups(mss, numbands, NDPPPfill, stepname, mergeLastGroup, truncateLastSBs, firstSB)\nprint(output)\nfilenames  = output['filenames']\ngroupnames = output['groupnames']\ntotal_bandwidth = output['total_bandwidth']\n\ncwl_output = {}\ncwl_output['groupnames'] = groupnames\ncwl_output['total_bandwidth'] = total_bandwidth\n\nwith open('./filenames.json', 'w') as fp:\n    json.dump(filenames, fp)\n\nwith open('./out.json', 'w') as fp:\n    json.dump(cwl_output, fp)\n" ;
                                                  cwl:entryname  "sort_times.py"
                                                ] ;
                                   cwl:listing  [ cwl:entry  "$(inputs.linc_libraries)" ]
                                 ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:stderr               "sort_concatmap_err.log" ;
        cwl:stdout               "sort_concatmap.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/phase_center>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay/coordinates> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/run_type>
        rdfs:comment      "The type of the pipeline." ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--run_type"
                          ] ;
        sld:default       "calibrator" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/h5merger>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/h5merger> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/selfcal>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/selfcal> .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging/file_list>
        cwl:linkMerge  "merge_flattened" ;
        cwl:pickValue  "all_non_null" ;
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging/logfile> .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/datacolumn_in>
        rdfs:comment      "The name of the data column from\nwhich the 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/dp3_phaseup.cwl#dp3_phaseup/datacolumn_out>
        rdfs:comment      "Name of the data column into which\noutput data is written.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position    1 ;
                            CommandLineBinding:prefix      "msout.datacolumn=" ;
                            CommandLineBinding:separate    false ;
                            CommandLineBinding:shellQuote  false
                          ] ;
        sld:default       "DATA" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/stepname>
        rdfs:comment  "A string to be appended to the file names of the output files.\n" ;
        sld:default   ".dp3-concat" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concatenate_logfiles/file_list>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/logfile> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_flags_join/flagged_fraction_dict>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/concat_flag_statistics> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/msin_filenames>
        rdfs:comment      "An array of MeasurementSets to be concatenated." ;
        cwl:inputBinding  [ CommandLineBinding:itemSeparator
                                    "," ;
                            CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "msin=" ;
                            CommandLineBinding:separate  false ;
                            cwl:valueFrom                "[$(self.join(','))]"
                          ] ;
        sld:type          [ sld:items  xsd:string ;
                            sld:type   sld:array
                          ] .

<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/steps/prep_delay.cwl#prep_delay/source_id>
        rdfs:comment       "Catalogue source ID." ;
        cwl:outputBinding  [ CommandOutputBinding:glob  "out.json" ;
                             CommandOutputBinding:outputEval
                                     "$(JSON.parse(self[0].contents).name)" ;
                             cwl:loadContents           true
                           ] ;
        sld:type           xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/msin>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/msout> .

<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: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      "$(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:stderr               "findRefAnt_err.log" ;
        cwl:stdout               "findRefAnt.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging/msin>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/msout> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/filter>
        rdfs:comment      "A pattern of antenna names to filter from the processing." ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--filtered_antennas"
                          ] ;
        sld:default       "*&" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/msout>
        rdfs:comment       "The phase-shifted output data in MeasurementSet format.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.msout_name + \"_\" + inputs.msin.basename)" ] ;
        sld:type           cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/collect_linc_libraries/library>
        sld:default  "scripts/sort_times_into_freqGroups.py" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/flagged_statistics>
        rdfs:comment       "A JSON formatted file containing flagging\nstatistics of the data after concatenation.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob  "out.json" ;
                             CommandOutputBinding:outputEval
                                     "$(JSON.parse(self[0].contents).flagged_fraction_dict)" ;
                             cwl:loadContents           true
                           ] ;
        sld:type           xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_cal_model/msin>
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/msout> ;
        cwl:valueFrom  "$(self[0])" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/removed_bands>
        cwl:inputBinding  [ CommandLineBinding:itemSeparator
                                    "," ;
                            CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--removed_bands" ;
                            CommandLineBinding:separate  true ;
                            cwl:valueFrom                "$(self)"
                          ] ;
        sld:default       false ;
        sld:type          xsd:boolean , xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate/msin>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/msout> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/pipeline>
        rdfs:comment  "Name of the pipeline." ;
        sld:default   "VLBI" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/msin>
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/msout> ;
        cwl:valueFrom  "$(self[0])" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat>
        rdfs:label  "dp3_concat" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/msin_filenames> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/msout_name> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/max_dp3_threads> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/flagged_statistics> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat>
        a                        cwl:Workflow ;
        rdfs:comment             "Phase shifts data to the in-field calibrator\nand performs the direction-independent calibration.\n" ;
        rdfs:label               "VLBI phaseup and concatenation" ;
        ns1:original_cwlVersion  "v1.2" ;
        Workflow:steps           <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/concat_logfiles_concatenate> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_cal_model> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/concat_logfiles_phaseup> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/sort_concatenate> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/save_logfiles> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_flags_join> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/collect_linc_libraries> ;
        cwl:cwlVersion           cwl:v1.2 ;
        cwl:inputs               <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/compare_stations_filter> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/pipeline> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/min_unflagged_fraction> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/linc> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/run_type> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/firstSB> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/h5merger> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/max_dp3_threads> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/configfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/flags> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/bad_antennas> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/filter_baselines> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/selfcal> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/removed_bands> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/numbands> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/refant> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_calibrator> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/clip_sources> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/check_Ateam_separation.json> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/logdir> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/solutions> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary_file> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/pictures> ;
        cwl:requirements         [ a  cwl:ScatterFeatureRequirement ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a  cwl:StepInputExpressionRequirement ] ;
        cwl:requirements         [ a  cwl:MultipleInputFeatureRequirement ] ;
        cwl:requirements         [ a  cwl:SubworkflowFeatureRequirement ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/filter_ms_group.cwl#filter_ms_group/group_id>
        rdfs:comment  "A string that determines which\nMeasurementSets should be combined.\n" ;
        sld:type      xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/linc_libraries>
        rdfs:comment  "Scripts and reference files from the LOFAR INitial Calibration\npipeline. Must be set if the concatenated data should be flagged.\nIf set, must contain `lofar-default.lua`.\n" ;
        sld:type      sld:null ;
        sld:type      [ sld:items  cwl:File ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/logfile>
        rdfs:comment       "The file containing the stdout output from the step." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "sort_concatmap.log" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/concat_logfiles_concatenate/file_prefix>
        sld:default  "phaseup_concatenate" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/filter>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/filter_baselines> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Performs direction independent calibration\nof the international antenna array.\n" ;
        rdfs:label               "Facet Selfcal" ;
        ns1:original_cwlVersion  "v1.2" ;
        cwl:baseCommand          ( "python3" "run_selfcal.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/facet_selfcal.cwl#facet_selfcal/configfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/skymodel> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/selfcal> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/h5merger> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/fits_images> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/h5parm> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/images> ;
        cwl:requirements         [ a  cwl:ShellCommandRequirement ] ;
        cwl:requirements         [ a  cwl:InlineJavascriptRequirement ] ;
        cwl:requirements         [ a            cwl:InitialWorkDirRequirement ;
                                   cwl:listing  [ cwl:entry      "import subprocess\nimport json\n\ninputs = json.loads(r\"\"\"$(inputs)\"\"\")\n\nmsin = inputs['msin']['basename']\nconfigfile = inputs['configfile']['path']\nskymodel = inputs['skymodel']['path'] if inputs['skymodel'] else None\nselfcal = inputs['selfcal']['path']\nh5merge = inputs['h5merger']['path']\n\nrun_selfcal = (f\"python3 {selfcal}/facetselfcal.py {msin}\"\n               f\" --helperscriptspath {selfcal}\"\n               f\" --configpath {configfile}\"\n               f\" --helperscriptspathh5merge {h5merge}\")\nif skymodel:\n  run_selfcal += f\" --skymodel {skymodel}\"\n\nsubprocess.run(run_selfcal, shell = True)\n" ;
                                                  cwl:entryname  "run_selfcal.py"
                                                ] ;
                                   cwl:listing  [ cwl:entry  "$(inputs.msin)" ]
                                 ] ;
        cwl:stderr               "facet_selfcal_err.log" ;
        cwl:stdout               "facet_selfcal.log" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/freqresolution>
        rdfs:comment      "Target frequency resolution for\nthe first averaging.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "average1.freqresolution=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:default       "48.82kHz" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup>
        rdfs:label   "dp3_phaseup" ;
        cwl:in       <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/msout_name> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/phase_center> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/msin> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/beam_direction> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/max_dp3_threads> ;
        cwl:out      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/logfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/errorfile> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/msout> ;
        cwl:run      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl> ;
        cwl:scatter  ( <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/msin> ) .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/frequency_resolution>
        rdfs:comment      "Target frequency resolution for\nthe second averaging.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "average2.freqresolution=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:default       "390.56kHz" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/msin>
        rdfs:comment  "Input data in MeasurementSets. A-team\ndata has been removed in `setup` workflow.\n" ;
        sld:type      [ sld:items  cwl:Directory ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/min_unflagged_fraction>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/min_unflagged_fraction> .

<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" ] ;
        sld:type           cwl:File .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/phase_center>
        rdfs:comment      "Source coordinates (right ascension, declination)\nto shift the phase centre to.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "shift.phasecenter=" ;
                            CommandLineBinding:separate  false
                          ] ;
        sld:type          xsd:string .

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

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/mergeLastGroup>
        rdfs:comment  "Add dummy file names for missing frequencies,\nso that DP3 can fill the data with flagged dummy data.\n" ;
        sld:default   false ;
        sld:type      xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_cal_model/delay_calibrator>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_calibrator> .

<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/workflows/phaseup-concat.cwl#phaseup-concat/run_type>
        rdfs:comment  "Type of the pipeline." ;
        sld:default   "sol000" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_flags_join/filter_station>
        sld:default  "" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/msin>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/msin> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/firstSB>
        rdfs:comment  "If set, reference the grouping of\nfiles to this station subband.\n" ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/dp3_phaseup/max_dp3_threads>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/max_dp3_threads> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/numbands>
        rdfs:comment  "The number of elements in each group." ;
        sld:default   10 ;
        sld:type      xsd:int , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/concat_logfiles_concatenate/file_list>
        cwl:linkMerge  "merge_flattened" ;
        cwl:source     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/phaseup_concatenate/concatenate_logfile> .

<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/summary.cwl#summary/demix>
        cwl:inputBinding  [ CommandLineBinding:position    0 ;
                            CommandLineBinding:prefix      "--demix" ;
                            CommandLineBinding:separate    true ;
                            CommandLineBinding:shellQuote  false
                          ] ;
        sld:default       "False" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_calibrator>
        rdfs:comment  "Catalogue file with information on in-field calibrator." ;
        sld:type      cwl:File .

<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/steps/aoflagger.cwl#aoflagging/msin_datacolumn>
        rdfs:comment      "The data column of the MeasurementSet to be processed." ;
        cwl:inputBinding  [ CommandLineBinding:position    0 ;
                            CommandLineBinding:prefix      "msin.datacolumn=" ;
                            CommandLineBinding:separate    false ;
                            CommandLineBinding:shellQuote  true
                          ] ;
        sld:default       "DATA" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/removed_bands>
        rdfs:comment  "The list of bands that were removed from the data." ;
        sld:type      sld:null ;
        sld:type      [ sld:items  xsd:string ;
                        sld:type   sld:array
                      ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/errorfile>
        rdfs:comment       "The file containing the stderr from the step." ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "dp3_phaseup_err.log" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/storagemanager>
        rdfs:comment      "A string that specifies what storage manager\nto use. By default uses `dysco` compression.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position    0 ;
                            CommandLineBinding:prefix      "msout.storagemanager=" ;
                            CommandLineBinding:separate    false ;
                            CommandLineBinding:shellQuote  false
                          ] ;
        sld:default       "dysco" ;
        sld:type          xsd:string , sld:null .

<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/steps/summary.cwl#summary/flagFiles>
        rdfs:comment      "List of files with flag information in JSON format." ;
        cwl:inputBinding  [ CommandLineBinding:position
                          1 ] ;
        sld:type          cwl:File ;
        sld:type          [ sld:items  cwl:File ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/check_Ateam_separation.json>
        rdfs:comment  "A list of angular distances between the\ndelay calibrator and the A-team sources.\n" ;
        sld:type      cwl:File , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/aoflag_logfile>
        rdfs:comment      "The file containing the stdout and\nstderr from the AOflagging step.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging/output> ;
        cwl:pickValue     "all_non_null" ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/skymodel>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_cal_model/skymodel> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_phaseup.cwl#dp3_phaseup/msout_name>
        rdfs:comment      "Filename prefix for the output MeasurementSet\nto be prepended to the name of the msin input.\n" ;
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "msout=" ;
                            CommandLineBinding:separate  false ;
                            cwl:valueFrom                "$(self + \"_\" + inputs.msin.basename)\n"
                          ] ;
        sld:default       "dp3-phaseup-" ;
        sld:type          xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/msout>
        rdfs:comment       "The output data with corrected\ndata in MeasurementSet format.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "$(inputs.msout_name)" ] ;
        sld:type           cwl:Directory .

<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/steps/filter_ms_group.cwl#filter_ms_group/measurement_sets>
        rdfs:comment      "The total number of input MeasurementSets." ;
        cwl:inputBinding  [ CommandLineBinding:position
                          2 ] ;
        sld:type          [ sld:items  cwl:Directory ;
                            sld:type   sld:array
                          ] .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/msout>
        rdfs:comment      "The data in a concatenated MeasurementSet." ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/AOflagging/msout> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/dp3_concat/msout> ;
        cwl:pickValue     "first_non_null" ;
        sld:type          cwl:Directory .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/bad_antennas>
        rdfs:comment  "Antenna string to be processed." ;
        sld:default   "[CR]S*&" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/dp3_concat.cwl#dp3concat/msout_name>
        rdfs:comment      "The name of the output data in MeasurementSet format." ;
        cwl:inputBinding  [ CommandLineBinding:position    0 ;
                            CommandLineBinding:prefix      "msout=" ;
                            CommandLineBinding:separate    false ;
                            CommandLineBinding:shellQuote  false
                          ] ;
        sld:type          xsd:string .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/delay_cal_model.cwl#delay_cal_model/delay_calibrator>
        rdfs:comment      "Coordinates of a suitable delay calibrator." ;
        cwl:inputBinding  [ CommandLineBinding:position  1 ;
                            CommandLineBinding:prefix    "--delay-cal-file" ;
                            CommandLineBinding:separate  true
                          ] ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/solutions>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_solve/h5parm> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/summary.cwl#summary/Ateam_separation_file>
        cwl:inputBinding  [ CommandLineBinding:position  0 ;
                            CommandLineBinding:prefix    "--Ateam_separation_file"
                          ] ;
        sld:default       false ;
        sld:type          xsd:boolean , cwl:File , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/facet_selfcal.cwl#facet_selfcal/h5parm>
        rdfs:comment       "The calibration solution files generated\nby lofar_facet_selfcal in HDF5 format.\n" ;
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "merged_addCS_selfcalcyle009_linear*.h5" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/sort_concatmap.cwl#sort_concatmap/truncateLastSBs>
        rdfs:comment  "Add dummy file names for missing frequencies,\nso that DP3 can fill the data with flagged dummy data.\n" ;
        sld:default   false ;
        sld:type      xsd:boolean , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/prep_delay/delay_calibrator>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/delay_calibrator> .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/refant>
        rdfs:comment  "The reference antenna used." ;
        sld:default   "CS001HBA0" ;
        sld:type      xsd:string , sld:null .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging>
        rdfs:label  "concat_logfiles_AOflagging" ;
        cwl:in      <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging/file_list> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging/linc_libraries> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging/memory> , <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging/file_prefix> ;
        cwl:out     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/concat_logfiles_aoflagging/output> ;
        cwl:run     <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/steps/concatenate_files.cwl> ;
        cwl:when    "$((inputs.linc_libraries != null) && (inputs.memory != null))" .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary_file>
        rdfs:comment      "Pipeline summary statistics\nin JSON format.\n" ;
        cwl:outputSource  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/phaseup-concat.cwl#phaseup-concat/summary/summary_file> ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/filter_ms_group/group_id>
        cwl:source  <https://w3id.org/cwl/view/git/f0006a95724104665eac9a2d6505bf505835dd28/workflows/subworkflows/concatenation.cwl#concatenation/group_id> .
