Coder Social home page Coder Social logo

code-review-aas241's People

Contributors

abostroem avatar teuben avatar

Watchers

 avatar  avatar

code-review-aas241's Issues

multi-line --help

allow for multi-line help in the --help. This will
be an argument in argparse.ArgumentParser() and you will likely need
to google around to see how you do multi-line.

3D fits cubes

allow for 3D FITS files. This should allow for a new -z option. The
default would be to pick a slice in Z and plot an image with imshow()
including a colorbar. Expanding on earlier options the vmin/vmax
allow you to pick a range to plot. It's also nice to think about
changing the colortable. Remember that now one can extract a profile
along X,Y,Z by picking two coordinates, or a plane, by picking one
coordinate. This option is involved, and could also involve splitting
up the work in parallel PR's after some initial design.

flexible plotting output device

allow a default screen output to be diverted to a plotfile (e.g. in
pdf,png,jpg etc.) so the script can be used in batch operations. We
used -plot to force that in an earlier example.

non-orthogonal plotting line

allow 1D plot for a non-orthogonal line (x0,y0) -> (x1,y0), instead of
the previously mentioned orthogonal. Either a new option could be
invented, or a trigger when both -x and -y are present with two
coordindate, eg. -x x0,x1 -y y0,y1 This is an example of overloading
options. Pro: fewer options Con: can be confusing, and harder to
program

more reporting

report the name and shape of the file on the terminal output

only produce one plot

to simplify the output, the new script should only allow one plot,
unlike the first demo, which allowed 3. See also #6 below for the
reason why. In batch use it's easier to call the script multiple times
instead of the complex way how multiple plots can be done from one
call.

add argparse

add argparse to accept the fitsfile as a required, and a -x and -y
flags to trigger if a given column (-x) or row (-y), is to be
plotted. For now, just use one value, but one could also imagine
allowing multiple, i.e. -x 20,30,40, or even a range, -x 20:30. But
see below, as this may complicate other options.

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.