kng / geoscan-tools Goto Github PK
View Code? Open in Web Editor NEWProcess frames from satellite Geoscan-Edelveis
License: GNU Affero General Public License v3.0
Process frames from satellite Geoscan-Edelveis
License: GNU Affero General Public License v3.0
I have attached a tgz with a kss file and expected vs actual outputs when running
python3 stratosat_simple.py input.kss
I see that the issue is around the address calculation, I just dont have a 'high resolution' kss file to make a proper fix. If you have a sample input I can make a PR for this issue.
Here is a patch that works.
diff --git a/stratosat_simple.py b/stratosat_simple.py
index c45bd5d..9beb40b 100755
--- a/stratosat_simple.py
+++ b/stratosat_simple.py
@@ -55,15 +55,12 @@ def parse_frames(data):
hr = False
for row in data:
if row[16:22].upper() == 'FFD8FF':
- offset = int((row[12:14] + row[10:12]), 16)
+ offset = int((row[14:16]+ row[12:14] + row[10:12]), 16)
hr = row[6:10].upper() == '2098'
break
for row in data:
cmd = row[0:4]
- if hr:
- addr = int((row[14:16] + row[12:14] + row[10:12]), 16)
- else:
- addr = int((row[12:14] + row[10:12]), 16) - offset
+ addr = int((row[14:16] + row[12:14] + row[10:12]), 16) - offset
dlen = (int(row[4:6], 16) + 2) * 2
payload = row[16:dlen]
if cmd == '0200' and addr >= 0:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.