ET-NCMP / NCMP

Software in R for calculating National Climate Monitoring Products
5 stars 1 forks source link

Provide more user-friendly error messages #6

Open ET-NCMP opened 7 years ago

ET-NCMP commented 7 years ago

The error messages the code produces when it fails are aimed at the programmer, rather than providing useful feedback for the user.

It would be useful to improve the error reporting for the users of the code (i.e. the NCMP focal points) so that they can understand how to fix the problems.

ET-NCMP commented 6 years ago

The proposed P-zero script will catch some problems - by ensuring stations have appropriate data coverage for the calculation of indices etc.

Other errors will have to be sorted out by "defensive programming" within the scripts i.e. checking that arrays have the appropriate amount of data in, or that there is at least one station with data etc....