version 1.1, 2019/02/22 22:26:44
|
version 1.2, 2019/02/24 18:34:11
|
Line 104 animate - set to zero to plot a still im |
|
Line 104 animate - set to zero to plot a still im |
|
show - set to zero to turn off image display. typically useful only | show - set to zero to turn off image display. typically useful only |
if you are writing images to disk. | if you are writing images to disk. |
| |
in an ipython session, the values of colorshift, dpi, and nframes will |
in an ipython session, the colormap and plotting variable will be saved |
be saved between invocations of the script. so will the colormap, |
between invocations of the script, as will the most recent values of l, |
plotting variable, and the most recent values of l, m, and n. saving, |
m, and n. saving, however, must be turned on with very invocation. |
however, must be turned on with very invocation. |
|
| |
| |
Section 2: addharmonics.py | Section 2: addharmonics.py |
Line 125 run the script again. |
|
Line 124 run the script again. |
|
this script also has an additional input parameter, freqscale. this is | this script also has an additional input parameter, freqscale. this is |
the floating point value by which to multiply the frequencies of the | the floating point value by which to multiply the frequencies of the |
modes. these frequencies come from a model. since they are given in | modes. these frequencies come from a model. since they are given in |
units of millihertz and the sun's peak acoustic power occurs at about 3 mHz, |
units of millihertz and the sun's peak acoustic power occurs at about 3 |
the default value of freqscale is 1/3 . to |
mHz, the default value of freqscale is 1/3 . to see the sum evolve |
see the sum evolve further in time, increase freqscale. you may want to |
further in time, increase freqscale. you may want to simultaneously |
simultaneously increase nframes. |
increase nframes. |
|
|
when we evolve the sum in time for the animation, it may so happen that a |
when we evolve the sum in time for the animation, it may so happen that |
frame will exceed the data range of the first frame, which is what we use |
a frame will exceed the data range of the first frame, which is what we |
by default to set the color scaling. by setting colorshift=2, you can tell |
use by default to set the color scaling. by setting colorshift=2, you |
the script to scan through the frames ahead of time and set the range |
can tell the script to scan through the frames ahead of time and set the |
of the color scale accordingly. however, the default setting would only result |
range of the color scale accordingly. however, the default setting |
in some areas of the image being saturated, and this may be perfectly acceptable |
would only result in some areas of the image being saturated, and this |
for many purposes. |
may be perfectly acceptable for many purposes. |
| |
another difference is that the value of n is used to compute all | another difference is that the value of n is used to compute all |
plotting variables, because the modes are added together according to | plotting variables, because the modes are added together according to |