From 7499e5c57622afd0e3eb2ac78078a6549afb18bb Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Sat, 21 Jan 2023 09:51:27 -0700 Subject: [PATCH] cruft notes --- rfplot.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/rfplot.c b/rfplot.c index 3a67fc3..e25b529 100644 --- a/rfplot.c +++ b/rfplot.c @@ -248,6 +248,44 @@ int main(int argc,char *argv[]) else if (cmap==2) giza_set_colour_table_float(viridis_l,viridis_r,viridis_g,viridis_b,256,1.0,0.5); // XXX +// (int sizex, int sizey, const double* data, int i1, int i2, int j1, int j2, double valMin, double valMax, int extend, const double *affine) ; +// giza_render +/* +sizex : The dimensions of data in the x-direction +s.z + +sizey : The dimensions of data in the y-direction +s.nsub + +data : The data to be rendered +s.nchan + +i1 : The inclusive range of data to render in the x dimension. +1 + +i2 : The inclusive range of data to render in the x dimension. +s.nsub + +j1 : The inclusive range of data to render in the y direction +1 + +j2 : The inclusive range of data to render in the y direction +s.nchan + +valMin : The value in data that gets assign the colour corresponding to zero on the colour ramp (The ramp is set by giza_set_colour_table) +zmin + +valMax : The value in data that gets assigned the colour corresponding to one on the colour ramp +zmax + +extend : Option for how to deal with image at edges +tr + +affine : The affine transformation matrix that will be applied to the data. + +*/ +// XXX + //giza_render_float(s.z,s.nsub,s.nchan,1,s.nsub,1,s.nchan,zmin,zmax,tr); //cpgimag(s.z,s.nsub,s.nchan,1,s.nsub,1,s.nchan,zmin,zmax,tr); }