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
from spice import * | |
furnsh('mars.mk') | |
utc = '2006 JAN 30 12:00:00.000' | |
et = utc2et(utc) | |
print et |
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
\begindata | |
KERNELS_TO_LOAD = ( | |
'/Users/aye/Data/spice/mars/naif0009.tls' | |
'/Users/aye/Data/spice/mars/mars_iau2000_v0.tpc' | |
'/Users/aye/Data/spice/mars/mar063.bsp' | |
'/Users/aye/Data/spice/mars/mgs_ext22.bsp' | |
) | |
\begintext |
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
import pandas | |
from StringIO import StringIO | |
s = '"09-Apr-2012", "01:10:18.300", 2456026.548822908, 12849, 1.00361, 1.12551, 330.65659, 0355626618.16711, 73.48821, 314.11625, 1917.09447, 179.71425, 80.000, 240.000, -350, 70.06056, 344.98370, 1, 1, -0.689265, -0.692787, 0.212036, 14.7674, 41.605, -9999.0, -9999.0, -9999.0, -9999.0, -9999.0, -9999.0, 000, 012, 128' | |
sfile = StringIO(s) | |
# it's 33 columns | |
pandas.io.parsers.read_csv(sfile, names=range(33), na_values=['-9999.0'])[29] | |
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
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python | |
from visual import * | |
scene = display(title='Illumination angles', x=200, y=200, width=600, height=600) | |
scene.forward = (0, 1,-1) | |
scene.range=60 | |
scene.up = (0,0,1) | |
plane = box(pos = (0,0,0),length=100,height=100,width=0.1, | |
opacity=0.5,color=color.orange) |
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
<?xml version="1.0"?> | |
<root> | |
<deviceproductdef> | |
<productname>APPLE_INTERNAL_KEYBOARD_TRACKPAD_0x024c</productname> | |
<productid>0x024c</productid> | |
</deviceproductdef> | |
<deviceproductdef> | |
<productname>APPLE_WIRELESS_KEYBOARD_0x22c</productname> | |
<productid>0x22c</productid> | |
</deviceproductdef> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import os | |
from datetime import datetime as dt | |
class FileName(object): | |
"""Managing class for file name attributes """ | |
def __init__(self, fname): | |
super(FileName, self).__init__() | |
self.basename = os.path.basename(fname) | |
self.dirname = os.path.dirname(fname) |
OlderNewer