IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42585


Ignore:
Timestamp:
Jan 13, 2024, 2:40:18 PM (3 years ago)
Author:
eugene
Message:

add RA---CAR (Plat-Carre) projection

Location:
branches/eam_branches/ipp-20230313/Ohana/src
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/Ohana/src/libdvo/include/libdvo_astro.h

    r42075 r42585  
    2020  PROJ_TNX, // zenithal
    2121  PROJ_DIS, // zenithal (TAN + polyterms)
     22  PROJ_CAR, // cartesian (Plat-Carre)
    2223  PROJ_LIN, // cartesian
    2324  PROJ_PLY, // cartesian (allow polyterms)
  • branches/eam_branches/ipp-20230313/Ohana/src/libdvo/src/coordops.c

    r42389 r42585  
    10721072  if (!strncmp(&ctype[4], "-TNX", 4)) return PROJ_TNX;
    10731073  if (!strncmp(&ctype[4], "-DIS", 4)) return PROJ_DIS;
     1074  if (!strncmp(&ctype[4], "-CAR", 4)) return PROJ_CAR;
    10741075  if (!strncmp(&ctype[4], "-LIN", 4)) return PROJ_LIN;
    10751076  if (!strncmp(&ctype[0], "GENE", 4)) return PROJ_LIN; // note ctype[0]
     
    10941095    case PROJ_TNX: strcpy(&ctype[4], "-TNX"); return TRUE;
    10951096    case PROJ_DIS: strcpy(&ctype[4], "-DIS"); return TRUE;
     1097    case PROJ_CAR: strcpy(&ctype[4], "-CAR"); return TRUE;
    10961098    case PROJ_LIN: strcpy(&ctype[4], "-LIN"); return TRUE;
    10971099    case PROJ_PLY: strcpy(&ctype[4], "-PLY"); return TRUE;
     
    11181120    case PROJ_DIS:
    11191121      return PROJ_MODE_ZENITHAL;
     1122    case PROJ_CAR:
    11201123    case PROJ_LIN:
    11211124    case PROJ_PLY:
  • branches/eam_branches/ipp-20230313/Ohana/src/opihi/cmd.astro/region.c

    r42078 r42585  
    160160    if (!strcasecmp (argv[CtypeArg], "PAR")) { strcpy (graphmode.coords.ctype, "DEC--PAR"); goto got_ctype; }
    161161    if (!strcasecmp (argv[CtypeArg], "MOL")) { strcpy (graphmode.coords.ctype, "DEC--MOL"); goto got_ctype; }
     162    if (!strcasecmp (argv[CtypeArg], "LIN")) { strcpy (graphmode.coords.ctype, "DEC--LIN"); goto got_ctype; }
     163    if (!strcasecmp (argv[CtypeArg], "CAR")) { strcpy (graphmode.coords.ctype, "DEC--CAT"); goto got_ctype; }
    162164    gprint (GP_ERR, "ERROR: invalid projection type %s\n", argv[CtypeArg]);
    163     gprint (GP_ERR, "allowed values: TAN, SIN, ARC, STG, ZEA, AIT, GLS, PAR, MOL\n");
     165    gprint (GP_ERR, "allowed values: TAN, SIN, ARC, STG, ZEA, AIT, GLS, PAR, MOL, LIN, CAR\n");
    164166    return FALSE;
    165167  }
Note: See TracChangeset for help on using the changeset viewer.