Skip to content
Snippets Groups Projects
Select Git revision
  • 35a9dfe67159b08da2a6e0ea5c00709539b4cfcf
  • main
  • sar-277-update-docs-with-examples-for-lrc
  • st-946-automate
  • sar_302-log-fix
  • sar-287_subarray_commands_to_lrc
  • sar_302-POC_await_sub_device_state
  • sat_302_fix_pipelines
  • sar-286_lrc_one_subarry_command
  • sar-286_lrc_improvements
  • sar-288-async-controller
  • sar-276-combine-tango-queue
  • sar-255_remove_nexus_reference
  • sar-275-add-LRC
  • sar-273-add-lrc-attributes
  • sar-272
  • sp-1106-marvin-1230525148-ska-tango-base
  • sp-1106-marvin-813091765-ska-tango-base
  • sar-255/Publish-package-to-CAR
  • mccs-661-device-under-test-fixture
  • mccs-659-pep257-docstring-linting
  • 0.11.3
  • 0.11.2
  • 0.11.1
  • 0.11.0
  • 0.10.1
  • 0.10.0
  • 0.9.1
  • 0.9.0
  • 0.8.1
  • 0.8.0
  • 0.7.2
  • 0.7.1
  • 0.7.0
  • 0.6.6
  • 0.6.5
  • 0.6.4
  • 0.6.3
  • 0.6.2
  • 0.6.1
  • 0.6.0
41 results

SKASubarray.rst

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    fetch_data.cwl 939 B
    id: fetchdata
    label: fetch_data
    class: CommandLineTool
    cwlVersion: v1.1
    inputs: 
      - id: surl_link
        type: string
        inputBinding:
          position: 0
        
    outputs: 
      - id: uncompressed
        type: Directory
        outputBinding:
          glob: 'out/*'
    baseCommand: 
     - 'bash'
     - 'fetch.sh'
    doc: 'Untar a compressed file'
    requirements:
      InlineJavascriptRequirement: {}
      InitialWorkDirRequirement:
        listing:
          - entryname: 'fetch.sh' 
            entry: |
              #!/bin/bash
              mkdir out
              cd out
              if [[ $1 == *"sara.nl"* ]]; then
                turl=`echo $1 | awk '{gsub("srm://srm.grid.sara.nl[:0-9]*","gsiftp://gridftp.grid.sara.nl"); print}'`
                echo "Downloading $turl with globus-url-copy"
                globus-url-copy $turl - | tar -xvf -
              else
                echo "Downloading $1 with srmcp"
                srmcp $1 file:////`pwd`/\$(basename $1)
                tar -xvf \$(basename $1)
              fi