Coder Social home page Coder Social logo

unwise_psf's Introduction

legacysurvey

Overview

Source for Nikola-built website for the Legacy Survey.

With nikola (v7.0+) installed:

  • nikola build will build the site in the output directory.
  • nikola serve will start a local webserver to preview the site.

The site uses a custom theme based on nikola's built-in bootstrap3 theme. The custom theme allows us to:

  • use a drop-in bootstrap.css replacement from bootswatch.
  • Tweak various aspects of the generated HTML, such as titles, links and listings.

Deployment

To simplify the preparation of site for deployment, a Makefile handles several steps, so that this simple command prepares a TAR file that can be copied to NERSC:

make TAG=9.0.2

In this example, the output would be legacysurvey-9.0.2.tar.gz.

Logo

There are a few logo files in the files directory:

  • logo.svg: An "Inkscape SVG" file, which is the main source.
  • logo_54.png: A PNG generated by exporting the logo in Inkscape.
  • logo_square.svg: Inkscape SVG file with just the logo part (no text).
  • logo_square_32.ico: A favicon used in the site. Generated from the by exporting the square logo to PNG in Inkscape then converting using ImageMagick: convert logo_square_32.png logo_square_32.ico.

unwise_psf's People

Contributors

dstndstn avatar schlafly avatar

Watchers

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

unwise_psf's Issues

Python3 issue or recent fitsio string handling?

I'm getting:

unwise_forcedphot failed:
Traceback (most recent call last):
  File "/Users/dstn/legacypipe/py/legacypipe/unwise.py", line 524, in unwise_phot
    W = unwise_forcedphot(wcat, tiles, use_ceres=wise_ceres, **kwargs)
  File "/Users/dstn/legacypipe/py/legacypipe/unwise.py", line 220, in unwise_forcedphot
    modelname='neo5_unwisecat')
  File "/Users/dstn/legacypipe/py/unwise_psf/unwise_psf.py", line 298, in get_unwise_psf
    rot = rotate_using_rd(model, coadd_id)
  File "/Users/dstn/legacypipe/py/unwise_psf/unwise_psf.py", line 191, in rotate_using_rd
    astr = _get_astrometry(coadd_id)
  File "/Users/dstn/legacypipe/py/unwise_psf/unwise_psf.py", line 98, in _get_astrometry
    match, = np.nonzero([c.decode() == coadd_id for c in atlas['COADD_ID']])
  File "/Users/dstn/legacypipe/py/unwise_psf/unwise_psf.py", line 98, in <listcomp>
    match, = np.nonzero([c.decode() == coadd_id for c in atlas['COADD_ID']])
AttributeError: 'numpy.str_' object has no attribute 'decode'

note that the type coming out of the FITS table is a numpy.str, so it doesn't have a decode. This is with the current default "pip install fitsio" version, 1.0.5.

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.