OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
oli_proj.h
Go to the documentation of this file.
1 #ifndef OLI_PROJ_H
2 #define OLI_PROJ_H
3 
4 
5 /* The STPLN_TABLE unit value is specifically used for State Plane -- if units
6  equals STPLN_TABLE and Datum is NAD83--actual units are retrieved from
7  a table according to the zone. If Datum is NAD27--actual units will be feet.
8  An error will occur with this unit if the projection is not State Plane. */
9 #define STPLN_TABLE 6
10 
11 /* General code numbers */
12 
13 #define IN_BREAK -2 /* Return status if the interupted projection
14  point lies in the break area */
15 #define COEFCT 15 /* projection coefficient count */
16 #define PROJCT (MAXPROJ + 1) /* count of supported projections */
17 #define SPHDCT 32 /* spheroid count */
18 
19 #define MAXUNIT 5 /* Maximum unit code number */
20 #define GEO_TERM 0 /* Array index for print-to-term flag */
21 #define GEO_FILE 1 /* Array index for print-to-file flag */
22 #define GEO_TRUE 1 /* True value for geometric true/false flags */
23 #define GEO_FALSE -1 /* False val for geometric true/false flags */
24 
25 /* GCTP Function prototypes */
26 
27 long alberforint
28 (
29  double r_maj,
30  double r_min,
31  double lat1,
32  double lat2,
33  double lon0,
34  double lat0,
35  double false_east,
36  double false_north
37 );
38 
39 long alberfor
40 (
41  double lon,
42  double lat,
43  double *x,
44  double *y
45 );
46 
47 long alberinvint
48 (
49  double r_maj, /* major axis */
50  double r_min, /* minor axis */
51  double lat1, /* first standard parallel */
52  double lat2, /* second standard parallel */
53  double lon0, /* center longitude */
54  double lat0, /* center lattitude */
55  double false_east, /* x offset in meters */
56  double false_north /* y offset in meters */
57 );
58 
59 long alberinv
60 (
61  double x, /* (O) X projection coordinate */
62  double y, /* (O) Y projection coordinate */
63  double *lon, /* (I) Longitude */
64  double *lat /* (I) Latitude */
65 );
66 
67 long alconforint
68 (
69  double r_maj, /* Major axis */
70  double r_min, /* Minor axis */
71  double false_east, /* x offset in meters */
72  double false_north /* y offset in meters */
73 );
74 
75 long alconfor
76 (
77  double lon, /* (I) Longitude */
78  double lat, /* (I) Latitude */
79  double *x, /* (O) X projection coordinate */
80  double *y /* (O) Y projection coordinate */
81 );
82 
83 long alconinvint
84 (
85  double r_maj, /* Major axis */
86  double r_min, /* Minor axis */
87  double false_east, /* x offset in meters */
88  double false_north /* y offset in meters */
89 );
90 
91 long alconinv
92 (
93  double x, /* (O) X projection coordinate */
94  double y, /* (O) Y projection coordinate */
95  double *lon, /* (I) Longitude */
96  double *lat /* (I) Latitude */
97 );
98 
99 long azimforint
100 (
101  double r_maj, /* major axis */
102  double center_lon, /* center longitude */
103  double center_lat, /* center latitude */
104  double false_east, /* x offset in meters */
105  double false_north /* y offset in meters */
106 );
107 
108 long azimfor
109 (
110  double lon, /* (I) Longitude */
111  double lat, /* (I) Latitude */
112  double *x, /* (O) X projection coordinate */
113  double *y /* (O) Y projection coordinate */
114 );
115 
116 long aziminvint
117 (
118  double r_maj, /* major axis */
119  double center_lon, /* center longitude */
120  double center_lat, /* center latitude */
121  double false_east, /* x offset in meters */
122  double false_north /* y offset in meters */
123 );
124 
125 long aziminv
126 (
127  double x, /* (O) X projection coordinate */
128  double y, /* (O) Y projection coordinate */
129  double *lon, /* (I) Longitude */
130  double *lat /* (I) Latitude */
131 );
132 
133 void sincos
134 (
135  double val,
136  double *sin_val,
137  double *cos_val
138 );
139 
140 double asinz
141 (
142  double con
143 );
144 
145 double qsfnz
146 (
147  double eccent,
148  double sinphi
149 );
150 
151 double phi1z
152 (
153  double eccent, /* Eccentricity angle in radians */
154  double qs, /* Angle in radians */
155  long *flag /* Error flag number */
156 );
157 
158 double phi3z
159 (
160  double ml, /* Constant */
161  double e0, /* Constant */
162  double e1, /* Constant */
163  double e2, /* Constant */
164  double e3, /* Constant */
165  long *flag /* Error flag number */
166 );
167 
168 double adjust_lon
169 (
170  double x /* Angle in radians */
171 );
172 
173 long eqconforint
174 (
175  double r_maj, /* major axis */
176  double r_min, /* minor axis */
177  double lat1, /* latitude of standard parallel*/
178  double lat2, /* latitude of standard parallel*/
179  double center_lon, /* center longitude */
180  double center_lat, /* center latitude */
181  double false_east, /* x offset in meters */
182  double false_north, /* y offset in meters */
183  long mode /* which format is present A B */
184 );
185 
186 long eqconfor
187 (
188  double lon, /* (I) Longitude */
189  double lat, /* (I) Latitude */
190  double *x, /* (O) X projection coordinate */
191  double *y /* (O) Y projection coordinate */
192 );
193 
194 long eqconinvint
195 (
196  double r_maj, /* major axis */
197  double r_min, /* minor axis */
198  double lat1, /* latitude of standard parallel*/
199  double lat2, /* latitude of standard parallel*/
200  double center_lon, /* center longitude */
201  double center_lat, /* center latitude */
202  double false_east, /* x offset in meters */
203  double false_north, /* y offset in meters */
204  long mode /* which format is present A B */
205 );
206 
207 long eqconinv
208 (
209  double x, /* (O) X projection coordinate */
210  double y, /* (O) Y projection coordinate */
211  double *lon, /* (I) Longitude */
212  double *lat /* (I) Latitude */
213 );
214 
215 long equiforint
216 (
217  double r_maj, /* major axis */
218  double center_lon, /* center longitude */
219  double lat1, /* latitude of true scale */
220  double false_east, /* x offset in meters */
221  double false_north /* y offset in meters */
222 );
223 
224 long equifor
225 (
226  double lon, /* (I) Longitude */
227  double lat, /* (I) Latitude */
228  double *x, /* (O) X projection coordinate */
229  double *y /* (O) Y projection coordinate */
230 );
231 
232 long equiinvint
233 (
234  double r_maj, /* major axis */
235  double center_lon, /* center longitude */
236  double lat1, /* latitude of true scale */
237  double false_east, /* x offset in meters */
238  double false_north /* y offset in meters */
239 );
240 
241 long equiinv
242 (
243  double x, /* (O) X projection coordinate */
244  double y, /* (O) Y projection coordinate */
245  double *lon, /* (I) Longitude */
246  double *lat /* (I) Latitude */
247 );
248 
249 void for_init
250 (
251  long outsys, /* output system code */
252  long outzone, /* output zone number */
253  const double *outparm, /* output array of projection parameters */
254  long outspheroid, /* output spheroid */
255  long *iflg, /* status flag */
256  long (*for_trans[])(double,double,double*,double*)
257  /* forward function pointer */
258 );
259 
260 long gnomforint
261 (
262  double r, /* (I) Radius of the earth (sphere) */
263  double center_long, /* (I) Center longitude */
264  double center_lat, /* (I) Center latitude */
265  double false_east, /* x offset in meters */
266  double false_north /* y offset in meters */
267 );
268 
269 long gnomfor
270 (
271  double lon, /* (I) Longitude */
272  double lat, /* (I) Latitude */
273  double *x, /* (O) X projection coordinate */
274  double *y /* (O) Y projection coordinate */
275 );
276 
277 long gnominvint
278 (
279  double r, /* (I) Radius of the earth (sphere) */
280  double center_long, /* (I) Center longitude */
281  double center_lat, /* (I) Center latitude */
282  double false_east, /* x offset in meters */
283  double false_north /* y offset in meters */
284 );
285 
286 long gnominv
287 (
288  double x, /* (O) X projection coordinate */
289  double y, /* (O) Y projection coordinate */
290  double *lon, /* (I) Longitude */
291  double *lat /* (I) Latitude */
292 );
293 
294 long goodforint
295 (
296  double r /* (I) Radius of the earth (sphere) */
297 );
298 
299 long goodfor
300 (
301  double lon, /* (I) Longitude */
302  double lat, /* (I) Latitude */
303  double *x, /* (O) X projection coordinate */
304  double *y /* (O) Y projection coordinate */
305 );
306 
307 long goodinvint
308 (
309  double r /* (I) Radius of the earth (sphere) */
310 );
311 
312 long goodinv
313 (
314  double x, /* (I) X projection coordinate */
315  double y, /* (I) Y projection coordinate */
316  double *lon, /* (O) Longitude */
317  double *lat /* (O) Latitude */
318 );
319 
320 long gvnspforint
321 (
322  double r, /* (I) Radius of the earth (sphere) */
323  double h, /* height above sphere */
324  double center_long, /* (I) Center longitude */
325  double center_lat, /* (I) Center latitude */
326  double false_east, /* x offset in meters */
327  double false_north /* y offset in meters */
328 );
329 
330 long gvnspfor
331 (
332  double lon, /* (I) Longitude */
333  double lat, /* (I) Latitude */
334  double *x, /* (O) X projection coordinate */
335  double *y /* (O) Y projection coordinate */
336 );
337 
338 long gvnspinvint
339 (
340  double r, /* (I) Radius of the earth (sphere) */
341  double h, /* height above sphere */
342  double center_long, /* (I) Center longitude */
343  double center_lat, /* (I) Center latitude */
344  double false_east, /* x offset in meters */
345  double false_north /* y offset in meters */
346 );
347 
348 long gvnspinv
349 (
350  double x, /* (O) X projection coordinate */
351  double y, /* (O) Y projection coordinate */
352  double *lon, /* (I) Longitude */
353  double *lat /* (I) Latitude */
354 );
355 
356 long hamforint
357 (
358  double r, /* (I) Radius of the earth (sphere) */
359  double center_long, /* (I) Center longitude */
360  double false_east, /* x offset in meters */
361  double false_north /* y offset in meters */
362 );
363 
364 long hamfor
365 (
366  double lon, /* (I) Longitude */
367  double lat, /* (I) Latitude */
368  double *x, /* (O) X projection coordinate */
369  double *y /* (O) Y projection coordinate */
370 );
371 
372 long haminvint
373 (
374  double r, /* (I) Radius of the earth (sphere) */
375  double center_long, /* (I) Center longitude */
376  double false_east, /* x offset in meters */
377  double false_north /* y offset in meters */
378 );
379 
380 long haminv
381 (
382  double x, /* (O) X projection coordinate */
383  double y, /* (O) Y projection coordinate */
384  double *lon, /* (I) Longitude */
385  double *lat /* (I) Latitude */
386 );
387 
388 long imolwforint
389 (
390  double r /* (I) Radius of the earth (sphere) */
391 );
392 
393 long imolwfor
394 (
395  double lon, /* (I) Longitude */
396  double lat, /* (I) Latitude */
397  double *x, /* (O) X projection coordinate */
398  double *y /* (O) Y projection coordinate */
399 );
400 
401 long imolwinvint
402 (
403  double r /* (I) Radius of the earth (sphere) */
404 );
405 
406 long imolwinv
407 (
408  double x, /* (I) X projection coordinate */
409  double y, /* (I) Y projection coordinate */
410  double *lon, /* (O) Longitude */
411  double *lat /* (O) Latitude */
412 );
413 
414 void inv_init
415 (
416  long insys, /* input system code */
417  long inzone, /* input zone number */
418  const double *inparm, /* input array of projection parameters */
419  long inspheroid, /* input spheroid code */
420  long *iflg, /* status flag */
421  long (*inv_trans[])(double,double,double*,double*)
422  /* inverse function pointer */
423 );
424 
425 long isinusforinit
426 (
427  double sphere, /* (I) Radius of the earth (sphere) */
428  double lon_cen_mer, /* (I) Longitude of central meridian (radians) */
429  double false_east, /* (I) Easting at projection origin (meters) */
430  double false_north, /* (I) Northing at projection origin (meters) */
431  double dzone, /* (I) Number of longitudinal zones */
432  double djustify /* (I) Justify (flag for rows w/odd # of columns)*/
433 );
434 
435 long isinusfor
436 (
437  double lon, /* (I) Longitude */
438  double lat, /* (I) Latitude */
439  double *x, /* (O) X projection coordinate */
440  double *y /* (O) Y projection coordinate */
441 );
442 
443 long isinusinvinit
444 (
445  double sphere, /* (I) Radius of the earth (sphere) */
446  double lon_cen_mer, /* (I) Longitude of central meridian (radians) */
447  double false_east, /* (I) Easting at projection origin (meters) */
448  double false_north, /* (I) Northing at projection origin (meters) */
449  double dzone, /* (I) Number of longitudinal zones */
450  double djustify /* (I) Justify (flag for rows w/odd # of columns)*/
451 );
452 
453 long isinusinv
454 (
455  double x, /* (I) X projection coordinate */
456  double y, /* (I) Y projection coordinate */
457  double *lon, /* (O) Longitude */
458  double *lat /* (O) Latitude */
459 );
460 
461 long lamazforint
462 (
463  double r, /* (I) Radius of the earth (sphere) */
464  double center_long, /* (I) Center longitude */
465  double center_lat, /* (I) Center latitude */
466  double false_east, /* x offset in meters */
467  double false_north /* y offset in meters */
468 );
469 
470 long lamazfor
471 (
472  double lon, /* (I) Longitude */
473  double lat, /* (I) Latitude */
474  double *x, /* (O) X projection coordinate */
475  double *y /* (O) Y projection coordinate */
476 );
477 
478 long lamazinvint
479 (
480  double r, /* (I) Radius of the earth (sphere) */
481  double center_long, /* (I) Center longitude */
482  double center_lat, /* (I) Center latitude */
483  double false_east, /* x offset in meters */
484  double false_north /* y offset in meters */
485 );
486 
487 long lamazinv
488 (
489  double x, /* (I) X projection coordinate */
490  double y, /* (I) Y projection coordinate */
491  double *lon, /* (O) Longitude */
492  double *lat /* (O) Latitude */
493 );
494 
495 long merforint
496 (
497  double r_maj, /* major axis */
498  double r_min, /* minor axis */
499  double center_lon, /* center longitude */
500  double center_lat, /* center latitude */
501  double false_east, /* x offset in meters */
502  double false_north /* y offset in meters */
503 );
504 
505 long merfor
506 (
507  double lon, /* (I) Longitude */
508  double lat, /* (I) Latitude */
509  double *x, /* (O) X projection coordinate */
510  double *y /* (O) Y projection coordinate */
511 );
512 
513 long merinvint
514 (
515  double r_maj, /* major axis */
516  double r_min, /* minor axis */
517  double center_lon, /* center longitude */
518  double center_lat, /* center latitude */
519  double false_east, /* x offset in meters */
520  double false_north /* y offset in meters */
521 );
522 
523 long merinv
524 (
525  double x, /* (O) X projection coordinate */
526  double y, /* (O) Y projection coordinate */
527  double *lon, /* (I) Longitude */
528  double *lat /* (I) Latitude */
529 );
530 
531 long millforint
532 (
533  double r, /* (I) Radius of the earth (sphere) */
534  double center_long, /* (I) Center longitude */
535  double false_east, /* x offset in meters */
536  double false_north /* y offset in meters */
537 );
538 
539 long millfor
540 (
541  double lon, /* (I) Longitude */
542  double lat, /* (I) Latitude */
543  double *x, /* (O) X projection coordinate */
544  double *y /* (O) Y projection coordinate */
545 );
546 
547 long millinvint
548 (
549  double r, /* (I) Radius of the earth (sphere) */
550  double center_long, /* (I) Center longitude */
551  double false_east, /* x offset in meters */
552  double false_north /* y offset in meters */
553 );
554 
555 long millinv
556 (
557  double x, /* (O) X projection coordinate */
558  double y, /* (O) Y projection coordinate */
559  double *lon, /* (I) Longitude */
560  double *lat /* (I) Latitude */
561 );
562 
563 long molwforint
564 (
565  double r, /* (I) Radius of the earth (sphere) */
566  double center_long, /* (I) Center longitude */
567  double false_east, /* x offset in meters */
568  double false_north /* y offset in meters */
569 );
570 
571 long molwfor
572 (
573  double lon, /* (I) Longitude */
574  double lat, /* (I) Latitude */
575  double *x, /* (O) X projection coordinate */
576  double *y /* (O) Y projection coordinate */
577 );
578 
579 long molwinvint
580 (
581  double r, /* (I) Radius of the earth (sphere) */
582  double center_long, /* (I) Center longitude */
583  double false_east, /* x offset in meters */
584  double false_north /* y offset in meters */
585 );
586 
587 long molwinv
588 (
589  double x, /* (I) X projection coordinate */
590  double y, /* (I) Y projection coordinate */
591  double *lon, /* (O) Longitude */
592  double *lat /* (O) Latitude */
593 );
594 
595 long obleqforint
596 (
597  double r,
598  double center_long,
599  double center_lat,
600  double shape_m,
601  double shape_n,
602  double angle,
603  double false_east,
604  double false_north
605 );
606 
607 long obleqfor
608 (
609  double lon, /* (I) Longitude */
610  double lat, /* (I) Latitude */
611  double *x, /* (O) X projection coordinate */
612  double *y /* (O) Y projection coordinate */
613 );
614 
615 long obleqinvint
616 (
617  double r,
618  double center_long,
619  double center_lat,
620  double shape_m,
621  double shape_n,
622  double angle,
623  double false_east,
624  double false_north
625 );
626 
627 long obleqinv
628 (
629  double x, /* (I) X projection coordinate */
630  double y, /* (I) Y projection coordinate */
631  double *lon, /* (O) Longitude */
632  double *lat /* (O) Latitude */
633 );
634 
635 long orthforint
636 (
637  double r_maj, /* major axis */
638  double center_lon, /* center longitude */
639  double center_lat, /* center latitude */
640  double false_east, /* x offset in meters */
641  double false_north /* y offset in meters */
642 );
643 
644 long orthfor
645 (
646  double lon, /* (I) Longitude */
647  double lat, /* (I) Latitude */
648  double *x, /* (O) X projection coordinate */
649  double *y /* (O) Y projection coordinate */
650 );
651 
652 long orthinvint
653 (
654  double r_maj, /* major axis */
655  double center_lon, /* center longitude */
656  double center_lat, /* center latitude */
657  double false_east, /* x offset in meters */
658  double false_north /* y offset in meters */
659 );
660 
661 long orthinv
662 (
663  double x, /* (O) X projection coordinate */
664  double y, /* (O) Y projection coordinate */
665  double *lon, /* (I) Longitude */
666  double *lat /* (I) Latitude */
667 );
668 
669 double paksz
670 (
671  double ang, /* angle which in DMS */
672  long *iflg /* error flag number */
673 );
674 
675 long robforint
676 (
677  double r, /* (I) Radius of the earth (sphere) */
678  double center_long, /* (I) Center longitude */
679  double false_east, /* x offset in meters */
680  double false_north /* y offset in meters */
681 );
682 
683 long robfor
684 (
685  double lon, /* (I) Longitude */
686  double lat, /* (I) Latitude */
687  double *x, /* (O) X projection coordinate */
688  double *y /* (O) Y projection coordinate */
689 );
690 
691 long robinvint
692 (
693  double r, /* (I) Radius of the earth (sphere) */
694  double center_long, /* (I) Center longitude */
695  double false_east, /* x offset in meters */
696  double false_north /* y offset in meters */
697 );
698 
699 long robinv
700 (
701  double x, /* (O) X projection coordinate */
702  double y, /* (O) Y projection coordinate */
703  double *lon, /* (I) Longitude */
704  double *lat /* (I) Latitude */
705 );
706 
707 long sinforint
708 (
709  double r, /* (I) Radius of the earth (sphere) */
710  double center_long, /* (I) Center longitude */
711  double false_east, /* x offset in meters */
712  double false_north /* y offset in meters */
713 );
714 
715 long sinfor
716 (
717  double lon, /* (I) Longitude */
718  double lat, /* (I) Latitude */
719  double *x, /* (O) X projection coordinate */
720  double *y /* (O) Y projection coordinate */
721 );
722 
723 long sininvint
724 (
725  double r, /* (I) Radius of the earth (sphere) */
726  double center_long, /* (I) Center longitude */
727  double false_east, /* x offset in meters */
728  double false_north /* y offset in meters */
729 );
730 
731 long sininv
732 (
733  double x, /* (I) X projection coordinate */
734  double y, /* (I) Y projection coordinate */
735  double *lon, /* (O) Longitude */
736  double *lat /* (O) Latitude */
737 );
738 
739 void sphdz
740 (
741  long isph, /* spheroid code number */
742  const double *parm, /* projection parameters */
743  double *r_major, /* major axis */
744  double *r_minor, /* minor axis */
745  double *radius /* radius */
746 );
747 
748 long sterforint
749 (
750  double r_maj, /* major axis */
751  double center_lon, /* center longitude */
752  double center_lat, /* center latitude */
753  double false_east, /* x offset in meters */
754  double false_north /* y offset in meters */
755 );
756 
757 long sterfor
758 (
759  double lon, /* (I) Longitude */
760  double lat, /* (I) Latitude */
761  double *x, /* (O) X projection coordinate */
762  double *y /* (O) Y projection coordinate */
763 );
764 
765 long sterinvint
766 (
767  double r_maj, /* major axis */
768  double center_lon, /* center longitude */
769  double center_lat, /* center latitude */
770  double false_east, /* x offset in meters */
771  double false_north /* y offset in meters */
772 );
773 
774 long sterinv
775 (
776  double x, /* (O) X projection coordinate */
777  double y, /* (O) Y projection coordinate */
778  double *lon, /* (I) Longitude */
779  double *lat /* (I) Latitude */
780 );
781 
782 long untfz
783 (
784  long inunit,
785  long outunit,
786  double *factor
787 );
788 
789 long vandgforint
790 (
791  double r, /* (I) Radius of the earth (sphere) */
792  double center_long, /* (I) Center longitude */
793  double false_east, /* x offset in meters */
794  double false_north /* y offset in meters */
795 );
796 
797 long vandgfor
798 (
799  double lon, /* (I) Longitude */
800  double lat, /* (I) Latitude */
801  double *x, /* (O) X projection coordinate */
802  double *y /* (O) Y projection coordinate */
803 );
804 
805 long vandginvint
806 (
807  double r, /* (I) Radius of the earth (sphere) */
808  double center_long, /* (I) Center longitude */
809  double false_east, /* x offset in meters */
810  double false_north /* y offset in meters */
811 );
812 
813 long vandginv
814 (
815  double x, /* (O) X projection coordinate */
816  double y, /* (O) Y projection coordinate */
817  double *lon, /* (I) Longitude */
818  double *lat /* (I) Latitude */
819 );
820 
821 long wivforint
822 (
823  double r, /* (I) Radius of the earth (sphere) */
824  double center_long, /* (I) Center longitude */
825  double false_east, /* x offset */
826  double false_north /* y offset */
827 );
828 
829 long wivfor
830 (
831  double lon, /* (I) Longitude */
832  double lat, /* (I) Latitude */
833  double *x, /* (O) X projection coordinate */
834  double *y /* (O) Y projection coordinate */
835 );
836 
837 long wivinvint
838 (
839  double r, /* (I) Radius of the earth (sphere) */
840  double center_long, /* (I) Center longitude */
841  double false_east, /* x offset */
842  double false_north /* y offset */
843 );
844 
845 long wivinv
846 (
847  double x, /* (I) X projection coordinate */
848  double y, /* (I) Y projection coordinate */
849  double *lon, /* (O) Longitude */
850  double *lat /* (O) Latitude */
851 );
852 
853 long wviiforint
854 (
855  double r, /* (I) Radius of the earth (sphere) */
856  double center_long, /* (I) Center longitude */
857  double false_east, /* x offset */
858  double false_north /* y offset */
859 );
860 
861 long wviifor
862 (
863  double lon, /* (I) Longitude */
864  double lat, /* (I) Latitude */
865  double *x, /* (O) X projection coordinate */
866  double *y /* (O) Y projection coordinate */
867 );
868 
869 long wviiinvint
870 (
871  double r, /* (I) Radius of the earth (sphere) */
872  double center_long, /* (I) Center longitude */
873  double false_east, /* x offset */
874  double false_north /* y offset */
875 );
876 
877 long wviiinv
878 (
879  double x, /* (I) X projection coordinate */
880  double y, /* (I) Y projection coordinate */
881  double *lon, /* (O) Longitude */
882  double *lat /* (O) Latitude */
883 );
884 
885 #endif
long goodforint(double r)
Definition: goodfor.c:35
long millfor(double lon, double lat, double *x, double *y)
Definition: millfor.c:64
long eqconinv(double x, double y, double *lon, double *lat)
Definition: eqconinv.c:129
double qsfnz(double eccent, double sinphi)
Definition: oli_cproj.c:78
int r
Definition: decode_rs.h:73
long obleqforint(double r, double center_long, double center_lat, double shape_m, double shape_n, double angle, double false_east, double false_north)
Definition: obleqfor.c:36
long merinv(double x, double y, double *lon, double *lat)
Definition: merinv.c:76
long orthinvint(double r_maj, double center_lon, double center_lat, double false_east, double false_north)
Definition: orthinv.c:35
long robforint(double r, double center_long, double false_east, double false_north)
Definition: proj_robfor.c:43
long haminvint(double r, double center_long, double false_east, double false_north)
Definition: proj_haminv.c:40
long vandgfor(double lon, double lat, double *x, double *y)
Definition: vandgfor.c:64
long imolwinv(double x, double y, double *lon, double *lat)
Definition: imolwinv.c:65
long eqconfor(double lon, double lat, double *x, double *y)
Definition: eqconfor.c:129
long wviiforint(double r, double center_long, double false_east, double false_north)
Definition: wviifor.c:30
void for_init(long outsys, long outzone, const double *outparm, long outspheroid, long *iflg, long(*for_trans[])(double, double, double *, double *))
Definition: for_init.c:20
long molwfor(double lon, double lat, double *x, double *y)
Definition: proj_molwfor.c:53
long alconinvint(double r_maj, double r_min, double false_east, double false_north)
Definition: alconinv.c:46
long azimforint(double r_maj, double center_lon, double center_lat, double false_east, double false_north)
Definition: azimfor.c:36
long gnomforint(double r, double center_long, double center_lat, double false_east, double false_north)
Definition: gnomfor.c:40
long sterinvint(double r_maj, double center_lon, double center_lat, double false_east, double false_north)
Definition: sterinv.c:35
README for MOD_PR02AQUA(AQUA) Version to set to For disabling creating and output data sets when in night mode
Definition: README.txt:96
long sterfor(double lon, double lat, double *x, double *y)
Definition: sterfor.c:67
float h[MODELMAX]
Definition: atrem_corl1.h:131
float * lat
long wivinvint(double r, double center_long, double false_east, double false_north)
Definition: wivinv.c:30
long gvnspinv(double x, double y, double *lon, double *lat)
Definition: gvnspinv.c:76
long gvnspfor(double lon, double lat, double *x, double *y)
Definition: gvnspfor.c:76
long merinvint(double r_maj, double r_min, double center_lon, double center_lat, double false_east, double false_north)
Definition: merinv.c:37
long wivinv(double x, double y, double *lon, double *lat)
Definition: wivinv.c:56
long hamforint(double r, double center_long, double false_east, double false_north)
Definition: proj_hamfor.c:41
long isinusforinit(double sphere, double lon_cen_mer, double false_east, double false_north, double dzone, double djustify)
Definition: isinfor.c:115
long imolwfor(double lon, double lat, double *x, double *y)
Definition: imolwfor.c:67
long orthfor(double lon, double lat, double *x, double *y)
Definition: orthfor.c:67
long lamazinvint(double r, double center_long, double center_lat, double false_east, double false_north)
Definition: lamazinv.c:41
long alconfor(double lon, double lat, double *x, double *y)
Definition: alconfor.c:102
long sinfor(double lon, double lat, double *x, double *y)
Definition: sinfor.c:61
long goodinvint(double r)
Definition: goodinv.c:35
long vandginvint(double r, double center_long, double false_east, double false_north)
Definition: vandginv.c:38
long wviiinv(double x, double y, double *lon, double *lat)
Definition: wviiinv.c:56
long wviiinvint(double r, double center_long, double false_east, double false_north)
Definition: wviiinv.c:30
long isinusinv(double x, double y, double *lon, double *lat)
Definition: isininv.c:472
long millinvint(double r, double center_long, double false_east, double false_north)
Definition: millinv.c:38
long eqconforint(double r_maj, double r_min, double lat1, double lat2, double center_lon, double center_lat, double false_east, double false_north, long mode)
Definition: eqconfor.c:40
long lamazfor(double lon, double lat, double *x, double *y)
Definition: lamazfor.c:70
void inv_init(long insys, long inzone, const double *inparm, long inspheroid, long *iflg, long(*inv_trans[])(double, double, double *, double *))
Definition: inv_init.c:20
long sinforint(double r, double center_long, double false_east, double false_north)
Definition: sinfor.c:35
long merfor(double lon, double lat, double *x, double *y)
Definition: merfor.c:76
long obleqinv(double x, double y, double *lon, double *lat)
Definition: obleqinv.c:77
long alberfor(double lon, double lat, double *x, double *y)
Definition: alberfor.c:107
double phi1z(double eccent, double qs, long *flag)
Definition: oli_cproj.c:99
long sininvint(double r, double center_long, double false_east, double false_north)
Definition: sininv.c:35
long molwforint(double r, double center_long, double false_east, double false_north)
Definition: proj_molwfor.c:37
double adjust_lon(double x)
Definition: proj_cproj.c:349
long equifor(double lon, double lat, double *x, double *y)
Definition: equifor.c:64
long obleqinvint(double r, double center_long, double center_lat, double shape_m, double shape_n, double angle, double false_east, double false_north)
Definition: obleqinv.c:36
void sincos(double val, double *sin_val, double *cos_val)
Definition: proj_cproj.c:52
long azimfor(double lon, double lat, double *x, double *y)
Definition: azimfor.c:69
long vandginv(double x, double y, double *lon, double *lat)
Definition: vandginv.c:64
long orthinv(double x, double y, double *lon, double *lat)
Definition: orthinv.c:68
long gnominv(double x, double y, double *lon, double *lat)
Definition: gnominv.c:71
long gnomfor(double lon, double lat, double *x, double *y)
Definition: gnomfor.c:69
long untfz(long inunit, long outunit, double *factor)
Definition: untfz.c:35
long isinusfor(double lon, double lat, double *x, double *y)
Definition: isinfor.c:460
long molwinv(double x, double y, double *lon, double *lat)
Definition: proj_molwinv.c:52
long sterforint(double r_maj, double center_lon, double center_lat, double false_east, double false_north)
Definition: sterfor.c:35
long aziminvint(double r_maj, double center_lon, double center_lat, double false_east, double false_north)
Definition: aziminv.c:35
long alconforint(double r_maj, double r_min, double false_east, double false_north)
Definition: alconfor.c:46
long millinv(double x, double y, double *lon, double *lat)
Definition: millinv.c:64
long wivfor(double lon, double lat, double *x, double *y)
Definition: wivfor.c:56
long alberforint(double r_maj, double r_min, double lat1, double lat2, double lon0, double lat0, double false_east, double false_north)
Definition: alberfor.c:36
long lamazinv(double x, double y, double *lon, double *lat)
Definition: lamazinv.c:71
long wivforint(double r, double center_long, double false_east, double false_north)
Definition: wivfor.c:30
long goodfor(double lon, double lat, double *x, double *y)
Definition: goodfor.c:83
long imolwinvint(double r)
Definition: imolwinv.c:31
double paksz(double ang, long *iflg)
Definition: paksz.c:50
long alconinv(double x, double y, double *lon, double *lat)
Definition: alconinv.c:101
long gnominvint(double r, double center_long, double center_lat, double false_east, double false_north)
Definition: gnominv.c:41
long lamazforint(double r, double center_long, double center_lat, double false_east, double false_north)
Definition: lamazfor.c:41
long millforint(double r, double center_long, double false_east, double false_north)
Definition: millfor.c:38
double phi3z(double ml, double e0, double e1, double e2, double e3, long *flag)
Definition: oli_cproj.c:138
long gvnspforint(double r, double h, double center_long, double center_lat, double false_east, double false_north)
Definition: gvnspfor.c:43
long vandgforint(double r, double center_long, double false_east, double false_north)
Definition: vandgfor.c:38
long alberinv(double x, double y, double *lon, double *lat)
Definition: alberinv.c:110
long gvnspinvint(double r, double h, double center_long, double center_lat, double false_east, double false_north)
Definition: gvnspinv.c:42
double asinz(double con)
Definition: proj_cproj.c:67
long hamfor(double lon, double lat, double *x, double *y)
Definition: proj_hamfor.c:60
void sphdz(long isph, const double *parm, double *r_major, double *r_minor, double *radius)
Definition: sphdz.c:141
long obleqfor(double lon, double lat, double *x, double *y)
Definition: obleqfor.c:77
long haminv(double x, double y, double *lon, double *lat)
Definition: proj_haminv.c:59
long robinvint(double r, double center_long, double false_east, double false_north)
Definition: proj_robinv.c:46
float * lon
long sterinv(double x, double y, double *lon, double *lat)
Definition: sterinv.c:67
long alberinvint(double r_maj, double r_min, double lat1, double lat2, double lon0, double lat0, double false_east, double false_north)
Definition: alberinv.c:38
long goodinv(double x, double y, double *lon, double *lat)
Definition: goodinv.c:83
long robinv(double x, double y, double *lon, double *lat)
Definition: proj_robinv.c:111
long sininv(double x, double y, double *lon, double *lat)
Definition: sininv.c:61
long orthforint(double r_maj, double center_lon, double center_lat, double false_east, double false_north)
Definition: orthfor.c:35
long aziminv(double x, double y, double *lon, double *lat)
Definition: aziminv.c:68
void radius(double A)
Definition: proj_report.c:132
long merforint(double r_maj, double r_min, double center_lon, double center_lat, double false_east, double false_north)
Definition: merfor.c:37
long equiinvint(double r_maj, double center_lon, double lat1, double false_east, double false_north)
Definition: equiinv.c:33
msiBandIdx val
Definition: l1c_msi.cpp:34
long wviifor(double lon, double lat, double *x, double *y)
Definition: wviifor.c:56
long equiinv(double x, double y, double *lon, double *lat)
Definition: equiinv.c:64
long eqconinvint(double r_maj, double r_min, double lat1, double lat2, double center_lon, double center_lat, double false_east, double false_north, long mode)
Definition: eqconinv.c:40
long molwinvint(double r, double center_long, double false_east, double false_north)
Definition: proj_molwinv.c:35
long isinusinvinit(double sphere, double lon_cen_mer, double false_east, double false_north, double dzone, double djustify)
Definition: isininv.c:128
long equiforint(double r_maj, double center_lon, double lat1, double false_east, double false_north)
Definition: equifor.c:33
long robfor(double lon, double lat, double *x, double *y)
Definition: proj_robfor.c:108
long imolwforint(double r)
Definition: imolwfor.c:31