Skip to content
Snippets Groups Projects
Commit 48ee2136 authored by alex's avatar alex
Browse files

Change default server info for RMextract

parent 216e4d47
No related branches found
No related tags found
1 merge request!152Change default server info for RMextract
Pipeline #72358 passed
...@@ -183,6 +183,9 @@ run_hba_target_selfcal: ...@@ -183,6 +183,9 @@ run_hba_target_selfcal:
artifacts: artifacts:
paths: paths:
- hba_target_selfcal_logs.tar.gz - hba_target_selfcal_logs.tar.gz
- cal_solutions.tar.gz
- inspection.tar.gz
- results.tar.gz
when: on_failure when: on_failure
build_doc: build_doc:
......
...@@ -14,7 +14,7 @@ typically obtained from the LOFAR `Long-Term Archive`_. ...@@ -14,7 +14,7 @@ typically obtained from the LOFAR `Long-Term Archive`_.
the full bandwidth. the full bandwidth.
- For the target pipeline you will need to have internet access from the machine you are running **LINC**. - For the target pipeline you will need to have internet access from the machine you are running **LINC**.
It is required in order to retrieve RM values from `CODE`_ and a global sky model (`TGSS`_ or `GSM`_). Both are hosted as online services. It is required in order to retrieve RM values from `GSSC`_ and a global sky model (`TGSS`_ or `GSM`_). Both are hosted as online services.
It is also possible to provide an own target skymodel to **LINC** (using the parameters ``target_skymodel``, and ``use_target``, see the :doc:`target<target>` pipeline parameter information). It is also possible to provide an own target skymodel to **LINC** (using the parameters ``target_skymodel``, and ``use_target``, see the :doc:`target<target>` pipeline parameter information).
.. note:: .. note::
...@@ -25,7 +25,7 @@ typically obtained from the LOFAR `Long-Term Archive`_. ...@@ -25,7 +25,7 @@ typically obtained from the LOFAR `Long-Term Archive`_.
Older versions of **LINC**: All input measurement-sets for one pipeline run need to be in the same directory. Older versions of **LINC**: All input measurement-sets for one pipeline run need to be in the same directory.
.. _CODE: http://ftp.aiub.unibe.ch/CODE/ .. _GSSC: ftp://gssc.esa.int/gnss/products/ionex/
.. _TGSS: http://tgssadr.strw.leidenuniv.nl/doku.php .. _TGSS: http://tgssadr.strw.leidenuniv.nl/doku.php
.. _GSM: http://172.104.228.177/ .. _GSM: http://172.104.228.177/
.. _Long-Term Archive: https://lta.lofar.eu .. _Long-Term Archive: https://lta.lofar.eu
...@@ -338,8 +338,8 @@ A comprehensive explanation of the baseline selection syntax can be found `here` ...@@ -338,8 +338,8 @@ A comprehensive explanation of the baseline selection syntax can be found `here`
*RMextract settings* *RMextract settings*
- ``ionex_server``: URL of the *IONEX* server (default: ``"http://ftp.aiub.unibe.ch/CODE/"``) - ``ionex_server``: URL of the *IONEX* server (default: ``"ftp://gssc.esa.int/gnss/products/ionex/"``)
- ``ionex_prefix``: the prefix of the *IONEX* files (default: ``CODG``) - ``ionex_prefix``: the prefix of the *IONEX* files (default: ``UQRG``)
- ``proxy_server``: specify URL or IP of proxy server if needed - ``proxy_server``: specify URL or IP of proxy server if needed
- ``proxy_port``: port of proxy server if needed - ``proxy_port``: port of proxy server if needed
- ``proxy_user``: user name of proxy server if needed - ``proxy_user``: user name of proxy server if needed
......
...@@ -44,8 +44,8 @@ def makesolset(MS, data, solset_name): ...@@ -44,8 +44,8 @@ def makesolset(MS, data, solset_name):
def main(MSfiles, h5parmdb, solset_name = "sol000",all_stations=True,timestepRM=300, def main(MSfiles, h5parmdb, solset_name = "sol000",all_stations=True,timestepRM=300,
ionex_server="http://ftp.aiub.unibe.ch/CODE/", ionex_server="ftp://gssc.esa.int/gnss/products/ionex/",
ionex_prefix='CODG',ionexPath="./",earth_rot=0,proxyServer=None,proxyPort=None,proxyType=None,proxyUser=None,proxyPass=None): ionex_prefix='UQRG',ionexPath="./",earth_rot=0,proxyServer=None,proxyPort=None,proxyType=None,proxyUser=None,proxyPass=None):
'''Add rotation measure to existing h5parmdb '''Add rotation measure to existing h5parmdb
Args: Args:
...@@ -214,10 +214,10 @@ if __name__ == '__main__': ...@@ -214,10 +214,10 @@ if __name__ == '__main__':
help='MS for which the parmdb should be created.') help='MS for which the parmdb should be created.')
parser.add_argument('h5parm', type=str, parser.add_argument('h5parm', type=str,
help='H5parm to which the results of the CommonRotationAngle is added.') help='H5parm to which the results of the CommonRotationAngle is added.')
parser.add_argument('--server', type=str, default='http://ftp.aiub.unibe.ch/CODE/', parser.add_argument('--server', type=str, default='ftp://gssc.esa.int/gnss/products/ionex/',
help='URL of the server to use. (default: http://ftp.aiub.unibe.ch/CODE/)') help='URL of the server to use. (default: ftp://gssc.esa.int/gnss/products/ionex/)')
parser.add_argument('--prefix', type=str, default='CODG', parser.add_argument('--prefix', type=str, default='UQRG',
help='Prefix of the IONEX files. (default: \"CODG\")') help='Prefix of the IONEX files. (default: \"UQRG\")')
parser.add_argument('--ionexpath', '--path', type=str, default='./', parser.add_argument('--ionexpath', '--path', type=str, default='./',
help='Directory where to store the IONEX files. (default: \"./\")') help='Directory where to store the IONEX files. (default: \"./\")')
parser.add_argument('--solsetName', '--solset', type=str, default='sol000', parser.add_argument('--solsetName', '--solset', type=str, default='sol000',
......
...@@ -7,7 +7,7 @@ import json ...@@ -7,7 +7,7 @@ import json
import numpy import numpy
############################################################################### ###############################################################################
def main(flagFiles = None, pipeline = 'LINC', run_type = 'calibrator', filtered_antennas = '[CR]S*&', bad_antennas = '[CR]S*&', output_fname = None, structure_file = None, Ateam_separation_file = None, solutions = None, clip_sources = '', demix_sources = '', demix = False, removed_bands = '', min_unflagged = 0.5, refant = ''): def main(flagFiles = None, pipeline = 'LINC', run_type = 'calibrator', filtered_antennas = '[CR]S*&', bad_antennas = '[CR]S*&', output_fname = None, structure_file = None, Ateam_separation_file = None, solutions = None, clip_sources = '', demix_sources = '', demix = False, removed_bands = '', min_unflagged = 0.5, refant = '', ionex = None):
""" """
Creates summary of a given LINC run Creates summary of a given LINC run
...@@ -152,6 +152,11 @@ def main(flagFiles = None, pipeline = 'LINC', run_type = 'calibrator', filtered_ ...@@ -152,6 +152,11 @@ def main(flagFiles = None, pipeline = 'LINC', run_type = 'calibrator', filtered_
except: except:
json_output['metrics'][pipeline]['stations'].append( {'station' : antenna, 'removed' : 'yes'}) json_output['metrics'][pipeline]['stations'].append( {'station' : antenna, 'removed' : 'yes'})
f.close() f.close()
## Used RMextract parameters
if not ionex:
ionex = 'NONE'
print('IONEX data used for this calibration run: ' + str(ionex) + '\n')
## printing results human readable ## printing results human readable
antennas = sorted([item['station'] for (i, item) in enumerate(station_statistics)]) antennas = sorted([item['station'] for (i, item) in enumerate(station_statistics)])
...@@ -235,10 +240,11 @@ if __name__=='__main__': ...@@ -235,10 +240,11 @@ if __name__=='__main__':
parser.add_argument('--removed_bands', type=str, default='', help='Comma-separated list of bands that were removed from the data') parser.add_argument('--removed_bands', type=str, default='', help='Comma-separated list of bands that were removed from the data')
parser.add_argument('--min_unflagged', type=float, default=0.5, help='Minimum fraction of unflagged data per band') parser.add_argument('--min_unflagged', type=float, default=0.5, help='Minimum fraction of unflagged data per band')
parser.add_argument('--refant', type=str, default='', help='Reference antenna used') parser.add_argument('--refant', type=str, default='', help='Reference antenna used')
parser.add_argument('--ionex', type=str, default=None, help='Used IONEX data for calibration')
args = parser.parse_args() args = parser.parse_args()
# start running script # start running script
main(flagFiles = args.flagFiles, pipeline = args.pipeline, run_type = args.run_type, filtered_antennas = args.filtered_antennas, bad_antennas = args.bad_antennas, output_fname = args.output_fname, structure_file = args.structure_file, Ateam_separation_file = args.Ateam_separation_file, solutions = args.solutions, clip_sources = args.clip_sources, demix_sources = args.demix_sources, demix = args.demix, removed_bands = args.removed_bands, min_unflagged = args.min_unflagged, refant = args.refant) main(flagFiles = args.flagFiles, pipeline = args.pipeline, run_type = args.run_type, filtered_antennas = args.filtered_antennas, bad_antennas = args.bad_antennas, output_fname = args.output_fname, structure_file = args.structure_file, Ateam_separation_file = args.Ateam_separation_file, solutions = args.solutions, clip_sources = args.clip_sources, demix_sources = args.demix_sources, demix = args.demix, removed_bands = args.removed_bands, min_unflagged = args.min_unflagged, refant = args.refant, ionex = args.ionex)
sys.exit(0) sys.exit(0)
...@@ -21,14 +21,14 @@ inputs: ...@@ -21,14 +21,14 @@ inputs:
- id: ionex_server - id: ionex_server
type: string? type: string?
doc: IONEX Server path doc: IONEX Server path
default: 'http://ftp.aiub.unibe.ch/CODE/' default: 'ftp://gssc.esa.int/gnss/products/ionex/'
inputBinding: inputBinding:
prefix: '--server' prefix: '--server'
position: 0 position: 0
- id: ionex_prefix - id: ionex_prefix
type: string? type: string?
doc: IONEX Prefix doc: IONEX Prefix
default: 'CODG' default: 'UQRG'
inputBinding: inputBinding:
prefix: '--prefix' prefix: '--prefix'
position: 0 position: 0
......
...@@ -129,6 +129,17 @@ inputs: ...@@ -129,6 +129,17 @@ inputs:
position: 0 position: 0
prefix: --output_fname prefix: --output_fname
doc: Name of the output file doc: Name of the output file
- id: ionex
default: false
type:
- string?
- boolean?
inputBinding:
position: 0
prefix: --ionex
separate: true
itemSeparator: ','
valueFrom: '$(self)'
outputs: outputs:
- id: summary_file - id: summary_file
doc: Summary File in JSON format doc: Summary File in JSON format
......
...@@ -115,10 +115,10 @@ inputs: ...@@ -115,10 +115,10 @@ inputs:
default: null default: null
- id: ionex_server - id: ionex_server
type: string? type: string?
default: 'http://ftp.aiub.unibe.ch/CODE/' default: 'ftp://gssc.esa.int/gnss/products/ionex/'
- id: ionex_prefix - id: ionex_prefix
type: string? type: string?
default: 'CODG' default: 'UQRG'
- id: proxy_server - id: proxy_server
type: string? type: string?
default: null default: null
......
...@@ -115,10 +115,10 @@ inputs: ...@@ -115,10 +115,10 @@ inputs:
default: null default: null
- id: ionex_server - id: ionex_server
type: string? type: string?
default: 'http://ftp.aiub.unibe.ch/CODE/' default: 'ftp://gssc.esa.int/gnss/products/ionex/'
- id: ionex_prefix - id: ionex_prefix
type: string? type: string?
default: 'CODG' default: 'UQRG'
- id: proxy_server - id: proxy_server
type: string? type: string?
default: null default: null
......
...@@ -115,10 +115,10 @@ inputs: ...@@ -115,10 +115,10 @@ inputs:
default: null default: null
- id: ionex_server - id: ionex_server
type: string? type: string?
default: 'http://ftp.aiub.unibe.ch/CODE/' default: 'ftp://gssc.esa.int/gnss/products/ionex/'
- id: ionex_prefix - id: ionex_prefix
type: string? type: string?
default: CODG default: UQRG
- id: proxy_server - id: proxy_server
type: string? type: string?
default: null default: null
...@@ -465,6 +465,10 @@ steps: ...@@ -465,6 +465,10 @@ steps:
source: wsclean_tmpdir source: wsclean_tmpdir
- id: make_structure_plot - id: make_structure_plot
source: make_structure_plot source: make_structure_plot
- id: apply_RM
source: apply_RM
- id: ionex_prefix
source: ionex_prefix
- id: selfcal - id: selfcal
source: selfcal source: selfcal
- id: selfcal_strategy - id: selfcal_strategy
......
...@@ -66,6 +66,12 @@ inputs: ...@@ -66,6 +66,12 @@ inputs:
- id: make_structure_plot - id: make_structure_plot
type: boolean? type: boolean?
default: true default: true
- id: apply_RM
type: boolean?
default: true
- id: ionex_prefix
type: string?
default: UQRG
- id: selfcal - id: selfcal
type: boolean? type: boolean?
default: false default: false
...@@ -267,6 +273,11 @@ steps: ...@@ -267,6 +273,11 @@ steps:
source: min_unflagged_fraction source: min_unflagged_fraction
- id: refant - id: refant
source: refant source: refant
- id: ionex
source:
- apply_RM
- ionex_prefix
valueFrom: '$(self[0] ? self[1] : false)'
out: out:
- id: summary_file - id: summary_file
- id: logfile - id: logfile
......
...@@ -87,10 +87,10 @@ inputs: ...@@ -87,10 +87,10 @@ inputs:
default: 48.82kHz default: 48.82kHz
- id: ionex_server - id: ionex_server
type: string? type: string?
default: 'http://ftp.aiub.unibe.ch/CODE/' default: 'ftp://gssc.esa.int/gnss/products/ionex/'
- id: ionex_prefix - id: ionex_prefix
type: string? type: string?
default: CODG default: UQRG
- id: proxy_server - id: proxy_server
type: string? type: string?
default: null default: null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment