Usage for getNearestFlux

Return to directory of Todd's CASA extensions

Note: This class is obsoleted by the function au.searchFlux().

This class can be used in CASA to quickly look up the fluxes of a quasar at a certain date. After initializing analysisUtils you can call it.
   gn = au.getNearestFlux()
   gn.searchFlux(sourcename='NAME',date='DATE', frequency=YYY)
sourcename
required string. E.g. '3c454.3'. Name of the quasar. Note that a precise name must be given.
date
optional string. E.g. '20120101' for Jan 1st 2012. Must be a string of the form YYYYMMDD, or a blank string or None for today
frequency
Optional float. Give the frequency in GHz. (e.g. 345 for 345 GHz) you want to give the flux. It will identify the band. For high frequencies everything upwards from 300 GHz will be given (e.g. if frequency = 690, all measurements between 300 and 1000 GHz will be displayed. If not frequency is given, the frequency is set at 100 GHz (Band 3).
Catalogues included: ALMA, SMA, VLA, ATCA, OVRO.

To run this from outside of JAO, you need to have an account on tatio.aiv.alma.cl (or login.alma.cl), and open an ssh tunnel:
Open two Terminal windows.
in unix_window1% ssh -L 8080:aurora.osf.alma.cl:8080 username@tatio.aiv.alma.cl
in unix_window2% casapy
CASA <2>: nf = au.getNearestFlux(tunnel=True)
CASA <3>: nf.searchFlux('J1058+015','20120101',283)
Source :  J1058+015  Requested Frequency :  283  GHz , Date Requested :  20120101
 Rank  | Flux      | Date      | Meas. Freq
    1  |  2.26 Jy | 20111113  |  343.25  GHz
    2  |  2.4 Jy | 20111101  |  343.25  GHz
    3  |  1.62 Jy | 20100401  |  352.697009412  GHz
Only  3  measurements found in total

Another way to do it is to use FoxyProxy in firefox to set up a SOCKS proxy (see these instructions).

-- ToddHunter - 2012-04-04
Topic revision: r6 - 2012-08-30, 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