Giter VIP home page Giter VIP logo

xlines's Introduction

xlines

x lines of Python

An Agile blog series exploring common geosciencey workflows in x lines, where ideally x โ‰ค 10 but not necessarily.

Terms of engagement

  • One line per English-language sentence.
  • No semi-colons or line continuation.
  • Lines can be broken for readability, especially sequence items, or function arguments.
  • import statements and comments don't count. I'm really interested in the bits of code that do the thing, whatever that is.
  • But we can only import libraries on conda-forge or PyPi.
  • Plotting and other kinds of inspection don't count, unless they're central to the point of the code. They're more just for seeing what you're doing.

Running the notebooks

Run in Binder

Binder

Run in Colaboratory

Open In Colab

Running the notebooks locally

If you want to run the notebooks on your own computer, I recommend installing miniconda, or Anaconda. To make an environment for this notebook, download this repo, then you can do this in a terminal (or cmd prompt on Windows):

# First, cd to the repo folder you just downloaded.

# Make the environment:
conda env create -f environment.yml

# Start it:
conda activate xlines

# Add it to Jupyter's kernels:
python -m ipykernel install --user --name xlines

# Now start Jupyter Notebook:
jupyter notebook

xlines's People

Contributors

jesperdramsch avatar kwinkunks avatar leouieda avatar mtb-za avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xlines's Issues

Missing Verde import before creating grid coordinates

@kwinkunks the code for creating the coordinates is using verde before importing it. Should I change this back to using mgrid like in the blog post? Spline.grid doesn't actually need these arrays as it generates them internally. I like the verde.grid_coordinates function because it deals with the tricky situation of grid spacings not being a multiple of the desired grid extent. There are sorts of corner cases that it has to deal with (see http://www.fatiando.org/verde/dev/api/generated/verde.grid_coordinates.html).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.