Plotweather: Difference between revisions

From CASA Guides
Jump to navigationJump to search
Thunter (talk | contribs)
No edit summary
Thunter (talk | contribs)
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
This page documents the '''plotWeather''' function of Python module [[Analysis Utilities|analysisUtils]].
This page documents the '''plotWeather''' function of Python module [[Analysis Utilities|analysisUtils]].


Compiles and plots the major weather parameters from the ALMA (or the EVLA) weather station as recorded in the specified MS, for the duration of the MS. (Note: plotweather and plotWeather are synonyms.)  
Compiles and plots the major weather parameters from the ALMA (or the EVLA) weather station(s) as recorded in the specified MS, for the duration of the MS. (Note: plotweather and plotWeather are synonyms.)  


==Examples==
==Usage==


<source lang="python">
<source lang="python">
# In CASA
# In CASA
au.plotWeather(vis='',figfile='',help=True)
au.plotWeather(vis='',figfile='', station=[], asdm='')
</source>
</source>
<code><pre>
 
plotWeather(vis='', figfile='')
  * Plots the ambient pressure, temperature, relative humidity, wind speed and direction.
  Plots pressure, temperature, relative humidity, wind speed and direction.
  * Station can be a single integer or integer string, or a list of two integers. The default
  The default plot file name will be 'vis'.weather.png.
    empty list means to plot all data from up to 2 of the stations present in the data, which
</pre></code>
    is typical for ALMA data (WSTB1, WSTB2)
  * The default plot file name will be 'vis'.weather.png.
  * If the asdm is specified, the plot title will include the station names from the Station.xml table.
  * If the vis is not found, but asdm is found, it will call [https://safe.nrao.edu/wiki/bin/view/ALMA/PlotWeatherFromASDM plotWeatherFromASDM]
 
==Examples==


<source lang="python">
<source lang="python">
# In CASA
# In CASA
au.plotWeather('Band7multi_april22.ms')
au.plotWeather('X3c1.ms')
</source>
</source>


[[File:Band7multi april22.ms.weather.png]]
[[File:X3c1.ms.weather2.png]]

Latest revision as of 16:16, 18 January 2013

Return to Analysis Utilities

This page documents the plotWeather function of Python module analysisUtils.

Compiles and plots the major weather parameters from the ALMA (or the EVLA) weather station(s) as recorded in the specified MS, for the duration of the MS. (Note: plotweather and plotWeather are synonyms.)

Usage

# In CASA
au.plotWeather(vis='',figfile='', station=[], asdm='')
  * Plots the ambient pressure, temperature, relative humidity, wind speed and direction.
  * Station can be a single integer or integer string, or a list of two integers. The default 
    empty list means to plot all data from up to 2 of the stations present in the data, which
    is typical for ALMA data (WSTB1, WSTB2) 
  * The default plot file name will be 'vis'.weather.png.
  * If the asdm is specified, the plot title will include the station names from the Station.xml table.
  * If the vis is not found, but asdm is found, it will call plotWeatherFromASDM

Examples

# In CASA
au.plotWeather('X3c1.ms')