Open kbarbary opened 9 years ago
read!
has been implemented now that #122 is merged
Possible feature (I'm not sure if functionality exists in cfitsio
)
write!(hdu, data)
write!(fits, i, data)
to overwrite the data in a given HDU. Currently the only option is to append a new HDU.
Currently we check the strides of the array to determine if the memory layout is contiguous. This is too conservative, but I don't know of a workaround right now other than using a Union
of compatible types. For example, this means that currently writing out something like a Transpose
is not supported even if the memory layout of its parent is contiguous and cfitsio
supports this.
Keeping julia#10889
in mind, we may eventually use a trait-based check for contiguity instead of a strides-based approach as in the case now.
This is an issue to track some obvious features that should be added. My guess is that they will be added gradually over time as needed, but in a backwards-compatible manner.
General
FITS
type: enablingfor hdu in FITS(...)
show()
for FITS and HDU types. [#38]Headers
read_key(hdu, key)[1]
.Images
write(hdu, data; start=(100, 200))
read!(hdu, data)
,read!(hdu, 1:20, 1:30, data)
Tables
Base.names
but that has a different definition; maybe usecolnames
) [#93]Base.length
)write(::FITS, ::Dict{Any, Vector})
(raise runtime error if any dictionary key is not ASCII)read(hdu, "COLNAME", 1:10)
read(hdu, "COLNAME", [1, 3, 6, 10])
read!(hdu, "COLNAME", data)
BitArray
s?)