projectCodeFromDataset

Return to directory of Todd's CASA extensions

Consults an online table on F. Stoehr's machine in order to locate the project code, SB name, and MOUS for a dataset. See also projectCodeFromSB and datasetsForProjectCode.

Usage:

au.projectCodeFromDataset(dataset, wget='wget', verbose=False, overwrite=False)
Inputs:
  • dataset: ASDM or ms
  • wget: the path to the wget executable on your machine (in case it is not found automatically)
  • verbose: if True, then print complete information
  • overwrite: if True, then download new copy of the table (fstoehr.txt); otherwise use the one in the current directory
Returns: project code, SB name, MOUS, and ALMA_region (both as strings)

Example:

CASA <2>: au.projectCodeFromDataset('uid___A002_Xa25bbf_X881e')
  Out[2]: ('2013.1.00524.S', '"IC5179_a_09_TE"', 'uid___A001_X121_X12b', 'NA')

-- ToddHunter - 2015-09-05
Topic revision: r4 - 2016-02-01, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback