GithubHelp home page GithubHelp logo

samreay / surveyvisualiser Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 5.0 664.71 MB

A small project I wrote to visualise galaxy surveys. Adding a survey is easy, so long as you have the sky coordinates (RA and Dec) and some sort of distance (redshift perhaps).

Python 99.45% Batchfile 0.33% Makefile 0.22%

surveyvisualiser's Introduction

Visualising Galaxy Surveys

A small project I wrote to visualise various cosmological surveys.

Add some data to do - the sky coordinates (Right Ascension and Declination) and some distance measure (redshift), and add it to the visualiser.

Has options to output a high DPI top-down figure, and the ability to output a frame for use in creating an animated visualisation (aka a video). A script is provided to turn the output frames into a video via ffmpeg.

See the examples.py script for invocation examples.

See the output directory for figures and videos.

All surveys

surveyvisualiser's People

Contributors

hughmcdougall avatar samreay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

surveyvisualiser's Issues

examples.py fails because of no survey files

In surveyvis/data/ there are only 2df.npy, 6df.npy and sdss.npy on the repository. Because of this, when get_permutations() is called and (for instance) WiggleZ is read in an IOError is generated.

Only the provided data should be provided in the permutations, or all the data should be in the repo (probably a bad idea), or the get_permutation() function should be scrapped for something where the requested survey can be called on the fly.

syntax error class Camera(metaclass=ABCMeta):

when trying the example:
python examples.py

Traceback (most recent call last):
File "examples.py", line 1, in
from surveyvis.camera import OrbitZoomCamera

SurveyVisualiser-master/surveyvis/camera.py", line 5
class Camera(metaclass=ABCMeta):
^
SyntaxError: invalid syntax

New dependency issue

In a recent commit you added sncosmo as a dependence on line 2 of surveyvis/survey.py. This module is only used for the SupernovaSurvey class and broke my fork (in which I'm not working on SNIa :)).

This dependency should be moved inside the class that uses it to cut down on dependencies for general use.

Metaclass problem

I get the following error message when I attempt to run 'examples.py'

Traceback (most recent call last):
File "examples.py", line 1, in
from surveyvis.camera import OrbitZoomCamera
File "/Users/uqdpark7/Projects/SurveyVisualiser/surveyvis/camera.py", line 5
class Camera(metaclass=ABCMeta):
^
SyntaxError: invalid syntax

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.