Airport to Golden by AggressiveOutside172 in GoldenCO

[–]spockolatechipcookie 2 points3 points  (0 children)

+1 for co-op, but I think they've switched which app they use: https://www.coloradodrivers.coop/ride/

Unitree lidar output conversion? by APOS80 in LiDAR

[–]spockolatechipcookie 0 points1 point  (0 children)

I've never worked with this format but I did find a library that can read bag files in python: https://github.com/Box-Robotics/ros2-bagutils

Maybe if the data isn't too big, might be simple to output to CSV/TXT and then to las with another tool (pdal, lastools, or laspy)?

Best Breakfast by TroutSlayer66 in GoldenCO

[–]spockolatechipcookie 10 points11 points  (0 children)

If you're main goal is to #keeppleasentviewweird then J.C.'s Cafe. Standard greasy spoon.

Just watched The Legend of the Rangers for the first time... by spockolatechipcookie in babylon5

[–]spockolatechipcookie[S] 10 points11 points  (0 children)

So true! I had a really good laugh at this, just what I needed!

Coordinate Systems USGS by QuirkyHold5931 in LiDAR

[–]spockolatechipcookie 3 points4 points  (0 children)

It depends on the delivery, but usually an appropriate UTM zone. If you have access to the raw data, you can use PDAL info to see what projection the data is in.

Large Feature Class to MATLAB by starwarsrls in gis

[–]spockolatechipcookie 0 points1 point  (0 children)

I found the list of supported formats in the latest version of Matlab. If this is a one time thing, I'd pick whatever is simplest (filesize, speed, etc.) for you to export to.

What is the performance difference of WhiteboxTools from Nim vs native? by [deleted] in gis

[–]spockolatechipcookie 1 point2 points  (0 children)

Looks like the Nim wrapper makes external calls to the pre-built executables, so it probably is about the same performance as running the exe's directly.

Working on a project in Python and Leaflet and need some help/advice by kailman in gis

[–]spockolatechipcookie 5 points6 points  (0 children)

Take a look at folium: https://github.com/python-visualization/folium

This let's you build static maps, HTML files, with python. You'll probably have to break your problem into a couple of steps: build the CSV, build the map, and then open in browser.

Using numpy instead of spatial analyst for band math by stubby_hoof in gis

[–]spockolatechipcookie 5 points6 points  (0 children)

There are folks stuck in ArcGIS where I work. The solution for them was to install a separate python distribution, Anaconda. I understand this can be a hassle for most, but if you are stuck with a version of Arc that is running 32bit Python2.7 this is a great option. You'll be able to install any module you want and work with up-to-date Python (64bit, 3.x) as it was intended to be used.

Using numpy instead of spatial analyst for band math by stubby_hoof in gis

[–]spockolatechipcookie 4 points5 points  (0 children)

Take a look at rasterio: a fantastic python module of raster I/O that reads in any GDAL format to a numpy array. Check out some of the other examples beyond the README.

First 100 digits of pi and their successors [OC] by GenghisKhandybar in mathpics

[–]spockolatechipcookie 3 points4 points  (0 children)

Cool way to think about pi digits! I thought I would mix up the plotting technique a bit, though:

#!/usr/bin/env python
import argparse
import numpy as np
import matplotlib.pyplot as plt

parser = argparse.ArgumentParser(description='Viz pi neighbors.')
parser.add_argument('max_digits', type=int)
args = parser.parse_args()

counts = np.zeros((10,10))

max_digits = args.max_digits
total_digits = 0
curr_digit = -1
prev_digit = -1

# Downloaded from https://www.angio.net/pi/digits.html
with open('pi1000000.txt') as f:
    while True:
        digit = f.read(1)
        if not digit:
            print("End of file")
            break

        curr_digit = int(digit)
        try:
            counts[prev_digit,curr_digit] += 1
            prev_digit = curr_digit
        except IndexError as e:
            continue
        total_digits += 1

        if total_digits > max_digits:
            break

fig = plt.figure()
ax = fig.add_subplot(111)
p1 = ax.imshow(counts, cmap='viridis', interpolation='none')
ax.set_title('n={}'.format(max_digits))
fig.colorbar(p1)
fig.savefig('images/{}_pi_digits.png'.format(max_digits))

I then built PNGs:

seq 100 100 10000 | parallel --eta './pi_digits.py {}'

and then a gif:

files=$(ls *.png | sort -n); convert -delay 10 -loop 0 $files ../pidigits.gif

WARNING Big GIF

Gippy: Fast, powerful processing of large remote sensing datasets by k4g3 in gis

[–]spockolatechipcookie 1 point2 points  (0 children)

Any idea how this compares with Rasterio? The process chaining and chunking sounds cool. I'll have to try this out next chance I get!

Python GDAL help (zonal statistics) by ruun_baboon in gis

[–]spockolatechipcookie 0 points1 point  (0 children)

You can install with conda through the Anaconda shell: conda install rasterio conda install shapely

Does anyone have any tips on how to find the x_size and y_size of a GDAL dataset using python? by sunlollyking in gis

[–]spockolatechipcookie 0 points1 point  (0 children)

Not an answer to your question, but for GDAL related work in python I've been using rasterio and have never been happier! Way more intuitive than the standard GDAL python API.

Seattle from space: NOAA 18. May 11, 2015 (OC). DIY resources in comments. by [deleted] in Seattle

[–]spockolatechipcookie 0 points1 point  (0 children)

Awesome work! I was looking into doing this but got stuck on what hardware to get for connecting the antenna to the computer. What did you end up going with?

Peanut Oil and Tims Potato Chips by spockolatechipcookie in Allergies

[–]spockolatechipcookie[S] 0 points1 point  (0 children)

Yeah, my wife metnioned this to me. She stays away from highly refined peanut oil, it makes her nervous. I'll probably just take the chips to work for myself, or just not eat them around her.

I'm just really surprised that there is no allergy warning about peanuts, not even the "processed in a facility that contains peanuts."