10 * EC_ext v1.0 wesley ebisuzaki
12 * prints something readable from the EC stream parameter
14 * prefix and suffix are only printed if EC_ext has text
17 void EC_ext(unsigned char *pds
, char *prefix
, char *suffix
) {
21 for (i=0; i < PDS_LEN(pds); i++) {
26 10/03/2000: R.Rudsar : subroutine changed.
27 Tests for EcType and extra test for EcStream 1035
29 if (PDS_Center(pds
) == ECMWF
&& PDS_LEN(pds
) >= 43) {
31 switch(PDS_EcType(pds
)) {
33 printf("%sControl forecast%s", prefix
, suffix
);
36 printf("%sPerturbed forecasts%s", prefix
, suffix
);
39 printf("%sCluster means%s", prefix
, suffix
);
42 printf("%sCluster std. dev.%s", prefix
, suffix
);
45 printf("%sForecast probability%s", prefix
, suffix
);
48 printf("%sEnsemble means%s", prefix
, suffix
);
51 printf("%sEnsemble std. dev.%s", prefix
, suffix
);
54 printf("%sECMWF type?%s", prefix
, suffix
);
58 if (PDS_Center(pds
) == ECMWF
&& PDS_LEN(pds
) >= 45) {
60 switch(PDS_EcStream(pds
)) {
62 printf("%sensemble forecasts%s", prefix
, suffix
);
65 printf("%smon mean%s", prefix
, suffix
);
68 printf("%smon (co)var%s", prefix
, suffix
);
71 printf("%smon mean from daily%s", prefix
, suffix
);
74 printf("%sECMWF stream?%s", prefix
, suffix
);