This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ObservationTools | |
channels: | |
- !!python/unicode | |
'defaults' | |
dependencies: | |
- !!python/unicode | |
'openssl=1.0.2k=1' | |
- !!python/unicode | |
'pip=9.0.1=py27_1' | |
- !!python/unicode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form class="form-horizontal" enctype="multipart/form-data" action="/cgi-bin/ewConf.py" method="post"> | |
<label class="control-label col-sm-2">Spectrum:</label> | |
<input type="file" name="spectrum" class="btn btn-default" placeholder="Enter fits spectrum" required> | |
<button type="submit" class="btn btn-default">Submit</button> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This small example that shows how to use python to work with SWEET-Cat | |
https://www.astro.up.pt/resources/sweet-cat/ | |
It use the PyAstronomy package which can be found here | |
https://github.com/sczesla/PyAstronomy | |
http://www.hs.uni-hamburg.de/DE/Ins/Per/Czesla/PyA/PyA/index.html | |
The package can be installed with pip | |
pip install PyAstronomy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fields = ['star', 'teff', 'erteff', 'logg', 'erlogg', 'logghip', 'erlogg', 'vt', 'ervt', 'metal', 'ermetal'] | |
df = pd.read_csv('harps_all.dat', usecols=fields, delimiter=r'\s+') | |
print df.head() | |
print df.star | |
print df.ervt | |
print df['ervt'] |