Code Monkey home page Code Monkey logo

galaxy-zoo's Introduction

Galaxy-Zoo

Running with Docker

First pull the prebuild Docker image (to save yourself some build time) and then build your local image:

docker pull zooniverse/galaxy-zoo
docker-compose build

Local development

docker-compose run --service-ports galaxyzoo npm run start

runs a local server on http://localhost:9294/

Build and deploy

Deploy to https://galaxyzoo.org/beta for testing:

docker-compose run galaxyzoo npm run deploy-to-staging

Deploy CSS and JavaScript:

docker-compose run galaxyzoo npm run deploy quick

Full deploy (including images and other assets):

docker-compose run galaxyzoo npm run deploy

Installation and Getting Started

echo 'PATH="./node_modules/.bin:${PATH}"' >> ~/.bash_profile
echo 'export PATH' >> ~/.bash_profile
source ~/.bash_profile
git clone https://github.com/zooniverse/Galaxy-Zoo.git
cd Galaxy-Zoo
npm install .
hem server
open http://localhost:9294

Depending on your browser, you may have to confirm a security exception to allow a self-signed SSL certificate for dev.zooniverse.org

Translations

Galaxy Zoo uses our APIs built-in translation management for storing, and serving localized strings. The interface to add translations is available at http://translations.zooniverse.org/, though you need to be a registered dev/translator to save any changes.

What do I do when I add new text to the site

The way our translations system works is we store a canonical en-us version of the language strings both within the repo and remotely in a database. When changes are made to the local copy, we need to update the remote copy, so we can tell what text for languages other than en-us are out of date, missing, or otherwise need attention.

To do what, you need to either POST the current translations to the API manually, or use the https://github.com/parrish/translator-seed/ module that Michael wrote for convenience. A proper command to upload new translations to the site is conveniently provided as an npm script, runnable by npm run seed-locale. For the system to accept your upload, you must have an OUROBOROS_AUTH env. variable set (see parrish/translator-seed#2 for details on what that expects) and your account must be tagged as a developer.

License

Apache 2.

Zooniverse Galaxy Zoo translations not contained within this repo are also licensed under Apache 2.

Troubleshooting

  • If you encounter issues with the Ruby builds, ensure that you are using node version no later than 0.11.14. The n package can help with this. This is because the path.existsSync function was removed in 0.12. Example:
npm install nvm
. ~/nvm/nvm.sh

nvm install v0.10
nvm use v0.10
  • Also ensure that you have SSH access for github set up.
  • Ensure that you are running the hem command from the local path (./node_modules/.bin/hem), rather than any global version when starting hem server.

galaxy-zoo's People

Stargazers

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

Watchers

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

galaxy-zoo's Issues

Sloan and Hubble Icons

Took me ages to realise that there were Hubble/Sloan icons. They sit next to the invert button,which has an action. If the Hubble/Sloan icons have actions I don't experience them on the iPad (didn't try on my laptop earlier). It feels like click if them should do something. Can I suggest a little popu saying "this image was taken using the Hubble Space Telescope" or something similar.

Load final subjects

CANDELS subjects have changed. Final import of new subjects needs to occur.

Sexagesimal

Add an option to display RA and dec in sexagesimal (HH:MM:SS, DD:MM:SS) as well as in the current decimal degree format

Side by side FITS viewing

One of the main ways that I envisioned this tool being used was comparing images at different wavelengths, not just looking at them individually. I think that's where much of the potential science lies - seeing if a galaxy feature is a dropout in one band but not another, for example. Right now, there's no simple way to look at H vs. J at the same time. I think we absolutely need the ability to either a) blink back and forth between images, b) tile them so the user can see two (or more) FITS images at once in the browser window or c) color-combine the images. I would eventually love to do all three, but I want to hear from your team what will be easiest to implement in the near future.

NaN Stretches

Neither logarithm and square root stretches work on the image if the left slider is set to less than zero; the entire image goes black, presumably because it's trying to compute a range where one end is an imaginary number. This really needs to be fixed - maybe add an offset to all pixel values.

iPad Screen Height

If the classify page was just a few (10?) pixels shorter then it would need no scrolling on an iPad. At the moment the words below the icons are just hidden on load. Since it is so useable on the iPad, it seems best to optimise where possible.

Wrong example images used

We need to swap the images at

candels-15_a-2_0.jpg
candels-15_a-1_0.jpg

as they appear in the help text - they're currently the wrong way round.

Intensity

What are the units of intensity in the metadata?

iOS Touch Events Carrying to Next Question

On iOS the button below your previous touch, is already selected when the question appears. So on iOS, one answer is always pre-selected - which would bias the answers. For example, is you tap Smooth then Completely Round is accidentally clicked too.

Help : Is this a disk edge-on

Please change to :

Disc galaxies are very thin, so look different when viewed from the side. We're trying to find exactly edge-on galaxies with this question. If the galaxy looks needle-like, perhaps with a bulge at the centre, then click "yes," otherwise choose "no" (even for galaxies almost edge-on).

Help text needed for 'do you want to discuss this object'

Please add :

If you have any questions about this object, or think it may be interesting to others, or just have something to say, you can start a discussion on Talk by clicking "Yes". Talk will open in a new window - just close it to come back to the classification page.

SDSS

In the main page splash, if it can read Sloan Digital Sky Survey rather than SDSS ('Experience a privileged glimpse of the distant universe, observed by the SDSS and Hubble Telescope') and Hubble Space Telescope instead of Hubble Telescope that'd be good.

If both changes make the subhead too long, then just change Hubble.

Link to Forum

The top bar needs to link to the forum as discussed with Miller and Arfon.

New example galaxies

Additional example galaxies for the barred/unbarred and 'count number of spiral arm' question for Sloan should be added.

They have been emailed to [email protected] by me. Case 254

Hubble bulge question

When reaching the 'how obvious is the bulge' question for Hubble objects it has only three options and they all have the same icon

Add to data.galaxyzoo.org

Please add this text to data.galaxyzoo.org, under table 2

Please note : The provided flags are there for the convenience of those who do not want to get into the details too much, they are based upon a threshold of 0.8. However, there is a complication in the debiasing. The classification bias depends on whether one uses the type likelihoods directly, or applies a threshold. The bias is worse if thresholds are used. I therefore applied bias corrections computed in consistent fashion. So, for the debiased type likelihoods I computed the bias correction based on the elliptical/spiral ratio using the likelihoods directly; for the type flags I debiased the raw type likelihoods using a correction based on the elliptical/spiral ratio determined after applying a 0.8 threshold, and then applied the same threshold to produce the flags. Therefore, the type flags do not correspond to simply applying a 0.8 threshold on the debiased type likelihoods, though for many galaxies these will agree.

Typo

In SDSS tree, 'Is there a sign of a bar' should be 'Is there any sign of a bar'

Updates to paper list

Masters et al. 2012. Galaxy Zoo and ALFALFA: atomic gas and the regulation of star formation in barred disc galaxies. MNRAS 424, 2180 (available here: http://arxiv.org/abs/1205.5271)

Skibba et al. 2012. Galaxy Zoo: the environmental dependence of bars and bulges in disc galaxies. MNRAS 423, 1485 (available here:http://arxiv.org/abs/1111.0969 )

Updates (adding MNRAS number and/or changing year of publication):

Shabala et al. (2011->) 2012 MNRAS 423, 59

Kaviraj et al. (2011->) 2012 MNRAS 423, 49

Darg et al. 2011, MNRAS 416 1745

Hoyle et al. 2011 MNRAS 415, 3627

Metadata from Ouroboros

Structure of subject metadata should be the same regardless of the survey. e.g. Hubble has metadata['bands'], whereas Sloan does not have this.

Unless there's a reason for the different formats, we should have them conform the to same structure.

Is there a reason for having the id prefaced by the survey? e.g. "hubble_id" and "sloan_id". Why not just id?

Change of button for first question of Hubble decision tree

The science team would like the first 'features or disk' button in the Hubble classification only to more properly reflect the fact that blobby clumpy things should be included. The suggestion is that one replaces one of the spiral galaxies with a blobby irregular. This is not important enough to delay launch.

Login prompt interrupt

After 3 (?) classifications
Reset counter after login/signup to prevent pestering by quiz prompt.

Home page : Hubble

I'm not sure what the big 'Hubble' is doing as a header in the main splash near the top of the page. Not feeling very inspired, but 'Explore' would be better...

Keep Stretches when user changes bands

When examining an image in H-band, for example, I played with the stretch to look at specific features. If I then switch to I or J band, the stretch is automatically reset. If possible, let's have the default be that the stretch remains the same when switching between wavelengths.

Please add a line to help text

I've had a few comments that indicate that people aren't realising that they should click the example images to make them larger. Can we add 'Click to see a larger image' to the relevant help text?

Survey Name

Hubble isn't a survey - it's a telescope. Do the FITS headers give information as to their survey? (ie, AGES, GEMS, UDS, etc)? If so, let's replace the field with something like "Survey: AGES (Hubble Space Telescope)"

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.