Skip to content
Snippets Groups Projects
Select Git revision
  • 2448f22b425809e7a57aa70d8c346a582d583cd6
  • master default protected
  • revert-cs032-ccd-ip
  • deploy-components-parallel
  • fix-chrony-exporter
  • L2SS-2407-swap-iers-caltable-monitoring-port
  • L2SS-2357-fix-ruff
  • sync-up-with-meta-pypcc
  • stabilise-landing-page
  • all-stations-lofar2
  • v0.39.7-backports
  • Move-sdptr-to-v1.5.0
  • fix-build-ubuntu
  • tokens-in-env-files
  • fix-build
  • L2SS-2214-deploy-cdb
  • fix-missing-init
  • add-power-hardware-apply
  • L2SS-2129-Add-Subrack-Routine
  • Also-listen-internal-to-rpc
  • fix-build-dind
  • v0.55.5-r2 protected
  • v0.52.8-rc1 protected
  • v0.55.5 protected
  • v0.55.4 protected
  • 0.55.2.dev0
  • 0.55.1.dev0
  • 0.55.0.dev0
  • v0.54.0 protected
  • 0.53.2.dev0
  • 0.53.1.dev0
  • v0.52.3-r2 protected
  • remove-snmp-client
  • v0.52.3 protected
  • v0.52.3dev0 protected
  • 0.53.1dev0
  • v0.52.2-rc3 protected
  • v0.52.2-rc2 protected
  • v0.52.2-rc1 protected
  • v0.52.1.1 protected
  • v0.52.1 protected
41 results

tcp_replicator.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    plot_uvw_coverage.cwl 1.22 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: astronsdc/lofar-ms-software
    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)