Skip to content

Instantly share code, notes, and snippets.

@astrojuanlu
astrojuanlu / ucs_db_pandas.ipynb
Last active August 29, 2015 13:57
Mis primeros pasos con pandas analizando la UCS Satellite Database.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astrojuanlu
astrojuanlu / razones_python.ipynb
Created March 16, 2014 21:45
Ventajas de Python frente a otras herramientas.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astrojuanlu
astrojuanlu / Survey of missions and sensors - Data.csv
Last active August 29, 2015 14:00
Survey of sensors and missions
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 32 columns, instead of 9 in line 3.
Name of satellite,Satellite mass (kg),Satellite power (W),Name of sensor,Kind,Payload mass (kg),Payload power (W),Instrument Length (m),Instrument Width (m),Instrument Height (m),Altitude (km),Period (min),ECT (desc),Aperture (m),Focal length (m),FOV (deg),Swath (km),Resolution (m),Pixel size (μm),Array size (Mpixel),Bit depth,Data size (Mbit),Off-nadir pointing (deg),Pointing accuracy (deg),Attitude pointing knowledge (deg),Pointing agility (deg/s),Downlink (Mbit/s),Storage (Gbit),Comments,Source EOPortal,Source WMO OSCAR (Sensor),Source vendor
Comment,,,,,,,,,,At perigee,,Equator Crossing Time (descending node) or Mean Local Time at Descending Node,Aperture of primary mirror,,Field of view,,Spatial resolution at nadir,,,,Uncompressed scene size,,,,Best rate of slew maneuver,,,,,,
IKONOS-2,871,1500,OSA,PAN,171,350,1.524,0.787,0.787,681,98,10:30,0.70,10,1.19,13,1,12,,11,,30,,,,320,64,,https://directory.eoportal.org/web/eoportal/satellite-missions/i/ikonos-2,,
QuickBird-2,1100,1500,BHRC 60,PAN,380,430,1.95,1.1
@astrojuanlu
astrojuanlu / requirements.txt
Created July 26, 2014 09:18
Paquetes necesarios para el libro "Learning NumPy Array". Reseña en español en http://pybonacci.wordpress.com/2014/07/26/resena-del-libro-learning-numpy-array-de-ivan-idris/. // Required packages for the book "Learning NumPy Array". Review in English at [].
# Required packages for the book "Learning NumPy Array"
# $ conda create -p venv python=2.7 --file requirements.txt
# $ source venv/bin/activate venv
numpy<=1.9.0
scipy<=0.14
ipython<=2.0.0
matplotlib<=1.4.0
cython<=0.17
pandas<=0.8.2
statsmodels<=0.6.0
@astrojuanlu
astrojuanlu / CMakeError.log
Created January 6, 2015 14:31
DOLFIN compilation error with PETSc
Performing C++ SOURCE FILE Test PETSC_CUSP_FOUND failed with the following output:
Change Dir: /home/juanlu/miniconda3/conda-bld/work/dolfin-1.4.0/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3430642007/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3430642007.dir/build.make CMakeFiles/cmTryCompileExec3430642007.dir/build
make[1]: Entering directory `/home/juanlu/miniconda3/conda-bld/work/dolfin-1.4.0/build/CMakeFiles/CMakeTmp'
/home/juanlu/miniconda3/envs/_build/bin/cmake -E cmake_progress_report /home/juanlu/miniconda3/conda-bld/work/dolfin-1.4.0/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec3430642007.dir/src.cxx.o
/usr/bin/c++ -std=c++11 -DPETSC_CUSP_FOUND -fopenmp -I/home/juanlu/miniconda3/envs/_build/lib/python2.7/site-packages/petsc/include -I/home/juanlu/miniconda3/envs/_build/include -o CMakeFiles/cmTryCompileExec3430642007.dir/src.cxx.o -c /home/juanlu/miniconda3/conda-bld/work/dolfin-1.4.0/build/CMakeFiles/CMakeTmp/s
@astrojuanlu
astrojuanlu / output.log
Created January 8, 2015 17:41
AQUAgpusph installation trial
juanlu@minted ~/Development/Python/aquagpusph $ cmake -DAQUAGPUSPH_3D=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .
-- prefix: /usr
-- datadir: share/aquagpusph
-- docdir: share/doc/aquagpusph
-- bindir: bin
-- examplesdir:
CMake Warning at cMake/FindOpenCL.cmake:150 (MESSAGE):
Cannot determine OpenCL's version
Call Stack (most recent call first):
CMakeLists.txt:135 (FIND_PACKAGE)
/home/juanlu/miniconda3/envs/fenics27/lib/python2.7/site-packages/dolfin/cpp/_common.so: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/juanlu/miniconda3/envs/fenics27/lib/python2.7/site-packages/dolfin/cpp/_common.so)
/home/juanlu/miniconda3/envs/fenics27/lib/python2.7/site-packages/dolfin/cpp/_common.so: /usr/lib/x86_64-linux-gnu/libgomp.so.1: version `GOMP_4.0' not found (required by /home/juanlu/miniconda3/envs/fenics27/lib/python2.7/site-packages/dolfin/cpp/../../../../libdolfin.so.1.4)
/home/juanlu/miniconda3/envs/fenics27/lib/python2.7/site-packages/dolfin/cpp/_common.so: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/juanlu/miniconda3/envs/fenics27/lib/python2.7/site-packages/dolfin/cpp/../../../../libdolfin.so.1.4)
/home/juanlu/miniconda3/envs/fenics27/lib/python2.7/site-packages/dolfin/cpp/_common.so: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/juanlu/mini
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
@astrojuanlu
astrojuanlu / navier_plate_numba.py
Created January 24, 2015 10:58
Navier solution of a simply supported rectangular plate accelerated using numba in nopython mode.
# coding: utf-8
"""Navier solution of a simply supported rectangular plate.
Accelerated using numba in nopython mode.
Author: Juan Luis Cano Rodríguez <juanlu001@gmail.com>
References
----------
* Timoshenko, S., & Woinowsky-Krieger, S. (1959). "Theory of plates and
@astrojuanlu
astrojuanlu / error.log
Created March 3, 2015 20:00
Error log when trying to use Xfoil_interaction.
===================================================
XFOIL Version 6.99
Copyright (C) 2000 Mark Drela, Harold Youngren
This software comes with ABSOLUTELY NO WARRANTY,
subject to the GNU General Public License.
Caveat computor
===================================================