Skip to content

Instantly share code, notes, and snippets.

Avatar

RK Aranas rukku

  • PHL-Microsat DPAD
  • Quezon City, Philippines
View GitHub Profile
@rukku
rukku / georefTest_HPT.py
Last active May 13, 2021
HPT georeferencer
View georefTest_HPT.py
from osgeo import gdal, osr
import csv
import os
##
gdal.UseExceptions()
testPoints = "D2_HPT_2021-05-01T061835085_p1.points"
fileName = os.path.basename(testPoints)[0:27]
View gist:2a06fb451021550cd63f7ac36180aabc
# based on information from: https://github.com/nim-lang/Nim/issues/16211
git clone https://github.com/nim-lang/Nim
cd Nim
git clone -q --depth 1 https://github.com/nim-lang/csources_v1.git csources
./build_all.sh
View exposure_time.py
def expTime(smd, v, h):
if smd == 1 or smd == 3:
exposureTime = (v * 525 + h) * 0.00006356
else:
exposureTime = (0.03337 * v) + (524 - h) * (0.00006356) + \
(float(487) / float(780)) * (0.00006356)
return exposureTime
View diwata1-TLE.1.md

Diwata-1
1 41463U 98067HT 17031.41795199 .00008876 00000-0 11502-3 0 9996
2 41463 51.6443 354.2093 0001375 68.1765 23.3338 15.59719069 43436

Diwata-1
1 41463U 98067HT 17031.41795199 .00008876 00000-0 11502-3 0 9996
2 41463 51.6443 354.2093 0001375 68.1765 23.3338 15.59719069 43436

Diwata-1

@rukku
rukku / iterate_csv.py
Created Feb 1, 2017 — forked from nsonnad/iterate_csv.py
Iterate over specific range of rows with python csv.reader()
View iterate_csv.py
import csv
import itertools
f = csv.reader(open('file.csv'))
for row in itertools.islice(f, 0, 50):
print row
View diwata1.tle
Diwata-1
1 41463U 98067HT 17031.41795199 .00008876 00000-0 11502-3 0 9996
2 41463 51.6443 354.2093 0001375 68.1765 23.3338 15.59719069 43436
View rising2.py
from numpy import flipud
from numpy import zeros
import matplotlib.image
image_dn = zeros([494,659], dtype = float) #image size
filename = r'image_150529_123155_0x79_HPCM_750nm_659x494_complete.bin' #directory + filename ng bin
def binToInt(astring):
temp = ' '.join(format(ord(i),'b').zfill(8) for i in astring)
temp = temp[0:8]+temp[9:17]
@rukku
rukku / ccog-readinglist.md
Created Dec 6, 2015 — forked from pramsey/ccog-readinglist.md
Canadian Council on Geomatics Reading List
View ccog-readinglist.md
View gist:2a257b871f7efc3b879d
Bringing machine 'oodt_radix_vm' up with 'virtualbox' provider...
==> oodt_radix_vm: Box 'chef/ubuntu-13.10' could not be found. Attempting to find and install...
oodt_radix_vm: Box Provider: virtualbox
oodt_radix_vm: Box Version: >= 0
The box 'chef/ubuntu-13.10' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:
@rukku
rukku / modern-geospatial-python.md
Last active Nov 25, 2021 — forked from jqtrde/modern-geospatial-python.md
Modern remote sensing image processing with Python