getjyperkalma
- getjyperkalma(vis, caltable='', infile='', endpoint='asdm', timeout=180, retry=3, retry_wait_time=5, spw='', pol='', backup_hosts='')[source]
A new task dedicated to Jy/K calibration
[Description] [Examples] [Development] [Details]
- Parameters
vis (path) - Name of input visibility file
caltable (string=’’) - Name of input calibration table
infile (string=’’) - Input ancilliary file
endpoint (string=’asdm’) - Input endpoint of the Jy/K DB Web API: (asdm, model-fit, interpolation)
timeout (int=180) - Maximum waiting time [sec] for the Web API access
retry (int=3) - Number of retry when the Web API access fails
retry_wait_time (int=5) - Waiting time [sec] until next query
spw (string=’’) - Select spectral window/channels
pol (string=’’) - Calibration polarizations(s) selection
backup_hosts (stringVec=’’) - List of Jy/K DB Web API URLs
- Description
This task generates Jy/K calibration table for ALMA Total Power data. The task without ‘infile’ sub-parameter queries Jy/K DB from the environmental variable JYPERKDB_URL (https://asa.alma.cl/science/jy-kelvins), if available, via the internet to obtain Jy/K factors and generate a caltable. Jy/K factors can also be taken from the backup hosts or from a file in the local storage specified by the ‘infile’ sub-parameter to generate a caltable.
Task queries the information with the following priorities (if available), in order:
JYPERKDB_URL
Backup host 1
Backup host 2
…
infile
- Examples
getjyperkalma usage for an infile.
getjyperkalma(vis='test.ms', caltable='test.G', infile='jyperk_factor_csv')
Retrieve the factors with backup URLs if JYPERKDB_URL is unavailable, and fall back on one from backup_hosts. If JYPERKDB_URL is accessible, the fallback does not occur.
getjyperkalma(vis='test.ms', caltable='test.G',backup_hosts=[https://backup1.url/jy-kelvins',"https://backup2.url/jy-kelvins"])
- Development
No additional development details
- Parameter Details
Detailed descriptions of each function parameter
vis (path)- Name of input visibility fileDefault: noneExample: vis=’ngc5921.ms’caltable (string='')- Name of input calibration tableDefault: noneIf the calibration table specified by this parameter does not exist,it will be created.If the table already exists,the new calibration solutions will be added cumulatively to the existing contents.Only a single timestamp is currently supported for all calibration entries in the table.Important:Do not use a calibration table created by other calibration tasks such asgaincal, bandpass, etc.Example:caltable=’test.G’infile (string='')- Input ancilliary fileDefault: noneThe format of the file in case of ‘antpos’ is JSON.The file contains the information about the antennapositions as well as some metadata. As a reference,this code snippet would create the most minimal JSON filethat can be used by gencal::import json…with open(“outfile.json”, “w”) as f:json.dump({“data”:{“ANT1” : [500000, 500000, 500000]}, “metadata” : {“product_code”: “antposalma”} }, f)endpoint (string='asdm')- Input endpoint of the Jy/K DB Web API.Default: ‘asdm’Options: ‘asdm’, ‘model-fit’, ‘interpolation’The ‘interpolation’ option may not work for the data after 2019.timeout (int=180)- Maximum waiting time [sec] for the Web API access.Default: 180retry (int=3)- Number of retry when the Web API access fails.Default: 3retry_wait_time (int=5)- Waiting time [sec] until next query, when the Web API access fails.Default: 5spw (string='')- Select spectral window/channelsDefault: ‘’ (all spectral windows and channels)Examples: spw=’0~2,4’; spectral windows 0,1,2,4 (all channels) spw=’<2’; spectral windows less than 2 (i.e. 0,1) spw=’0:5~61’; spw 0, channels 5 to 61 spw=’0,10,3:3~45’; spw 0,10 all channels, spw3 - chans 3 to 45. spw=’0~2:2~6’; spw 0,1,2 with channels 2through 6 in each.spw = ‘*:3~64’ channels 3 through 64 for all sp id’sspw = ‘ :3~64’ will NOT work.pol (string='')- Polarization selection for specified parametersDefault: pol=’’ (specified parameters apply toall polarizations)Example: pol=’R’ (specified parameters toapply to R only)backup_hosts (stringVec='')- List of Web API base URLs used for Jy/K calibration queries.The task will try the URLs in the given order.Example: