Skip to content
Snippets Groups Projects
Select Git revision
  • a6ddcafd1621dfe72d578032b553f9aabbe2cb12
  • 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

app.js

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    plot_uvw_coverage.cwl 1.30 KiB
    cwlVersion: v1.1
    class: CommandLineTool
    baseCommand:
      - python3
      - script.py
    inputs:
      - id: input_file
        type: File
        inputBinding:
          position: 0
      - id: output_name
        type: string?
        default: 'uv_coverage.png'
        inputBinding:
          position: 1
    outputs:
      - id: uv_plot
        type: File
        outputBinding:
          glob: $(inputs.output_name)
    hints:
      - class: DockerRequirement
        dockerPull: git.astron.nl:5000/ldv/imaging_compress_pipeline:v0.5.14
      - class: NetworkAccess
        networkAccess: true
    
    requirements:
      - class: InlineJavascriptRequirement
      - class: InitialWorkDirRequirement
        listing:
          - entryname: script.py
            entry: |
              import h5py
              import matplotlib.pylab as plt
              import sys
              import numpy as np
              from matplotlib import cm
    
              h5_file = h5py.File(sys.argv[1], 'r')
              output_name = sys.argv[2]
              u = h5_file['URANGE']
              v = h5_file['VRANGE']
    
              plt.imshow(np.log10(h5_file['COVERAGE'][:, :, 0]), extent= [u[0], u[-1], v[0], v[-1]], cmap=cm.Blues)
              plt.imshow(np.log10(h5_file['FLAGS'][:, :, 0]), extent= [u[0], u[-1], v[0], v[-1]] , cmap=cm.Reds)
              plt.imshow(np.log10(h5_file['DATALOSS'][:, :, 0]), extent= [u[0], u[-1], v[0], v[-1]] , cmap=cm.Greens)
    
              plt.savefig(output_name)