Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 10.
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
"REGION","MODEL","SCENARIO","WHAT","TSYEAR","TSVALUE" | |
"AFR","History","CEDS","CEDS+|9+ Sectors|Emissions|BC|Agricultural Waste Burning|Harmonized",1990,0.060111363426 | |
"AFR","History","CEDS","CEDS+|9+ Sectors|Emissions|BC|Agricultural Waste Burning|Harmonized",1990,0.060111363426 | |
"AFR","History","CEDS","CEDS+|9+ Sectors|Emissions|BC|Agricultural Waste Burning|Harmonized",1991,0.066719862828 | |
"AFR","History","CEDS","CEDS+|9+ Sectors|Emissions|BC|Agricultural Waste Burning|Harmonized",1991,0.066719862828 | |
"AFR","History","CEDS","CEDS+|9+ Sectors|Emissions|BC|Agricultural Waste Burning|Harmonized",1992,0.06319255648 | |
"AFR","History","CEDS","CEDS+|9+ Sectors|Emissions|BC|Agricultural Waste Burning|Harmonized",1992,0.06319255648 | |
"AFR","History","CEDS","CEDS+|9+ Sectors|Emissions|BC|Agricultural Waste Burning|Harmonized",1993,0.064592366254 | |
"AFR","History","CEDS","CEDS+|9+ Sectors|Emissions|BC|Agricultural Waste Burning|Harmonized",1993,0.064592366254 | |
"AFR","History","CEDS","CEDS+|9+ Sectors|Emissions|BC|Agricultural W |
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
x = xr.open_dataset('wind5min100m.nc').Band1 | |
x.isnull().count() | |
<xarray.DataArray 'Band1' ()> | |
array(9331200) # should be 0, right? |
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
def numcols(df): | |
"""Returns columns in dataframe with numeric types""" | |
dtypes = df.dtypes | |
return [i for i in dtypes.index if dtypes.loc[i].name.startswith(('float', 'int'))] |
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
#!/usr/bin/env python | |
import argparse | |
import glob | |
import os | |
import shutil | |
import subprocess | |
def main(): |
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
{% extends "!layout.html" %} | |
{%- block linktags %} | |
{%- if hasdoc('about') %} | |
<link rel="author" title="{{ _('About these documents') }}" | |
href="{{ pathto('about') }}"/> | |
{%- endif %} | |
<!-- {%- if hasdoc('genindex') %} | |
!-- <link rel="index" title="{{ _('Index') }}" | |
!-- href="{{ pathto('genindex') }}"/> | |
!-- {%- endif %} --> |
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
wget https://www.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc |
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
$ jupyter nbconvert --to pdf --template r.tplx hh_data.ipynb | |
[NbConvertApp] WARNING | Collisions detected in jupyter_nbconvert_config.py and jupyter_nbconvert_config.json config files. jupyter_nbconvert_config.json has higher priority: { | |
"Exporter": { | |
"template_path": "['.', '/home/gidden/.local/share/jupyter/templates'] ignored, using [u'/home/gidden/.local/share/jupyter/templates']" | |
} | |
} | |
[NbConvertApp] Converting notebook kevin_hh_data.ipynb to pdf | |
[NbConvertApp] Writing 20356 bytes to notebook.tex | |
[NbConvertApp] Building PDF | |
[NbConvertApp] Running pdflatex 3 times: [u'pdflatex', u'notebook.tex'] |
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
--------------------------------------------- | |
CMake 3.5.20160301, Copyright 2000-2016 Kitware, Inc. | |
C compiler on this system is: cc | |
C++ compiler on this system is: CC | |
Makefile processor on this system is: gmake | |
CC is not GNU compiler | |
CC is SolarisStudio compiler | |
CC has setenv | |
CC has unsetenv | |
CC does not have environ in stdlib.h |
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
~/work/pyomo/pyomo$ svn up | |
Updating '.': | |
At revision 11187. | |
~/work/pyomo/pyomo$ cd ~/tmp | |
~/tmp$ python write.py | |
~/tmp$ diff modelb.mps model.lp # no difference, same file |
NewerOlder