Radio BErkeley Atmospheric Radiative-transfer (RadioBEAR)
planetary atmosphere code to calculate the brightness temperature of planetary atmospheres in the meter-to-millimeter wavelength range.
If used, please reference
Installing:
pip install .
)*initial_planet_setup.py
[*NB: python setup.py install does not work.]
Before you start edit the config file to be what you want:
config.par
in each of the planet sub-directoriesconfig='filename'
, which must reside within default_config.json
and default_state.json
, which also sets up which parameters are contained within the config.update_config
methodHere is an example, from working area:
~/rbwork> from radiobear import planet
~/rbwork> j = planet.Planet('jupiter')
~/rbwork> catch_data = j.run(freqs='1:100:5', b='disc')
time-stamped data file is written to Output
run log file is written to Logs
catch_data
is an instance of DataReturn
, which holds the data you probably want.
options for name: Jupiter
, Saturn
, Uranus
, Neptune
examples for freqs:
freqs = 1.42
==> single frequency at 1.42 GHzfreqs = [1.4,2.5,5.5,8.4,12.1]
==> uses these frequencies (can be a list, csv string or numpy array)freqs = '1:10:1'
==> this will generate a range as start:stop:step (stop is always included)freqs = '1;100;20'
==> this will generate a log range as start;stop;nvaluesfreqs = 'freq.dat'
==> (string within '') reads in those frequencies, one per lineexamples for b:
b = 0.1
==> generates a full image at that resolution (see blocks)b = 'stamp'
==> generates a small image (queries for extents)b = [[0.0,0.0],[0.1,0.0],...]
==> generates at listed pointsb = [0.0,0.0]
==> same as above at that one pointb = 'disc'
==> disc-averaged brightness temperatureb = '0.0,0.2,0.4,0.6,0.8,1.0<45'
==> will use those values as an angle of 45deg, (default angle is 0.0)b = '0.0:1.0:0.1<45'
==> range start:stop:step======== Routines for viewing the data files in the Output directory are in the 'plotting.plt' module.
To view spectra try:
> from radiobear.plotting import plt
> d=plt.Tb(legend=True)
See options under plt.Tb()