/* MX LIBRARY FUNCTION: mxip_image_s_ramp_f1 * * PURPOSE: Set pixel data of a mxip_image_s structure to a ramp. * * AUTHOR: K. J. Mighell (mighell@noao.edu) * * LANGUAGE: ANSI C * * DOCUMENTATION: http://www.noao.edu/staff/mighell/mx * * DATE: 20000313 * * MOD: 10 * * Copyleft (L) 2000 Kenneth John Mighell */ #include "mx.h" int mxip_image_s_ramp_f1( struct mxip_image_s *image ) { char mxfunc[] = "mxip_image_s_ramp_f1"; int status; int j0; if ( mxip_image_s_ok_f1 (image) ) { status = 1; goto error; } for (j0 = 0; j0 < (image->npxi); ++j0) { image->vectord[j0] = j0; } ok: status = 0; goto bye; error: mxp_errmsg_append_f3 (mxfunc, status, ""); goto bye; bye: return (status); } /* end-of-file */