pceof.h
Go to the documentation of this file.00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 #ifndef PCEOF_H
00048 #define PCEOF_H
00049
00050 #ifdef HAVE_CONFIG_H
00051 #include <config.h>
00052 #endif
00053
00055 #define _GNU_SOURCE
00056
00057 #ifdef HAVE_STDLIB_H
00058 #include <stdlib.h>
00059 #endif
00060 #ifdef HAVE_SYS_TYPES_H
00061 #include <sys/types.h>
00062 #endif
00063 #ifdef HAVE_SYS_STAT_H
00064 #include <sys/stat.h>
00065 #endif
00066 #ifdef HAVE_FCNTL_H
00067 #include <fcntl.h>
00068 #endif
00069 #ifdef HAVE_SIGNAL_H
00070 #include <signal.h>
00071 #endif
00072 #ifdef HAVE_TIME_H
00073 #include <time.h>
00074 #endif
00075 #ifdef HAVE_MATH_H
00076 #include <math.h>
00077 #endif
00078 #ifdef HAVE_UNISTD_H
00079 #include <unistd.h>
00080 #endif
00081 #ifdef HAVE_STRING_H
00082 #include <string.h>
00083 #endif
00084 #ifdef HAVE_STDIO_H
00085 #include <stdio.h>
00086 #endif
00087 #ifdef HAVE_SYS_MMAN_H
00088 #include <sys/mman.h>
00089 #endif
00090
00092 #define TRUE 1
00093
00094 #define FALSE 0
00095
00097 #define EARTH_RADIUS 6371229.0
00098
00099 #define DEGTORAD M_PI/180.0
00100
00101 #include <gsl/gsl_statistics.h>
00102
00103
00104 #include <misc.h>
00105
00106
00107 void normalize_pc(double *norm_all, double *first_variance, double *buf_renorm, double *bufin, int neof, int ntime);
00108 int project_field_eof(double *bufout, double *bufin, double *bufeof, double *singular_value,
00109 double missing_value_eof, double *lon, double *lat, double scale, int ni, int nj, int ntime, int neof);
00110
00111 #endif