-
Notifications
You must be signed in to change notification settings - Fork 0
/
xlist
1649 lines (1009 loc) · 41.5 KB
/
xlist
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
This output was generated by Perl program "xlist_functions"
at Thu Apr 6 10:05:58 2006
-------------------------------------------------------------
The SLEUTH modules are:
=======================
--> coeff_obj.c
--> color_obj.c
--> deltatron.c
--> driver.c
--> gdif_obj.c
--> grid_obj.c
--> growth.c
--> igrid_obj.c
--> input.c
--> landclass_obj.c
--> main.c
--> memory_obj.c
--> output.c
--> pgrid_obj.c
--> proc_obj.c
--> random.c
--> scenario_obj.c
--> spread.c
--> stats_obj.c
--> timer_obj.c
--> transition_obj.c
--> utilities.c
--> wgrid_obj.c
=======================
The member functions for each module are listed below:
---> MODULE NAME: coeff_obj.c <---
==============================================
** FUNCTION NAME: coeff_SetCurrentDiffusion
** PURPOSE: set the diffusion field
** FUNCTION NAME: coeff_SetCurrentSpread
** PURPOSE: set the spread field of current_coefficient struct
** FUNCTION NAME: coeff_SetCurrentBreed
** PURPOSE: set breed field of current_coefficient struct
** FUNCTION NAME: coeff_SetCurrentSlopeResist
** PURPOSE: set slope_resistance field of current_coefficient struct
** FUNCTION NAME: coeff_SetCurrentRoadGravity
** PURPOSE: set road_gravity field of current_coefficient
** FUNCTION NAME: coeff_SetStepDiffusion
** PURPOSE: set diffusion field of step_coeff struct
** FUNCTION NAME: coeff_SetStepSpread
** PURPOSE: set spread of step_coeff struct
** FUNCTION NAME: coeff_SetStepBreed
** PURPOSE: set breed field of step_coeff
** FUNCTION NAME: coeff_SetStepSlopeResist
** PURPOSE: set slope_resistance field of step_coeff
** FUNCTION NAME: coeff_SetStepRoadGravity
** PURPOSE: set road_gravity field of step_coeff struct
** FUNCTION NAME: diffusion
** PURPOSE: set diffusion field of start_coeff struct
** FUNCTION NAME: coeff_SetStartSpread
** PURPOSE: set spread field of start_coeff
** FUNCTION NAME: coeff_SetStartBreed
** PURPOSE: set breed field of start_coeff
** FUNCTION NAME: coeff_SetStartSlopeResist
** PURPOSE: set slope_resistance field of start_coeff
** FUNCTION NAME: coeff_SetStartRoadGravity
** PURPOSE: set road_gravity field of start_coeff
** FUNCTION NAME: coeff_SetStopDiffusion
** PURPOSE: set diffusion field of stop_coeff
** FUNCTION NAME: coeff_SetStopSpread
** PURPOSE: set spread field of stop_coeff
** FUNCTION NAME: coeff_SetStopBreed
** PURPOSE: set breed field of stop_coeff
** FUNCTION NAME: coeff_SetStopSlopeResist
** PURPOSE: set slope_resistance field of stop_coeff
** FUNCTION NAME: coeff_SetStopRoadGravity
** PURPOSE: set road_gravity field of stop_coeff
** FUNCTION NAME: coeff_SetBestFitDiffusion
** PURPOSE: set diffusion field of best_fit_coeff
** FUNCTION NAME: coeff_SetBestFitSpread
** PURPOSE: set spread field of best_fit_coeff
** FUNCTION NAME: coeff_SetBestFitBreed
** PURPOSE: set breed field of best_fit_coeff
** FUNCTION NAME: coeff_SetBestFitSlopeResist
** PURPOSE: set slope_resistance field of best_fit_coeff
** FUNCTION NAME: coeff_SetBestFitRoadGravity
** PURPOSE: set road_gravity field of best_fit_coeff
** FUNCTION NAME: coeff_SetSavedDiffusion
** PURPOSE: set diffusion field of saved_coefficient
** FUNCTION NAME: coeff_SetSavedSpread
** PURPOSE: set spread field of saved_coefficient
** FUNCTION NAME: coeff_SetSavedBreed
** PURPOSE: set breed field of saved_coefficient
** FUNCTION NAME: coeff_SetSavedSlopeResist
** PURPOSE: set slope_resistance field of saved_coefficient
** FUNCTION NAME: coeff_SetSavedRoadGravity
** PURPOSE: set road_gravity field of saved_coefficient
** FUNCTION NAME: coeff_GetSavedDiffusion
** PURPOSE: return diffusion from saved_coefficient struct
** FUNCTION NAME: coeff_GetSavedSpread
** PURPOSE: return spread from saved_coefficient struct
** FUNCTION NAME: coeff_GetSavedBreed
** PURPOSE: return breed from saved_coefficient struct
** FUNCTION NAME: coeff_GetSavedSlopeResist
** PURPOSE: return slope_resistance from saved_coefficient struct
** FUNCTION NAME: coeff_GetSavedRoadGravity
** PURPOSE: return road_gravity from saved_coefficient struct
** FUNCTION NAME: coeff_GetCurrentDiffusion
** PURPOSE: return diffusion from current_coefficient struct
** FUNCTION NAME: coeff_GetCurrentSpread
** PURPOSE: return spread from current_coefficient struct
** FUNCTION NAME: coeff_GetCurrentBreed
** PURPOSE: return breed from current_coefficient struct
** FUNCTION NAME: coeff_GetCurrentSlopeResist
** PURPOSE: return slope_resistance from current_coefficient struct
** FUNCTION NAME: coeff_GetCurrentRoadGravity
** PURPOSE: return road_gravity from current_coefficient struct
** FUNCTION NAME: coeff_GetStepDiffusion
** PURPOSE: return diffusion from step_coeff struct
** FUNCTION NAME: coeff_GetStepSpread
** PURPOSE: return spread from step_coeff struct
** FUNCTION NAME: coeff_GetStepBreed
** PURPOSE: return breed from step_coeff struct
** FUNCTION NAME: coeff_GetStepSlopeResist
** PURPOSE: return slope_resistance from step_coeff struct
** FUNCTION NAME: coeff_GetStepRoadGravity
** PURPOSE: return road_gravity from step_coeff struct
** FUNCTION NAME: coeff_GetStartDiffusion
** PURPOSE: return diffusion from start_coeff struct
** FUNCTION NAME: coeff_GetStartSpread
** PURPOSE: return spread from start_coeff struct
** FUNCTION NAME: coeff_GetStartBreed
** PURPOSE: return breed from start_coeff struct
** FUNCTION NAME: coeff_GetStartSlopeResist
** PURPOSE: return slope_resistance from start_coeff struct
** FUNCTION NAME: coeff_GetStartRoadGravity
** PURPOSE: return road_gravity from start_coeff struct
** FUNCTION NAME: coeff_GetStopDiffusion
** PURPOSE: return diffusion from stop_coeff struct
** FUNCTION NAME: coeff_GetStopSpread
** PURPOSE: return spread from stop_coeff struct
** FUNCTION NAME: coeff_GetStopBreed
** PURPOSE: return breed from stop_coeff struct
** FUNCTION NAME: coeff_GetStopSlopeResist
** PURPOSE: return slope_resistance from stop_coeff struct
** FUNCTION NAME: coeff_GetStopRoadGravity
** PURPOSE: return road_gravity from stop_coeff struct
** FUNCTION NAME: coeff_GetBestFitDiffusion
** PURPOSE: return diffusion from best_fit_coeff struct
** FUNCTION NAME: coeff_GetBestFitSpread
** PURPOSE: return spread from best_fit_coeff struct
** FUNCTION NAME: coeff_GetBestFitBreed
** PURPOSE: return breed from best_fit_coeff struct
** FUNCTION NAME: coeff_GetBestFitSlopeResist
** PURPOSE: return slope_resistance from best_fit_coeff struct
** FUNCTION NAME: coeff_GetBestFitRoadGravity
** PURPOSE: return road_gravity from best_fit_coeff struct
** FUNCTION NAME: coeff_MemoryLog
** PURPOSE: log pointers to memory locations to file descriptor fp
** FUNCTION NAME: coeff_LogSaved
** PURPOSE: log values in saved_coefficient struct to file descriptor fp
** FUNCTION NAME: coeff_LogCurrent
** PURPOSE: log values in current_coefficient to file descriptor fp
** FUNCTION NAME: coeff_LogStep
** PURPOSE: log values in step_coeff struct to file descriptor fp
** FUNCTION NAME: coeff_LogStart
** PURPOSE: log values in start_coeff struct to file descriptor fp
** FUNCTION NAME: coeff_LogStop
** PURPOSE: log values in stop_coeff struct to file descriptor fp
** FUNCTION NAME: coeff_LogBestFit
** PURPOSE: log values in best_fit_coeff struct to file descriptor fp
** FUNCTION NAME: coeff_ConcatenateFiles
** PURPOSE: concatenate coefficient files for a given run
** FUNCTION NAME: coeff_WriteCurrentCoeff
** PURPOSE: write current coefficients to a coefficient file
** FUNCTION NAME: coeff_CreateCoeffFile
** PURPOSE: creates a coefficient file for the current run
** FUNCTION NAME: coeff_SelfModication
** PURPOSE: performs self modification of parameters
---> MODULE NAME: color_obj.c <---
==============================================
** FUNCTION NAME: color_GetColortable
** PURPOSE: returns pointer to a selected colortable
** FUNCTION NAME: color_Init
** PURPOSE: main driver for initializing the colortables
** FUNCTION NAME: color_fill
** PURPOSE: initializes RGB values for each colortable
** FUNCTION NAME: color_LogIt
** PURPOSE: logs the colortable values on file descriptor fp
** FUNCTION NAME: color_MemoryLog
** PURPOSE: log the memory locations on file descriptor fp
---> MODULE NAME: deltatron.c <---
==============================================
** FUNCTION NAME: delta_deltatron
** PURPOSE: main driver which calls delta_phase1 & delta_phase2
** FUNCTION NAME: delta_phase1
** PURPOSE: performs deltatron phase 1 growth
** FUNCTION NAME: delta_get_new_landuse
** PURPOSE: determines new landuse to transition to
** FUNCTION NAME: delta_phase2
** PURPOSE: performs phase 2 deltatron growth
---> MODULE NAME: driver.c <---
==============================================
** FUNCTION NAME: drv_driver
** PURPOSE: main function for driving the simulation grw_growth()
** FUNCTION NAME: drv_monte_carlo
** PURPOSE: Monte Carlo loop
** FUNCTION NAME: drv_fmatch
** PURPOSE: calculate fmatch
---> MODULE NAME: gdif_obj.c <---
==============================================
** FUNCTION NAME: gdif_WriteColorKey
** PURPOSE: write colorkeys for a given colortable
** FUNCTION NAME: gdif_WriteGIF
** PURPOSE: interface to GD for writing an GIF image
** FUNCTION NAME: gdif_ReadGIF
** PURPOSE: interface to GD for reading an GIF image
---> MODULE NAME: grid_obj.c <---
==============================================
** FUNCTION NAME: grid_SetMinMax
** PURPOSE: find the min and max for a given grid
** FUNCTION NAME: grid_histogram
** PURPOSE: histogram the values in a grid
** FUNCTION NAME: grid_dump
** PURPOSE: dump some of the values pertaining to a given grid
---> MODULE NAME: growth.c <---
==============================================
** FUNCTION NAME: grw_grow
** PURPOSE: loop over simulated years
** FUNCTION NAME: grw_landuse_init
** PURPOSE: initial variables for doing landuse
** FUNCTION NAME: grw_landuse
** PURPOSE: routine for handling landuse type of processing
** FUNCTION NAME: grw_non_landuse
** PURPOSE: routine for handling non landuse processing
** FUNCTION NAME: grw_completion_status
** PURPOSE: write completion status on FILE* fp
---> MODULE NAME: igrid_obj.c <---
==============================================
** FUNCTION NAME: igrid_MemoryLog
** PURPOSE: write out memory map to FILE* fp
** FUNCTION NAME: igrid_GetIGridRoadPixelCount
** PURPOSE: get road year pixel count by date
** FUNCTION NAME: igrid_GetIGridExcludedPixelCount
** PURPOSE: return the # of excluded pixels
** FUNCTION NAME: igrid_GetIGridRoadPercentage
** PURPOSE: return the % of road pixels for a given year
** FUNCTION NAME: igrid_GetIGridCount
** PURPOSE: return the # of igrids (or input grids)
** FUNCTION NAME: igrid_GetNumRows
** PURPOSE: return the # rows in a grid
** FUNCTION NAME: igrid_GetNumCols
** PURPOSE: return the # cols in a grid
** FUNCTION NAME: igrid_GetNumTotalPixels
** PURPOSE: return the total # pixels in grid
** FUNCTION NAME: igrid_GetUrbanYear
** PURPOSE: return urban date as a digit for a given urban index
** FUNCTION NAME: igrid_GetLanduseYear
** PURPOSE: return landuse date as a digit for a given landuse index
** FUNCTION NAME: igrid_GetUrbanCount
** PURPOSE: return the # of urban grids
** FUNCTION NAME: igrid_GetLocation
** PURPOSE: return location string for this scenario
** FUNCTION NAME: igrid_GridRelease
** PURPOSE: release the memory used by a grid
** FUNCTION NAME: igrid_GetUrbanGridPtr
** PURPOSE: return ptr to urban data
** FUNCTION NAME: igrid_GetRoadGridPtr
** PURPOSE: return ptr to road grid data
** FUNCTION NAME: igrid_GetUrbanGridPtrByYear
** PURPOSE: return ptr to urban grid data by year
** FUNCTION NAME: igrid_GetRoadGridPtrByYear
** PURPOSE: return ptr to road grid data by year
** FUNCTION NAME: igrid_GetLanduseGridPtr
** PURPOSE: return ptr to landuse grid data by index
** FUNCTION NAME: igrid_GetSlopeGridPtr
** PURPOSE: return ptr to slope grid data
** FUNCTION NAME: igrid_GetExcludedGridPtr
** PURPOSE: return ptr to excluded grid data
** FUNCTION NAME: igrid_GetBackgroundGridPtr
** PURPOSE: return ptr to background grid data
** FUNCTION NAME: igrid_Debug
** PURPOSE: a debug routine which can be called at various places
** FUNCTION NAME: igrid_Dump
** PURPOSE: dump the values in a grid
** FUNCTION NAME: igrid_NormalizeRoads
** PURPOSE: normalizes road grids
** FUNCTION NAME: igrid_ValidateGrids
** PURPOSE: validate all input grid values
** FUNCTION NAME: igrid_ValidateUrbanGrids
** PURPOSE: check the validity of the urban grids
** FUNCTION NAME: igrid_ValidateRoadGrids
** PURPOSE: check the validity of the road grids
** FUNCTION NAME: igrid_ValidateLanduseGrids
** PURPOSE: check validity of landuse grid values
** FUNCTION NAME: igrid_ValidateSlopeGrid
** PURPOSE: check validity of slope grid values
** FUNCTION NAME: igrid_ValidateExcludedGrid
** PURPOSE: check validity of excluded grid values
** FUNCTION NAME: igrid_ValidateBackgroundGrid
** PURPOSE: check validity of background grid values
** FUNCTION NAME: igrid_ReadGrid
** PURPOSE: read input grid
** FUNCTION NAME: igrid_ReadFiles
** PURPOSE: read input grids
** FUNCTION NAME: igrid_init
** PURPOSE: initialize some variables
** FUNCTION NAME: igrid_SetLocation
** PURPOSE: set the location string variable
** FUNCTION NAME: igrid_SetFilenames
** PURPOSE: set the filenames of the input files
** FUNCTION NAME: igrid_SetGridSizes
** PURPOSE: scan the input GIFs for size and other parameters
** FUNCTION NAME: igrid_LogIt
** PURPOSE: log the igrid structs to FILE * fp
** FUNCTION NAME: igrid_VerifyInputs
** PURPOSE: verify the grid sizes and some other stuff
** FUNCTION NAME: igrid_CountRoadPixels
** PURPOSE: count the number of road pixels
** FUNCTION NAME: igrid_CalculatePercentRoads
** PURPOSE: calculate road percentage
** FUNCTION NAME: igrid_TestForUrbanYear
** PURPOSE: test if year matches an urban year
** FUNCTION NAME: igrid_UrbanYear2Index
** PURPOSE: convert an urban year into an urban index
** FUNCTION NAME: igrid_TestForRoadYear
** PURPOSE: test if year is a road year
** FUNCTION NAME: igrid_echo_input
** PURPOSE: routine to echo input grids
---> MODULE NAME: input.c <---
==============================================
** FUNCTION NAME: inp_slurp
** PURPOSE: read count chars from filename into ptr
** FUNCTION NAME: inp_read_restart_file
** PURPOSE: read the restart file
---> MODULE NAME: landclass_obj.c <---
==============================================
** FUNCTION NAME: landclass_MemoryLog
** PURPOSE: log memory locations onto FILE* fp
** FUNCTION NAME: landclass_GetReducedClassesPtr
** PURPOSE: return ptr to class_indices
** FUNCTION NAME: landclass_GetClassesPtr
** PURPOSE: return ptr to landuse_classes
** FUNCTION NAME: landclass_GetNewIndicesPtr
** PURPOSE: return ptr to new_indices
** FUNCTION NAME: landclass_GetUrbanCode
** PURPOSE: return the urban code
** FUNCTION NAME: landclass_GetNumLandclasses
** PURPOSE: return num_landclasses
** FUNCTION NAME: landclass_GetNumReducedclasses
** PURPOSE: return num_reduced_classes
** FUNCTION NAME: landclass_GetMaxLandclasses
** PURPOSE: return max_landclass_num
** FUNCTION NAME: landclass_GetClassNum
** PURPOSE: return landclass num for a given index
** FUNCTION NAME: landclass_IsAlandclass
** PURPOSE: test if val is a landclass value
** FUNCTION NAME: landclass_GetClassIDX
** PURPOSE: return idx for a given index
** FUNCTION NAME: landclass_GetClassColor
** PURPOSE: return color val for given landclass
** FUNCTION NAME: landclass_GetClassEXC
** PURPOSE: is this an excluded class
** FUNCTION NAME: landclass_GetClassTrans
** PURPOSE: is this a transition class
** FUNCTION NAME: landclass_GetReducedNum
** PURPOSE: return class num for given class_indices index
** FUNCTION NAME: landclass_GetReducedIDX
** PURPOSE: return idx for a given class_indices index
** FUNCTION NAME: landclass_GetReducedColor
** PURPOSE: return color for given class_indices index
** FUNCTION NAME: landclass_GetReducedEXC
** PURPOSE: is class at class_indices[i] excluded
** FUNCTION NAME: landclass_GetReducedTrans
** PURPOSE: is this a transition class
** FUNCTION NAME: landclass_AnnualProbInit
** PURPOSE: initializes the annual_class_probabilities file with 0's
** FUNCTION NAME: landclass_AnnualProbUpdate
** PURPOSE: update the annual_prob_filename
** FUNCTION NAME: landclass_BuildProbImage
** PURPOSE: build prob images from annual_prob_filename
** FUNCTION NAME: landclass_Init
** PURPOSE: initialization routine for landclasses
** FUNCTION NAME: landclass_SetUrbanCode
** PURPOSE: set the urban code field
** FUNCTION NAME: landclass_CreateReducedClasses
** PURPOSE: create the reduced classes
** FUNCTION NAME: landclass_MapLandclassNum_2_idx
** PURPOSE: CREATE MAPPING FROM LANDUSE CLASS NUM BACK INTO IDX
** FUNCTION NAME: landclassSetNumClasses
** PURPOSE: set num_landclasses
** FUNCTION NAME: landclassSetName
** PURPOSE: set name
** FUNCTION NAME: landclassSetType
** PURPOSE: set Type
** FUNCTION NAME: landclassSetColor
** PURPOSE: set Color
** FUNCTION NAME: landclassSetGrayscale
** PURPOSE: set Grayscale
** FUNCTION NAME: landclass_LogIt
** PURPOSE: log landclass struct to FILE * fp
** FUNCTION NAME: landclass_SetMaxLandclassNum
** PURPOSE: set the max landclass val
---> MODULE NAME: main.c <---
==============================================
** FUNCTION NAME: main
** PURPOSE:
** FUNCTION NAME: print_usage
** PURPOSE: help the user
** FUNCTION NAME: catch
** PURPOSE: catch signals
---> MODULE NAME: memory_obj.c <---
==============================================
** FUNCTION NAME: mem_MemoryLog
** PURPOSE: log memory map to FILE* fp
** FUNCTION NAME: mem_GetPackedBytesPerGrid
** PURPOSE: return # bytes per grid rounded to a word boundary
** FUNCTION NAME: mem_GetTotalPixels
** PURPOSE: return total pixel count in a grid
** FUNCTION NAME: mem_GetIGridPtr
** PURPOSE: return the pointer to the next igrid
** FUNCTION NAME: mem_GetPGridPtr
** PURPOSE: return ptr to next pgrid
** FUNCTION NAME: mem_GetWGridPtr
** PURPOSE: return ptr to next wgrid
** FUNCTION NAME: mem_GetWGridFree
** PURPOSE:
** FUNCTION NAME: mem_Init
** PURPOSE: initialization routine
** FUNCTION NAME: mem_GetLogFP
** PURPOSE: return memory log fp
** FUNCTION NAME: mem_CloseLog
** PURPOSE: close log file
** FUNCTION NAME: mem_CheckMemory
** PURPOSE: check memory
** FUNCTION NAME: mem_InvalidateCheckArray
** PURPOSE: invalidate the check memory array elements
** FUNCTION NAME: mem_CheckCheckArray
** PURPOSE: memory check
** FUNCTION NAME: mem_partition
** PURPOSE: partition the memory
** FUNCTION NAME: mem_InvalidateGrid
** PURPOSE: invalidate a grid
** FUNCTION NAME: mem_CheckInvalidateGrid
** PURPOSE: memory check a grid
** FUNCTION NAME: mem_allocate
** PURPOSE: allocate memory
** FUNCTION NAME: mem_igrid_push
** PURPOSE: push igrid onto a stack
** FUNCTION NAME: mem_igrid_pop
** PURPOSE: pop an igrid from the stack
** FUNCTION NAME: mem_pgrid_push
** PURPOSE: push a pgrid onto a stack
** FUNCTION NAME: mem_pgrid_pop
** PURPOSE: pop a pgrid from the stack
** FUNCTION NAME: mem_wgrid_push
** PURPOSE: push a wgrid onto the stack
** FUNCTION NAME: mem_wgrid_pop
** PURPOSE: pop a wgrid from the stack
** FUNCTION NAME: mem_ReinvalidateMemory
** PURPOSE: invalidate the memory
** FUNCTION NAME: memGetBytesPerGridRound
** PURPOSE: return # bytes per grid rounded to word boundary
** FUNCTION NAME: mem_LogMinFreeWGrids
** PURPOSE: log the minmum # of free grids
** FUNCTION NAME: mem_LogPartition
** PURPOSE: log memory partition to FILE * fp_in
---> MODULE NAME: output.c <---
==============================================
** FUNCTION NAME: out_write_restart_data
** PURPOSE: write restart data to filename
** FUNCTION NAME: out_dump
** PURPOSE: write count chars to filename
** FUNCTION NAME: out_banner
** PURPOSE: write banner to FILE * fp
** FUNCTION NAME: out_center_text
** PURPOSE: center text within a given string
---> MODULE NAME: pgrid_obj.c <---
==============================================
** FUNCTION NAME: pgrid_MemoryLog
** PURPOSE: log memory map to FILE* fp
** FUNCTION NAME: pgrid_GetPGridCount
** PURPOSE: return PGRID_COUNT
** FUNCTION NAME: pgrid_Init
** PURPOSE: initialize the p type grids
** FUNCTION NAME: pgrid_GetZPtr
** PURPOSE: return pointer to z grid
** FUNCTION NAME: pgrid_GetDeltatronPtr
** PURPOSE: return pointer to deltatron grid
** FUNCTION NAME: pgrid_GetDeltaPtr
** PURPOSE: return pointer to delta grid
** FUNCTION NAME: pgrid_GetLand1Ptr
** PURPOSE: return pointer to land1 grid
** FUNCTION NAME: pgrid_GetLand2Ptr
** PURPOSE: return pointer to land2 grid
** FUNCTION NAME: pgrid_GetCumulatePtr
** PURPOSE: return pointer to cumulate grid
---> MODULE NAME: proc_obj.c <---
==============================================
** FUNCTION NAME: proc_MemoryLog
** PURPOSE: log memory map to FILE* fp
** FUNCTION NAME: proc_SetRestartFlag
** PURPOSE: set the restart flag variable
** FUNCTION NAME: proc_GetRestartFlag
** PURPOSE: return the restart flag variable
** FUNCTION NAME: proc_SetProcessingType
** PURPOSE: set the processing type variable
** FUNCTION NAME: proc_SetTotalRuns
** PURPOSE: count the total # of runs
** FUNCTION NAME: proc_SetCurrentRun
** PURPOSE: set the current run variable, current_run
** FUNCTION NAME: proc_SetCurrentMonteCarlo
** PURPOSE: set current monte carlo variable
** FUNCTION NAME: proc_SetCurrentYear
** PURPOSE: set current year
** FUNCTION NAME: proc_SetStopYear
** PURPOSE: set the stop year
** FUNCTION NAME: proc_GetProcessingType
** PURPOSE: return the processing type
** FUNCTION NAME: proc_GetTotalRuns
** PURPOSE: return total run count
** FUNCTION NAME: proc_GetCurrentRun
** PURPOSE: return the current run
** FUNCTION NAME: proc_GetCurrentMonteCarlo
** PURPOSE: return the current monte carlo
** FUNCTION NAME: proc_GetCurrentYear
** PURPOSE: return the current year
** FUNCTION NAME: proc_GetStopYear
** PURPOSE: return the stop year
** FUNCTION NAME: proc_GetLastRun
** PURPOSE: return last run count
** FUNCTION NAME: proc_GetLastRunFlag
** PURPOSE: return last run flag; TRUE if this is the last run
** FUNCTION NAME: proc_SetLastMonteCarlo
** PURPOSE: set last monte carlo run
** FUNCTION NAME: proc_GetLastMonteCarloFlag
** PURPOSE: return last monte carlo flag
** FUNCTION NAME: proc_SetNumRunsExecThisCPU
** PURPOSE: set the num runs executed by this cpu
** FUNCTION NAME: proc_GetNumRunsExecThisCPU
** PURPOSE: return the num runs executed by this cpu
** FUNCTION NAME: proc_IncrementNumRunsExecThisCPU
** PURPOSE: increment the num runs executed by this cpu
** FUNCTION NAME: proc_IncrementCurrentRun
** PURPOSE: increment current run variable
** FUNCTION NAME: proc_SetLastMonteCarloFlag
** PURPOSE: increment current monte carlo variable
** FUNCTION NAME: proc_IncrementCurrentYear
** PURPOSE: increment current year variable
---> MODULE NAME: random.c <---
==============================================
** FUNCTION NAME: ran_random
** PURPOSE: generate random number
** FUNCTION NAME: InitRandom
** PURPOSE: initialize random number generator
---> MODULE NAME: scenario_obj.c <---
==============================================
** FUNCTION NAME: scen_MemoryLog
** PURPOSE: log memory map to FILE* fp
** FUNCTION NAME: scen_GetScenarioFilename
** PURPOSE: return scenario filename
** FUNCTION NAME: scen_GetLogFP
** PURPOSE: return log file pointer
** FUNCTION NAME: scen_Append2Log
** PURPOSE: open log for appending
** FUNCTION NAME: scen_GetOutputDir
** PURPOSE: return output directory
** FUNCTION NAME: scen_GetWhirlgifBinary
** PURPOSE: return whirlgif_binary
** FUNCTION NAME: scen_GetInputDir
** PURPOSE: return input directory
** FUNCTION NAME: scen_GetUrbanDataFileCount
** PURPOSE: return # of urban input files
** FUNCTION NAME: scen_GetRoadDataFileCount
** PURPOSE: return # road data files
** FUNCTION NAME: scen_GetLanduseDataFileCount
** PURPOSE: return # landuse data files
** FUNCTION NAME: scen_GetDoingLanduseFlag
** PURPOSE: return doing landuse flag
** FUNCTION NAME: scen_GetUrbanDataFilename
** PURPOSE: return urban data filename by index, i
** FUNCTION NAME: scen_GetRoadDataFilename
** PURPOSE: return road data filename by index, i
** FUNCTION NAME: scen_GetLanduseDataFilename
** PURPOSE: return landuse data filename by index
** FUNCTION NAME: scen_GetExcludedDataFilename
** PURPOSE: return excluded data filename by index
** FUNCTION NAME: scen_GetSlopeDataFilename
** PURPOSE: return slope data filename
** FUNCTION NAME: scen_GetBackgroundDataFilename
** PURPOSE: return background data filename
** FUNCTION NAME: scen_GetEchoImageFlag
** PURPOSE: return echo_image_files flag
** FUNCTION NAME: scen_GetWriteColorKeyFlag
** PURPOSE: return write_color_keys flag
** FUNCTION NAME: scen_GetPostprocessingFlag
** PURPOSE: return Postprocessing flag
** FUNCTION NAME: scen_GetLogFlag
** PURPOSE: return Log flag
** FUNCTION NAME: scen_GetEchoFlag
** PURPOSE: return echo flag
** FUNCTION NAME: scen_GetRandomSeed
** PURPOSE: return random seed value
** FUNCTION NAME: scen_GetMonteCarloIterations
** PURPOSE: return # monte carlo iterations
** FUNCTION NAME: scen_GetCoeffDiffusionStart
** PURPOSE: return diffusion start value
** FUNCTION NAME: scen_GetCoeffBreedStart