-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.h
139 lines (124 loc) · 4.04 KB
/
output.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#ifndef OUTPUT_H
#define OUTPUT_H
#include "coeff_obj.h"
#ifdef OUTPUT_MODULE
/* stuff visable only to the output module */
char output_h_sccs_id[] = "@(#)output.h 1.259 12/4/00";
#if 0
struct colortable* out_annual_colortable_p;
struct colortable* out_urban_colortable_p;
struct colortable* out_urban2_colortable_p;
struct colortable* out_grayscale_colortable_p;
struct colortable* out_landuse_colortable_p;
struct colortable* out_non_landuse_colortable_p;
/* controls for the date string on the output GIF */
#define DATE_X 1
#define DATE_Y igrid_GetNumRows() - 16
#endif
#endif
#if 0
extern struct colortable* out_annual_colortable_p;
extern struct colortable* out_urban_colortable_p;
extern struct colortable* out_urban2_colortable_p;
extern struct colortable* out_grayscale_colortable_p;
extern struct colortable* out_landuse_colortable_p;
extern struct colortable* out_non_landuse_colortable_p;
/* #defines visable to any module including this header file*/
/* max size of a colortable */
#define MAX_COLORS 256
/* types of colortables */
#define GRAYSCALE 0
#define ANNUAL 1
#define URBAN 2
#define URBAN2 3
#define LANDUSE_COLORMAP 4
#define NON_LANDUSE_COLORMAP 5
struct RGB{
int red;
int green;
int blue;
};
struct colortable{
int size;
char name[80];
struct RGB color[MAX_COLORS];
};
/*
*
* FUNCTION PROTOTYPES
*
*/
struct colortable* out_create_colortable(int);
void out_write_gif( GRID_P, struct colortable*, char*, char*, int);
#endif
void
out_echotruth (igrid_info* input_grid);
void out_write_restart_data(char*,int,int,int,int,int,int,int);
void
out_write_calibrate_file (int stop_date,
int num_monte_carlo,
long random_seed,
coeff_int_info* step_coeff,
coeff_int_info* start_coeff,
coeff_int_info* stop_coeff);
#if 0
void
out_write_grow_log (char* filename,
float percent_road,
coeff_val_info * current_coefficient,
int ticktock,
double growth_rate,
double percent_urban,
float average_slope,
int num_growth_pix,
int index,
float leesalee,
stats_info * stats,
Gstats * gstats,
igrid_info * input_grid);
#endif
void
out_write_control_stats(char* filename,
double sum,
float compare,
float pop_r2,
float edge_r2,
float cluster_r2,
float mean_cluster_size_r2,
float leesal,
float average_slope_r2,
float pct_urban_r2,
float xmu_r2,
float ymu_r2,
float sdist_r2,
float value,
coeff_val_info* saved_coefficient);
void out_dump(char* filename,
void* ptr,
int count);
void
out_write_param_log (char* filename,
coeff_val_info * current_coefficient,
int index,
igrid_info * input_grid);
void out_write_avg_dev(char* filename, /* IN */
double* ptr, /* IN */
int row_dim, /* IN */
int col_dim, /* IN */
int row_count, /* IN */
int col_count); /* IN */
void
out_dump_debug (char *var_name,
void *var_ptr,
char* calling_func,
int line,
int count);
void
out_banner(FILE* fp);
void
out_center_text(FILE* fp,
char* source,
char* text,
char* destination,
int left_offset);
#endif