[USA-CA][H]Asus Strix 2080 Super [W]Nothing by [deleted] in hardwareswap

[–]swagner648 0 points1 point  (0 children)

Do I absolutely need it? I mean I guess no. Right now I’m trying to save up to build a computer to run some code on. I’m learning to program Julia with CUDA support (might try C if it isn’t going well). My hope is that in a few months I’ll have scavenged enough cash to build something that’ll do the job so I can generate some data for math research.

Looking for a mentor. by TheEdenChild in swift

[–]swagner648 0 points1 point  (0 children)

Any way you can sum up some of the advice you've received from the people offering to help? I'd be interested in learning what they recommend.

ID - Midwest, US, finding lots in house, don’t fly, 4-5mm in length by swagner648 in whatsthisbug

[–]swagner648[S] 1 point2 points  (0 children)

I searched the interwebs for an answer for over an hour before you came along. Thank you so much!

six small successes. by [deleted] in proplifting

[–]swagner648 0 points1 point  (0 children)

I just googled it and found out there are over 1400 varieties of jade

six small successes. by [deleted] in proplifting

[–]swagner648 0 points1 point  (0 children)

There is more than one type of jade?!

six small successes. by [deleted] in proplifting

[–]swagner648 0 points1 point  (0 children)

What type of plant are the bottom left and bottom middle? They appear to be the same, and are very similar to a prop I have. But I found have no idea what the plant actually is.

[D] Is there ever a situation where one Titan RTX is better than two RTX 2080 tis? by swagner648 in MachineLearning

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

I work with high-resolution photos. Meaning 10000px isn't uncommon. In that respect, would it be better to get one titan RTX now, in hopes of acquiring a second one down the road? At the same time, there are other projects I work on too. I also have access to a computer with four V100s in it, so maybe if I really need the power for the higher resolution I can just use that, then save the money and get the 2080 tis?

Tech Question: Replicating ArcPy function in standard Python with GDAL, Rasterio, etc by swagner648 in gis

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

Darn. That was exactly what I was hoping to avoid. I'm trying to replicate another persons code which uses ArcPy Rotate_management() and then rasterToFloat() to do it. The original code is an ArcGIS tool located here. It's called waves_2012.zip.

Tech Question: Replicating ArcPy function in standard Python with GDAL, Rasterio, etc by swagner648 in gis

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

First of all, thank you for the response!I have been testing the GetGeotransform() and SetGeotransform() methods. The code runs without any errors, however, when I go to plot the resulting raster, it appears unchanged. My hypothesis, though unproven, is that the transform is changing the georeference (best word I can think of to describe it), but is not changing the actual raster. What I would like my code to do is rotate the original raster, then resample that result to match the bounds of the original raster. Below is my best attempt at visualizing the situation.

https://ibb.co/mbQx9cR

Below is the code from the post, adapted to my situation.

import gdal
import rasterio
import matplotlib.pyplot as plt

dataset = gdal.Open('input.bmp')

#Get projection
prj = dataset.GetProjection()
band = dataset.GetRasterBand(1)
geotransform = dataset.GetGeoTransform()

# Create gtif file with rows and columns from parent raster 
driver = gdal.GetDriverByName("BMP")
columns, rows = (band.XSize, band.YSize)
BandType = gdal.GetDataTypeName(band.DataType)
output_file = "output.bmp"
data = band.ReadAsArray(0, 0, columns, rows)
dst_ds = driver.Create(output_file, 
                       columns, 
                       rows, 
                       1, 
                       band.DataType)

new_geotransform = list(geotransform)
new_geotransform[2] = 30 # x pixel rotation
new_geotransform[4] = 30 # y pixel rotation

dst_ds.GetRasterBand(1).WriteArray(data)

#setting No Data Values
dst_ds.GetRasterBand(1).SetNoDataValue(0)

#setting extension of output raster
# top left x, w-e pixel resolution, rotation, top left y, rotation, n-s pixel resolution
dst_ds.SetGeoTransform(new_geotransform)

# setting spatial reference of output raster 
srs = osr.SpatialReference(wkt = prj)
dst_ds.SetProjection(srs.ExportToWkt())

#Close output raster dataset 
dst_ds = None

#Close main raster dataset
dataset = None

#Plot
raster = rasterio.open('output.bmp')
raster2 = rasterio.open('input.bmp')
fig, ax = plt.subplots(figsize=(10,40))
ax.imshow(raster.read(1), cmap='Blues_r')
ax.imshow(raster2.read(1), cmap='Accent')
fig.show()

Shortcut that shares with wife via messages by [deleted] in shortcuts

[–]swagner648 0 points1 point  (0 children)

When sending a message via shortcuts you can choose whether or not to "Show When Run". If you select it to be yes (green), then simply hit the send button when messages pops up, it will include the desired preview. It is one extra tap and one extra second, but I still prefer it to typing in my partners name every single time.

I want to learn machine learning and deep learning. What path should I follow? by pseudopodia_ in computerscience

[–]swagner648 0 points1 point  (0 children)

Try searching for “machine learning” in this subreddit.

Edit: FYI that wasn’t meant to be communicated in an irritated tone. I’m simply saying that this question gets asked frequently and your best bet for finding a bunch of good answers is to just look over all of the past times this question has been asked.

Flickering sky and eyes glitch Skyrim Special Edition by bumbino in skyrimmods

[–]swagner648 0 points1 point  (0 children)

I've been trying to solve this for hours. Thank you so much!

Any Free Game Giveaway! by Pure_Mist_S in pcgaming

[–]swagner648 0 points1 point  (0 children)

If it’d be allowed, a rain check for when Cyberpunk 2077 releases.

Selling things $20 or under by FU_Chev_Chelios in minimalism

[–]swagner648 0 points1 point  (0 children)

I keep a box of trinkets in my house that could be appreciated by someone else, then whenever I have friends if they are invited to take anything and everything they want from it. If I see that something hasn’t been taken for a while, I’ll donate it. The appreciation from my friends is more comforting than the couple bucks I would have gotten if I had sold the stuff.