File: example-python.xml

package info (click to toggle)
gyoto 2.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,444 kB
  • sloc: cpp: 42,330; sh: 4,512; python: 3,436; xml: 2,865; makefile: 691; ansic: 346
file content (64 lines) | stat: -rw-r--r-- 1,844 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Scenery>

  The goal of this example is to exhibit using a Metric and a Spectrum
  coded in Python. It is functionaly equivalent to
  example-fixed-star-minkowski-cartesian.xml in the main Gyoto example
  directory.

  An optically thin blob centered on the origin of the coordinate
  system, in flat space-time. Computation uses the Cartesian
  coordinates.

  <Metric kind = "Python">
    <Mass unit="sunmass"> 4e6 </Mass>
    <Cartesian/>
    <Module>gyoto_sample_metrics</Module>
    <Class>Minkowski</Class>
  </Metric>

  <Screen>
    <Distance unit="kpc"> 8 </Distance>
    <Time unit="yr"> 30e3 </Time>
    <FieldOfView unit="microas"> 150 </FieldOfView>
    In UTF-8 locales, "microas" may be written "µas".
    <Inclination unit="degree"> 90 </Inclination>
    In UTF-8 locales, "degree" may be written "°".
    <PALN> 0 </PALN>
    <Argument> 0 </Argument>
    <Resolution> 32 </Resolution>
  </Screen>

  <Astrobj kind = "FixedStar">
    <Radius> 12 </Radius>
    <Position> 0 0 0 </Position>
    <UseGenericImpact/>
    <Spectrum kind="Python">
      <Module>gyoto_sample_spectra</Module>
      <Class>PowerLaw</Class>
      <Constant>0.001</Constant>
      <Exponent>0.</Exponent>
    </Spectrum>
    <Opacity kind="Python">
      <Module>gyoto_sample_spectra</Module>
      <Class>PowerLaw</Class>
      <Constant>0.001</Constant>
      <Exponent>0.</Exponent>
    </Opacity>
    <OpticallyThin/>
  </Astrobj>

  <Delta> 1e0 </Delta>
  <MinimumTime> 0. </MinimumTime>
  <Quantities>
    Intensity
  </Quantities>
  One can also specify a unit (if Gyoto was compiled with --with-udunits):
    Intensity[mJy/pix²]
    Intensity[mJy/µas²]
    Intensity[J.m-2.s-1.sr-1.Hz-1]
    Intensity[erg.cm-2.s-1.sr-1.Hz-1]
    Intensity[mJy.sr-1]
    Intensity[Jy.sr-1]

</Scenery>