<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks Frank! <br>
* New Parameters *<br>
For adding new parameters, what is the command line syntax?<br>
<br>
Example: <small>proj -v +proj=rhealpix +lon_0=0 +a=1 +R_A
+ellps=WGS84 npole=0 spole=0 -E <<EOF 0 0 EOF</small><br>
<br>
This doesn't seem to work. I've also tried using +npole=0 and
+spole=0 and also doesn't work. How do I fix this?<br>
<br>
* On Combining 2 Projections into 1 File<br>
Typically, there are 2 to 4 Functions FORWARD(s_forward),
INVERSE(s_forward), and etc. Would I need to create 8 of these
functions (4 for each projection)?<br>
<br>
For instance, can I do the following:<br>
<small>ENTRY0(healpix)<br>
if(P->es){<br>
P->inv = e_inverse; P->fwd = e_h_forward;<br>
}else{<br>
P->inv = s_inverse; P->fwd = s_h_forward;<br>
}<br>
ENDENTRY(P)<br>
ENTRY0(rhealpix)<br>
if(P->es){<br>
P->inv = e_inverse; P->fwd = e_rh_forward;<br>
}else{<br>
P->inv = s_inverse; P->fwd = s_rh_forward;<br>
}<br>
ENDENTRY(P)</small><br>
Note, e_h_forward would correspond to the function
FOWARD(e_h_forward) and etc.<br>
<br>
Thank you for your help.<br>
<br>
<br>
<br>
On 14/10/11 17:43, Frank Warmerdam wrote:
<blockquote cite="mid:4E97BE0E.8070601@pobox.com" type="cite">
<pre wrap="">On 11-10-13 06:22 PM, Michael Speth wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Greetings,
I've implemented the HEALPix projection and have now moved on to
implementing a new projection called rHEALPix. I have two questions
regarding this implementation.
* rHEALPix requires 2 new parameters (spole and npole). How do I
specify those parameters on the command line? (In the code I am using
the pr_param function.
</pre>
</blockquote>
<pre wrap="">
Michael,
To the best of my knowledge you just grab them with pj_param(). You
don't need to do anything special to declare them.
</pre>
<blockquote type="cite">
<pre wrap="">* The rHEALPix projection uses the HEALPix projection. So is it
possible to create a header with corresponding c file that shares common
functions between the HEALPix and rHEALPix projections? If so, how
should I name the files?
</pre>
</blockquote>
<pre wrap="">
I would suggest just putting both projections in one source file to avoid
needing the external header file. It is not uncommon to have more than one
related projection in a single file (eg. tmerc and utm in PJ_tmerc).
Best regards,
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Michael Speth
Scientific Programmer
Landcare Research</pre>
</body>
</html>