OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
ias_geo.h File Reference
#include "ias_const.h"
#include "ias_structures.h"
Include dependency graph for ias_geo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ias_projection
 

Macros

#define NULLZONE   62
 
#define WGS84_SPHEROID   12
 

Functions

int ias_geo_convert_deg2dms (double deg, double *dms, const char *check)
 
int ias_geo_convert_dms2deg (double angle_dms, double *angle_degrees, const char *type)
 
void ias_geo_convert_geod2cart (double latitude, double longitude, double height, double semimajor, double flattening, IAS_VECTOR *cart)
 
void ias_geo_find_deg (double angle, int *degree)
 
void ias_geo_find_min (double angle, int *minute)
 
void ias_geo_find_sec (double angle, double *second)
 
int ias_geo_get_units (const char *unit_name, int *unit_num)
 
int ias_geo_does_cross_180 (int unit, double const corner_longitudes[4])
 
int ias_geo_add_once_around (int unit, double *lon)
 
void ias_geo_lagrange_interpolate (const double *seconds_from_ref, const IAS_VECTOR *position, const IAS_VECTOR *velocity, int n_pts, double delta_time, IAS_VECTOR *interpolated_position, IAS_VECTOR *interpolated_velocity)
 
int ias_geo_report_proj_err (int err)
 
int ias_geo_transform_projection (int inproj, int inunit, int inzone, const double *inparm, int inspheroid, int outproj, int outunit, int outzone, const double *outparm, int outspheroid, double inx, double iny, double *outx, double *outy)
 
IAS_GEO_PROJ_TRANSFORMATION * ias_geo_create_proj_transformation (const IAS_PROJECTION *source_projection, const IAS_PROJECTION *target_projection)
 
void ias_geo_destroy_proj_transformation (IAS_GEO_PROJ_TRANSFORMATION *trans)
 
void ias_geo_only_allow_threadsafe_transforms ()
 
int ias_geo_transform_coordinate (const IAS_GEO_PROJ_TRANSFORMATION *trans, double inx, double iny, double *outx, double *outy)
 
void ias_geo_set_projection (int proj_code, int zone, int units, int spheroid, const double *parms, IAS_PROJECTION *proj)
 

Macro Definition Documentation

◆ NULLZONE

#define NULLZONE   62

Definition at line 8 of file ias_geo.h.

◆ WGS84_SPHEROID

#define WGS84_SPHEROID   12

Definition at line 10 of file ias_geo.h.

Function Documentation

◆ ias_geo_add_once_around()

int ias_geo_add_once_around ( int  unit,
double *  lon 
)

◆ ias_geo_convert_deg2dms()

int ias_geo_convert_deg2dms ( double  deg,
double *  dms,
const char *  check 
)

Definition at line 25 of file ias_geo_convert_deg2dms.c.

◆ ias_geo_convert_dms2deg()

int ias_geo_convert_dms2deg ( double  angle_dms,
double *  angle_degrees,
const char *  type 
)

Definition at line 25 of file ias_geo_convert_dms2deg.c.

◆ ias_geo_convert_geod2cart()

void ias_geo_convert_geod2cart ( double  latitude,
double  longitude,
double  height,
double  semimajor,
double  flattening,
IAS_VECTOR cart 
)

Definition at line 25 of file ias_geo_convert_geod2cart.c.

◆ ias_geo_create_proj_transformation()

IAS_GEO_PROJ_TRANSFORMATION* ias_geo_create_proj_transformation ( const IAS_PROJECTION *  source_projection,
const IAS_PROJECTION *  target_projection 
)

Definition at line 144 of file ias_geo_projection_transformation.c.

◆ ias_geo_destroy_proj_transformation()

void ias_geo_destroy_proj_transformation ( IAS_GEO_PROJ_TRANSFORMATION *  trans)

Definition at line 230 of file ias_geo_projection_transformation.c.

◆ ias_geo_does_cross_180()

int ias_geo_does_cross_180 ( int  unit,
double const  corner_longitudes[4] 
)

◆ ias_geo_find_deg()

void ias_geo_find_deg ( double  angle,
int *  degree 
)

Definition at line 17 of file ias_geo_find_deg.c.

◆ ias_geo_find_min()

void ias_geo_find_min ( double  angle,
int *  minute 
)

Definition at line 17 of file ias_geo_find_min.c.

◆ ias_geo_find_sec()

void ias_geo_find_sec ( double  angle,
double *  second 
)

Definition at line 17 of file ias_geo_find_sec.c.

◆ ias_geo_get_units()

int ias_geo_get_units ( const char *  unit_name,
int *  unit_num 
)

◆ ias_geo_lagrange_interpolate()

void ias_geo_lagrange_interpolate ( const double *  seconds_from_ref,
const IAS_VECTOR position,
const IAS_VECTOR velocity,
int  n_pts,
double  delta_time,
IAS_VECTOR interpolated_position,
IAS_VECTOR interpolated_velocity 
)

◆ ias_geo_only_allow_threadsafe_transforms()

void ias_geo_only_allow_threadsafe_transforms ( )

Definition at line 256 of file ias_geo_projection_transformation.c.

◆ ias_geo_report_proj_err()

int ias_geo_report_proj_err ( int  err)

◆ ias_geo_set_projection()

void ias_geo_set_projection ( int  proj_code,
int  zone,
int  units,
int  spheroid,
const double *  parms,
IAS_PROJECTION *  proj 
)

Definition at line 74 of file ias_geo_projection_transformation.c.

◆ ias_geo_transform_coordinate()

int ias_geo_transform_coordinate ( const IAS_GEO_PROJ_TRANSFORMATION *  trans,
double  inx,
double  iny,
double *  outx,
double *  outy 
)

Definition at line 271 of file ias_geo_projection_transformation.c.

◆ ias_geo_transform_projection()

int ias_geo_transform_projection ( int  inproj,
int  inunit,
int  inzone,
const double *  inparm,
int  inspheroid,
int  outproj,
int  outunit,
int  outzone,
const double *  outparm,
int  outspheroid,
double  inx,
double  iny,
double *  outx,
double *  outy 
)