Skip to content
Snippets Groups Projects
Select Git revision
  • e64b31b60bfdb555612b15601253e7bfd70eb0dc
  • master default protected
  • L2SS-1914-fix_job_dispatch
  • TMSS-3170
  • TMSS-3167
  • TMSS-3161
  • TMSS-3158-Front-End-Only-Allow-Changing-Again
  • TMSS-3133
  • TMSS-3319-Fix-Templates
  • test-fix-deploy
  • TMSS-3134
  • TMSS-2872
  • defer-state
  • add-custom-monitoring-points
  • TMSS-3101-Front-End-Only
  • TMSS-984-choices
  • SDC-1400-Front-End-Only
  • TMSS-3079-PII
  • TMSS-2936
  • check-for-max-244-subbands
  • TMSS-2927---Front-End-Only-PXII
  • Before-Remove-TMSS
  • LOFAR-Release-4_4_318 protected
  • LOFAR-Release-4_4_317 protected
  • LOFAR-Release-4_4_316 protected
  • LOFAR-Release-4_4_315 protected
  • LOFAR-Release-4_4_314 protected
  • LOFAR-Release-4_4_313 protected
  • LOFAR-Release-4_4_312 protected
  • LOFAR-Release-4_4_311 protected
  • LOFAR-Release-4_4_310 protected
  • LOFAR-Release-4_4_309 protected
  • LOFAR-Release-4_4_308 protected
  • LOFAR-Release-4_4_307 protected
  • LOFAR-Release-4_4_306 protected
  • LOFAR-Release-4_4_304 protected
  • LOFAR-Release-4_4_303 protected
  • LOFAR-Release-4_4_302 protected
  • LOFAR-Release-4_4_301 protected
  • LOFAR-Release-4_4_300 protected
  • LOFAR-Release-4_4_299 protected
41 results

common.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    fetch_data.cwl 1.11 KiB
    id: fetchdata
    label: fetch_data
    class: CommandLineTool
    cwlVersion: v1.2
    inputs: 
      - id: surl_link
        type: string
        inputBinding:
          position: 0
        
    outputs: 
      - id: uncompressed
        type: Directory
        outputBinding:
          glob: 'out/*'
    baseCommand: 
      - 'bash'
      - 'fetch.sh'
    doc: 'Fetch a file from surl and uncompresses it'
    requirements:
      InitialWorkDirRequirement:
        listing:
          - entryname: 'fetch.sh' 
            entry: |
              #!/bin/bash
              mkdir out
              
    
              if [[ "$1" == *"lta-head.lofar.psnc.pl"* ]]; then
                  wget --no-check-certificate --read-timeout=5 --timeout 5 https://lta-download.lofar.psnc.pl/lofigrid/SRMFifoGet.py\?surl\=$1
                  cd out
                  tar -xvf ../*.tar 
              else
                cd out
                turl=`echo $1 | awk '{gsub("srm://srm.grid.sara.nl[:0-9]*","gsiftp://gridftp.grid.sara.nl"); print}'`
                turl=`echo $turl | awk '{gsub("srm://lofar-srm.fz-juelich.de[:0-9]*","gsiftp://lofar-gridftp.fz-juelich.de:2811"); print}'`
                echo "Downloading $turl"
                globus-url-copy $turl - | tar -xvf -
              fi