<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:12pt;font-family:Bitstream Vera Sans">
<p>On June 8, 2005 23:00, Theodore Kisner wrote:</p>
<p>&gt; 0.  The HPIC datasource provides us with a full-sphere map stored in a</p>
<p>&gt; KstVector.  The nside, ordering, etc can be accessed (approximately) from</p>
<p>&gt; KstRVector-&gt;_file-&gt;_metadata.  </p>
<p></p>
<p>what do you plan for part-sphere maps (like b2k deep)?  Will there be a way to auto-scale in xy?</p>
<p></p>
<p>&gt; If the HPIC datasource is not accepted into </p>
<p>&gt; SVN for political reasons, then hopefully any &quot;replacement&quot; healpix</p>
<p>&gt; datasource would provide similar information in the form of KstVector +</p>
<p>&gt; metadata.  I would think that the plan below is independent of the choice</p>
<p>&gt; of healpix datasource..</p>
<p></p>
<p>Lets just include it.  If HEALPIX comes up with a GPL C implementation, we can re-visit the question.  As long as they don't, there is no question to visit. I have talked to Eric about HEALPIX in kst for some years now, it hasn't happened, so we don't really need to wait any longer, as far as I am concerned.</p>
<p></p>
<p>&gt; 1.  Create a new class that is analogous to the KstMatrix/KstImage</p>
<p>&gt; combination (class KstHpic : public KstDataObject).  This will store</p>
<p>&gt; information about how the map is to be displayed.</p>
<p>&gt;</p>
<p>&gt; 2.  Add a list of these objects to Kst2DPlot.  Add a draw function.</p>
<p>&gt;</p>
<p>&gt; 3.  Add more dialogs to let users configure the display properties.</p>
<p>&gt;</p>
<p>&gt; 4.  command line bindings (e.g. kst -z 2 map.fits) and anything else.</p>
<p>&gt;</p>
<p>&gt; If there are no complaints, I'll start working on a finely-grained patchset</p>
<p>&gt; to do this.</p>
<p></p>
<p>The problem with this is that it seems to add a parallel map structure to the Matrix/Image stuff, (which already has UI issues in actually accessing maps.)</p>
<p></p>
<p>Could we instead:</p>
<p></p>
<ul type="disc"><li>Convince data sources to output matrixes as well as vectors (this solves the current Matrix UI issues)</li>
<li>Add general map data source options to the command line (may not need much)</li>
<li>Use the data source configuration dialog stuff to configure how the healpix is projected.</li>
<li>Don't touch 2dplot.</li></ul>
<p></p>
<p>This has the advantage of clearing the path for reading other types as maps as well, once the datasources for them have been written, without complicating 2dplot further.</p>
<p></p>
<p>It also means that the projection gets done at read time, not render time, and so should be faster.  The down-side is that one might want to over-sample the healpix map in the projection to preserve the non-square pixels....  But this could be a read-time option.</p>
<p></p>
<p>Thoughts?</p>
<p>cbn</p>
<p></p>
</body></html>