GithubHelp home page GithubHelp logo

Comments (5)

weaverba137 avatar weaverba137 commented on June 22, 2024

This is left over from a failed attempt to convert FITS data into a "pure" numpy array. The code still works so resolving this discrepancy is low priority.

from desimodel.

weaverba137 avatar weaverba137 commented on June 22, 2024

@sbailey this is a pretty simple fix, but I need to know, what is the significance of fits.getdata(fiberposfile, upper=True) in load_fiberpos() and why is upper=True not applied in load_tiles()?

from desimodel.

sbailey avatar sbailey commented on June 22, 2024

We were trying to standardize upon data from FITS files looking like columns are all upper case (so retro...). The FITS standard is case insensitive and astropy.io.fits automagically handles both upper and lower for the returned object, but if the data are ever cast to a astropy Table or a numpy array, it has to make a choice.

load_tiles() reads footprint/desi-tiles.fits which was written with IDL and already had upper case names. load_fiberpos() reads focalplane/fiberpos.fits which was written in python with lower case column names. upper=True was an attempt to move that to upper case (which doesn't completely work due to my favorite topic of astropy.io.fits bugs). We could just re-write fiberpos.fits with upper-case column names and be done with it.

fiberpos.fits needs to be updated with the latest focal plane geometry anyway. Let's use UPPERCASE columns when we do that.

from desimodel.

weaverba137 avatar weaverba137 commented on June 22, 2024

Did fiberpos.fits ever get updated with UPPERCASE columns?

from desimodel.

weaverba137 avatar weaverba137 commented on June 22, 2024

As noted in #30, the use of fits.getdata() may be causing problems, and it is probably time to get rid of it. So, as previously asked, dit the fiberpos.fits file ever get updated to have uppercase columns?

from desimodel.

Related Issues (20)

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.