Skip to content

Commit

Permalink
fixed a bug when decoding horizontal visibility in the case 5000 < VV…
Browse files Browse the repository at this point in the history
… < 6000
  • Loading branch information
gbvalor committed Feb 8, 2016
1 parent 9ad0a10 commit f069549
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libraries/bufr2syn_x20.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ char * vism_to_VV ( char *target, double V )
strcpy ( target, "00" );
else if ( V <= 5000.0 )
sprintf ( target, "%02d", ( int ) ( V + 0.1 ) / 100 );
else if ( V < 6000.0)
sprintf ( target, "50");
else if ( V <= 30000.0 )
sprintf ( target, "%02d", ( int ) ( V + 0.1 ) / 1000 + 50 );
else if ( V <= 70000.0 )
Expand Down

0 comments on commit f069549

Please sign in to comment.