Comments (5)
Yes I think that it would be a very good idea. Type stability is a very good point. Parameters {UInt8,0}
could be used in case there is no data. One drawback is that you must known in advance the element type and the number of dimensions in advance whene creating an Image HDU.
Owing to the variety of the possible column types in FITS Tables, I don't think this could be done for tables.
from fitsio.jl.
One drawback is that you must known in advance the element type and the number of dimensions in advance whene creating an Image HDU.
We know this information. The type of the array returned when read
ing the ImageHDU
is TYPE_FROM_BITPIX[fits_get_img_equivtype(hdu.fitsfile)]
, and the number of dimensions is length(fits_get_img_size(hdu.fitsfile))
.
from fitsio.jl.
OK this is when reading data but you may want to create a FITS Image by concatenating data so that you only know the result at the end and update the FITS header accordingly. My point was that, with your suggested change, this is possible providing you know the number of dimensions in advance (not their lengths) which I think is fairly resonnable and is not such a big restriction. So I am totally in favor of your suggestion.
from fitsio.jl.
from fitsio.jl.
I'm closing this, as per discussion in #120
from fitsio.jl.
Related Issues (20)
- Cannot open compressed file HOT 5
- Tag a new version HOT 1
- getindex(FITS, String) does not work HOT 5
- Add tests for named HDUs
- Obtain eltype without reading the array
- TagBot trigger issue HOT 18
- Deal with square brackets in filename HOT 6
- Uppercase keys in FITSHeader
- Cannot open GZip compressed file HOT 3
- Integration with FileIO HOT 1
- How to read a folder that contains fits file? HOT 2
- v0.16.7 release breaks string keys? HOT 4
- Loosening Dict Type
- error in loading a fits table as a DataFrame HOT 9
- FileIO Integation / AstroImages.jl HOT 1
- Precompilation? HOT 4
- Add support for random access groups
- Problem with .fts file header keywords
- add support for BitArray ('X') columns
- Error randomly occuring while reading FITS file multiple times HOT 3
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 fitsio.jl.