Defines | Functions
wmm_file.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include "GeomagnetismHeader.h"
#include "EGM9615.h"
Include dependency graph for wmm_file.c:

Go to the source code of this file.

Defines

#define MAXINBUFF   RECL+14
#define MAXREAD   MAXINBUFF-2
#define NaN   log(-1.0)
#define PATH   MAXREAD
#define RECL   81

Functions

float degrees_to_decimal (int degrees, int minutes, int seconds)
float julday (int i_month, int i_day, int i_year)
int main (int argv, char **argc)
void print_result_file (FILE *outf, double d, double i, double h, double x, double y, double z, double f, double ddot, double idot, double hdot, double xdot, double ydot, double zdot, double fdot)
int safegets (char *buffer, int n)

Define Documentation

#define MAXINBUFF   RECL+14

Definition at line 45 of file wmm_file.c.

#define MAXREAD   MAXINBUFF-2

Max size of in buffer

Definition at line 49 of file wmm_file.c.

#define NaN   log(-1.0)

Definition at line 41 of file wmm_file.c.

#define PATH   MAXREAD

Max to read 2 less than total size (just to be safe)

Definition at line 53 of file wmm_file.c.

#define RECL   81

Definition at line 43 of file wmm_file.c.


Function Documentation

float degrees_to_decimal ( int  degrees,
int  minutes,
int  seconds 
)

Definition at line 735 of file wmm_file.c.

float julday ( int  i_month,
int  i_day,
int  i_year 
)

Definition at line 800 of file wmm_file.c.

int main ( int  argv,
char **  argc 
)

This will compute everything needed for 1 point in time.

Above will compute everything for 1 point in time.

Definition at line 97 of file wmm_file.c.

void print_result_file ( FILE *  outf,
double  d,
double  i,
double  h,
double  x,
double  y,
double  z,
double  f,
double  ddot,
double  idot,
double  hdot,
double  xdot,
double  ydot,
double  zdot,
double  fdot 
)

Definition at line 638 of file wmm_file.c.

int safegets ( char *  buffer,
int  n 
)

ptr used for finding '
'

Get n chars

Set last char to null

If string contains '
'

If string contains '
'

Change char to '\0'

Return the length

Definition at line 695 of file wmm_file.c.



world_magnetic_model
Author(s): National Geophysical Data Center (NGDC, Boulder CO, USA), British Geological Survey (BGS, Edinburgh, Scotland)
autogenerated on Sat Jul 26 2014 07:02:19