Basic Example#
In this example two input files are used to generate a basic data set for an Earth-like planet orbiting a Sun-like star 10 pc away. No GPUs are specified and hence the code is run on the CPU.
Import modules and specify paths#
[7]:
from pathlib import Path
import matplotlib.pyplot as plt
from phringe.api import PHRINGE
config_file_path = Path('../_static/config.py')
Run PHRINGE on CPU#
[8]:
phringe = PHRINGE()
phringe.run(
config_file_path=config_file_path,
write_fits=False,
create_copy=False
)
Get and Plot Data#
[9]:
data = phringe.get_data()
plt.imshow(data[0], cmap='Greys')
plt.title('Synthetic Data')
plt.ylabel('Wavelength Channel')
plt.xlabel('Time Step')
plt.colorbar()
plt.show()
[ ]: