fits-image-z   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/fitslib.xtm

Implementation

(bind-func fits-image-z
  (lambda (f:fitsfile*)
    (let ((status:i32* (salloc))
    (err:i8* (salloc 40))
    (dims:i32* (salloc))
    (val:i32* (salloc))
    (comment:i8* (salloc 256))
    (hdu:i32* (salloc)))
      (pset! status 0 0)
      (ffgky f TINT "NAXIS3" (bitcast val i8*) comment status)
      (if (<> (pref status 0) 0)
    (begin (printf "error reading z dimension: %s\n" err)
     (i64toi32 1))
    (pref val 0)))))


Back to Index

Similar Entries