1NGWSYM(3NCARG) NCAR GRAPHICS NGWSYM(3NCARG)
2
3
4
6 NGWSYM - Draws a symbol from the standard WMO/NOAA meteorological fonts
7 by reference to the font name and symbol number within that font.
8
10 CALL NGWSYM(FTYPE,NUM,X,Y,SIZE,ICOLOR,IALT)
11
13 #include <ncarg/ncargC.h>
14
15 void c_ngwsym(char *ftype, int num, float x, float y,
16 float size, int icolor, int ialt)
17
19 FTYPE (an input parameter of type CHARACTER) specifying the
20 desired font. Legal values are:
21
22 'WW' - Present weather.
23
24 'C' - Cloud types.
25
26 'CL' - Low clouds.
27
28 'CM' - Medium clouds.
29
30 'CH' - High clouds.
31
32 'W' - Past weather.
33
34 'N' - Sky cover.
35
36 'a' - Pressure tendency.
37
38 NUM (an input parameter of type INTEGER) specifying the number
39 of the desired symbol within the specified font.
40
41 X (an input parameter of type REAL) specifying the X
42 coordinate position, in world coordinates, where the symbol
43 is to be positioned. This X position marks the horizontal
44 center of the symbol.
45
46 Y (an input parameter of type REAL) specifying the Y
47 coordinate position, in world coordinates, where the symbol
48 is to be positioned. This Y position marks the vertical
49 center of the symbol.
50
51 SIZE (an input parameter of type REAL) the value of which is the
52 height, in world coordinates, of the symbol.
53
54 ICOLOR (an input parameter of type INTEGER) the value of which is
55 the GKS color index specifying what color the symbol will
56 be.
57
58 IALT (an input parameter of type INTEGER) indicating whether an
59 alternate representation for the specified symbol is to be
60 used. If IALT=1, then the alternate symbol for the one
61 specified is drawn. This applies only to a few symbols
62 such as numbers 7, 93, 94, 95, 97 in the WW font and number
63 3 in the W font.
64
66 The C binding argument descriptions are the same as the FORTRAN
67 argument descriptions.
68
70 This function simply looks up the appropriate symbol in either font 36
71 or 37 of Plotchar and uses Plotchar to draw the symbol.
72
73 To produce a table of all the weather symbols broken down by font and
74 symbol number, execute "ncargex fngwsym".
75
76 For the WW (present weather) font, the descriptions for the symbols
77 are:
78
79
80 0 Cloud development NOT observed or NOT observable during past hour
81
82 1 Clouds generally dissolving or becoming less developed during
83 past hour
84
85 2 State of sky on the whole unchanged during past hour
86
87 3 Clouds generally forming or developing during past hour
88
89 4 Visibility reduced by smoke
90
91 5 Haze
92
93 6 Widespread dust in suspension in the air, NOT raised by wind, at
94 time of observation
95
96 7 Dust or sand raised by wind at time of observation
97
98 8 Well-developed dust whirl(s) within past hour
99
100 9 Dust storm or sandstorm within sight of or at station during past
101 hour
102
103 10 Light fog (mist)
104
105 11 Patches of shallow fog at station, NOT deeper than 6 feet on land
106
107 12 More or less continuous shallow fog at station, NOT deeper than 6
108 feet on land
109
110 13 Lightning visible, no thunder heard
111
112 14 Precipitation within sight, but NOT reaching the ground
113
114 15 Precipitation within sight, reaching the ground but distant from
115 station
116
117 16 Precipitation within sight, reaching the ground, near to but NOT
118 at station
119
120 17 Thunderstorm, but no precipitation at the station
121
122 18 Squall(s) within sight during past hour or at time of observation
123
124 19 Funnel cloud(s) within sight of station at time of observation
125
126 20 Drizzle (NOT freezing) or snow grains (NOT falling as showers)
127 during past hour, but NOT at time of observation
128
129 21 Rain (NOT freezing and not falling as showers) during past hour,
130 but NOT at time of observation
131
132 22 Snow (NOT falling as showers) during past hour, but NOT at time
133 of observation
134
135 23 Rain and snow or ice pellets (NOT falling as showers) during past
136 hour, but NOT at time of observation
137
138 24 Freezing drizzle or freezing rain (NOT falling as showers) during
139 past hour, but NOT at time of observation
140
141 25 Showers of rain during past hour, but NOT at time of observation
142
143 26 Showers of snow or of rain and snow, during past hour, but NOT at
144 time of observation
145
146 27 Showers of hail or of hail and rain, during past hour, but NOT at
147 time of observation
148
149 28 Fog during past hour, but NOT at time of observation
150
151 29 Thunderstorm (with or without precipitation) during past hour,
152 but NOT at time of observation
153
154 30 Slight or moderate dust storm or sandstorm, has decreased during
155 past hour
156
157 31 Slight or moderate dust storm or sandstorm, no appreciable change
158 during past hour
159
160 32 Slight or moderate dust storm or sandstorm has begun or increased
161 during past hour
162
163 33 Severe dust storm or sandstorm, has decreased during past hour
164
165 34 Severe dust storm or sandstorm, no appreciable change during past
166 hour
167
168 35 Severe dust storm or sandstorm has begun or increased during past
169 hour
170
171 36 Slight or moderate drifting snow, generally low (less than 6
172 feet)
173
174 37 Heavy drifting snow, generally low
175
176 38 Slight or moderate blowing snow, generally high (more than 6
177 feet)
178
179 39 Heavy blowing snow, generally high
180
181 40 For or ice fog at distance at time of observation, but NOT at
182 station during past hour
183
184 41 Fog or ice fog in patches
185
186 42 Fog or ice fog, sky discernible, has become thinner during past
187 hour
188
189 43 Fog or ice fog, sky NOT discernible, has become thinner during
190 past hour
191
192 44 Fog or ice fog, sky discernible, no appreciable change during
193 past hour
194
195 45 Fog or ice fog, sky NOT discernible, no appreciable change during
196 past hour
197
198 46 Fog or ice fog, sky discernible, has begun or become thicker
199 during past hour
200
201 47 Fog or ice fog, sky NOT discernible, has begun or become thicker
202 during past hour
203
204 48 Fog depositing rime, sky discernible
205
206 49 Fog depositing rime, sky NOT discernible
207
208 50 Intermittent drizzle (NOT freezing), slight at time of
209 observation
210
211 51 Continuous drizzle (NOT freezing), slight at time of observation
212
213 52 Intermittent drizzle (NOT freezing), moderate at time of
214 observation
215
216 53 Continuous drizzle (NOT freezing), moderate at time of
217 observation
218
219 54 Intermittent drizzle (NOT freezing), heavy at time of observation
220
221 55 Continuous drizzle (NOT freezing), heavy at time of observation
222
223 56 Slight freezing drizzle
224
225 57 Moderate or heavy freezing drizzle
226
227 58 Drizzle and rain, slight
228
229 59 Drizzle and rain, moderate or heavy
230
231 60 Intermittent rain (NOT freezing), slight at time of observation
232
233 61 Continuous rain (NOT freezing), slight at time of observation
234
235 62 Intermittent rain (NOT freezing), moderate at time of observation
236
237 63 Continuous rain (NOT freezing), moderate at time of observation
238
239 64 Intermittent rain (NOT freezing), heavy at time of observation
240
241 65 Continuous rain (NOT freezing), heavy at time of observation
242
243 66 Slight freezing rain
244
245 67 Moderate or heavy freezing rain
246
247 68 Rain or drizzle and snow, slight
248
249 69 Rain or drizzle and snow, moderate or heavy
250
251 70 Intermittent fall of snowflakes, slight at time of observation
252
253 71 Continuous fall of snowflakes, slight at time of observation
254
255 72 Intermittent fall of snowflakes, moderate at time of observation
256
257 73 Continuous fall of snowflakes, moderate at time of observation
258
259 74 Intermittent fall of snowflakes, heavy at time of observation
260
261 75 Continuous fall of snowflakes, heavy at time of observation
262
263 76 Ice prisms (with or without fog)
264
265 77 Snow grains (with or without fog)
266
267 78 Isolated starlike snow crystals (with or without fog)
268
269 79 Ice pellets or snow pellets
270
271 80 Slight rain shower(s)
272
273 81 Moderate or heavy rain shower(s)
274
275 82 Violent rain shower(s)
276
277 83 Slight shower(s) of rain and snow mixed
278
279 84 Moderate or heavy shower(s) of rain and snow mixed
280
281 85 Slight snow shower(s)
282
283 86 Moderate or heavy snow shower(s)
284
285 87 Slight shower(s) of snow pellets, or ice pellets with or without
286 rain, or rain and snow mixed
287
288 88 Moderate or heavy shower(s) of snow pellets, or ice pellets, or
289 ice pellets with or without rain or rain and snow mixed
290
291 89 Slight shower(s) of hail, with or without rain or rain and snow
292 mixed, not associated with thunder
293
294 90 Moderate or heavy shower(s) of hail, with or without rain, or
295 rain and snow mixed, not associated with thunder
296
297 91 Slight rain at time of observation; thunderstorm during past
298 hour, but NOT at time of observation
299
300 92 Moderate or heavy rain at time of observation; thunderstorm
301 during past hour, but NOT at time of observation
302
303 93 Slight snow, or rain and snow mixed, or hail at time of
304 observation; thunderstorm during past hour, but NOT at time of
305 observation
306
307 94 Moderate or heavy snow, or rain and snow mixed, or hail at time
308 of observation; thunderstorm during past hour, but NOT at time of
309 observation
310
311 95 Slight or moderate thunderstorm without hail, but with rain
312 and/or snow at time of observation
313
314 96 Slight or moderate thunderstorm, with hail at time of observation
315
316 97 Heavy thunderstorm, without hail, but with rain and/or snow at
317 time of observation
318
319 98 Thunderstorm combined with dust storm or sandstorm at time of
320 observation
321
322 99 Heavy thunderstorm with hail at time of observation
323
324
325
326 For the C (cloud types) font:
327
328 0 Ci - Cirrus
329
330 1 Cc - Cirrocumulus
331
332 2 Cs - Cirrostratus
333
334 3 Ac - Altocumulus
335
336 4 As - Altostratus
337
338 5 Ns - Nimbostratus
339
340 6 Sc - Stratocumulus
341
342 7 St - Stratus
343
344 8 Cu - Cumulus
345
346 9 Cb - Cumulonimbus
347
348
349
350 For the CL (low clouds) font:
351
352 0 not defined
353
354 1 Cu of fair weather, little vertical development and seemingly
355 flattened
356
357 2 Cu of considerable development, generally towering, with or
358 without other Cu or Sc bases all at same level
359
360 3 Cb with tops lacking clear-cut outlines, but distinctly not
361 cirriform or anvil-shaped; with or without Cu, Sc, St
362
363 4 Sc formed by spreading out of Cu; Cu often present also
364
365 5 Sc not formed by spreading out of Cu
366
367 6 St or StFra (stratus fractus), but no StFra of bad weather
368
369 7 StFra and/or CuFra of bad weather (scud)
370
371 8 Cu and Sc (not formed by spreading out of Cu) with bases at
372 different levels
373
374 9 Cb having clearly fibrous (cirriform) top, often anvil-shaped,
375 with or without Cu, Sc, St, or scud
376
377
378
379 For the CM (medium clouds) font:
380
381 0 not defined
382
383 1 Thin As (most of cloud layer semitransparent)
384
385 2 Thick As, greater part sufficiently dense to hide sun (or moon),
386 or Ns
387
388 3 Thin Ac, mostly semitransparent: cloud elements not changing much
389 and at a single level
390
391 4 Thin Ac in patches; cloud elements continually changing and/or
392 occurring at more than one level
393
394 5 Thin Ac in bands or in a layer gradually spreading over sky and
395 usually thickening as a whole
396
397 6 Ac formed by the spreading out of Cu or Cb
398
399 7 Double-layered Ac, or a thick layer of Ac, not increasing; or Ac
400 with As and/or Ns
401
402 8 Ac in the form of Cu-shaped tufts or Ac with turrets
403
404 9 Ac of a chaotic sky, usually at different levels; patches of
405 dense Ci are usually present also
406
407
408
409 For the CH (high clouds) font:
410
411 0 not defined
412
413 1 Filaments of Ci, or "mares tails," scattered and not increasing
414
415 2 Dense Ci in patches or twisted sheaves, usually not increasing,
416 sometimes like remains of Cb; or towers or tufts
417
418 3 Dense Ci, often anvil-shaped, derived from or associated with Cb
419
420 4 Ci, often hook-shaped, gradually spreading over the sky and
421 usually thickening as a whole
422
423 5 Ci and Cs, often in converging bands, or Cs alone; generally
424 overspreading and growing denser; the continuous layer not
425 reaching 45 degree altitude
426
427 6 Ci and Cs, often in converging bands, or Cs alone; generally
428 overspreading and growing denser; the continuous layer exceeding
429 45 degree altitude
430
431 7 Veil of Cs covering the entire sky
432
433 8 Cs not increasing and not covering entire sky
434
435 9 Cc alone or Cc with some Ci or Cs, but the Cc being the main
436 cirriform cloud
437
438
439
440 For the W (past weather) font:
441
442 0 Clear or few clouds [no associated symbol]
443
444 1 Partly cloudy (scattered) or variable sky [no associated symbol]
445
446 2 Cloudy (broken) or overcast [no associated symbol]
447
448 3 Sandstorm or dust storm, or drifting or blowing snow
449
450 4 Fog, ice fog, thick haze or thick smoke
451
452 5 Drizzle
453
454 6 Rain
455
456 7 Snow, or rain and snow mixed, or ice pellets
457
458 8 Shower(s)
459
460 9 Thunderstorm, with or without precipitation
461
462
463
464 For the N (sky cover) font:
465
466 0 No clouds
467
468 1 One-tenth or less
469
470 2 Two-tenths or three-tenths
471
472 3 Four-tenths
473
474 4 Five-tenths
475
476 5 Six-tenths
477
478 6 Seven-tenths or eight tenths
479
480 7 Nine-tenths or overcast with openings
481
482 8 Completely overcast (ten-tenths)
483
484 9 Sky obscured
485
486
487
488 For the a (pressure tendency) font:
489
490 0 Rising, then falling; same as or higher than 3 hours ago
491
492 1 Rising, then steady; or rising, then rising more slowly
493
494 2 Rising steadily, or unsteadily
495
496 3 Falling or steady, then rising; or rising, then rising more
497 rapidly
498
499 4 Steady; same as 3 hours ago
500
501 5 Falling, then rising; same as or lower than 3 hours ago
502
503 6 Falling, then steady; or falling, then falling more slowly
504
505 7 Falling steadily, or unsteadily
506
507 8 Steady or rising, then falling; or falling, then falling more
508 rapidly
509
510 9 not defined
511
513 CALL NGWSYM('N',5,.5,.5,.25,1,0)
514 Plots the symbol for six-tenths cloud cover at position (.5,.5)
515 and height .25 in the foreground color.
516
517 CALL NGWSYM('a',6,.2,.8,.3,1,0)
518 Plots the symbol for barometric pressure that is falling then
519 steady.
520
521 CALL NGWSYM('WW',95,.5,.5,.2,1,1)
522 Plots the alternate symbol for slight or moderate thunderstorm
523 without hail.
524
525 Use the ncargex command to see the following relevant example:
526 fngwsym.
527
529 To use NGWSYM or c_ngwsym, load the NCAR Graphics libraries ncarg,
530 ncarg_gks, and ncarg_c, preferably in that order.
531
533 If an illegal font, or symbol number within a font, is requested, then
534 a warning is issued.
535
537 Online: plotchar(3NCARG), ncarg_cbind(3NCARG)
538
539 Hardcopy: NCAR Graphics Fundamentals, UNIX Version
540
542 Copyright (C) 1987-2009
543 University Corporation for Atmospheric Research
544 The use of this Software is governed by a License Agreement.
545
546
547
548UNIX March 1993 NGWSYM(3NCARG)