Comments (5)
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.
@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.
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.
Did fiberpos.fits ever get updated with UPPERCASE columns?
from desimodel.
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)
- update xy2radec and radec2xy to support airmass field compression terms
- Add focalplane model support for stuck / broken position
- Add support for CANbus failures in focalplane model HOT 1
- Use instrument database for generating focalplane model HOT 2
- update/deprecate fiberpos.fits HOT 6
- DESIMODEL SVN data? HOT 2
- Update platescale to as-built design from DESI-4037 HOT 2
- Mechanism for getting current "nominal" focalplane HOT 1
- Convert focalplane model times to UTC
- Update throughput model to include dip between 4300 and 4500A HOT 3
- Add information about fibers with low transmission
- Outdated desimodel test branches. HOT 1
- astropy 5 not compatible with focalplane calibration ecsv HOT 13
- desiInstall desimodel branches/main fails
- Remove fix-tiles branch? HOT 1
- update psf-quicksim HOT 3
- Update api.rst
- Problem with new version of numpy HOT 5
- io.load_tiles defaults to old tile list $DESIMODEL/data/footprint/desi-tiles.fits HOT 6
- Error with get_tile_radius_deg when loading platescale HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from desimodel.