Giter Site home page Giter Site logo

132nd-vwing / grg-bot Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 923 KB

Gridded Reference Graphics (GRG) bot

License: GNU General Public License v3.0

Python 59.07% TeX 29.69% Dockerfile 7.69% Shell 3.55%
discord-bot grg gridded-reference-graphics latex

grg-bot's People

Contributors

132ndneck avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

grg-bot's Issues

fix aspect ratio

Currently the aspect ratio of one page of output is 1:sqrt(2). DCS maybe uses 1:2. Cross-check and fix.

Print scale

There should be a scale that show height and width of a single grid element. This could be done by specifiying the latitudinal and longitudinal extent of the map given.

Overlap between parts of a map

Hi!
When taking a large map and dividing it to GRG's , I think it would be useful to have some overlap between the new GRGs. Sometime an important feature of the original map falls right in the stitch of two nearby maps and could get lost.
An overlap of a few dozen pixels/percents might resolve this.
Thanks!

enforce aspect ratio

132nd.AssafB, 22.09.2019
If I may toss another suggestion:
When generating the maps, is it possible to increase the background size so as to maintain a good aspect-ratio (1:1.333) for proper kneeboard display?

  • implement the conversion algorithm
  • Scale the output resolution for images that are getting joined.
  • add nofill flag no one probably needs that
  • test with different input files (different sizes, aspect ratios, colors)
  • update README

vertical scale shows wrong values

A picture with W x H = 1207 x 1340, for parameters scale=2, nx=6, ny=8 produces a GRG with the dimensions of a single grid 205 x 170 pixels. The width is labeled 611 m (correct), the height is labeled 685 m (not correct).

Allow to specify width of GRG

Add an option for the GRG bot to specify the width of a single page. Currently this default to 10.5cm. The LaTeX code is already there, only the argument parsing and forwarding in main.py is needed.

update help

!grg should reference !grg help, and !grg help must be updated.

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.