[cmor] 113/190: Fixed bug triggering wrong warning on bounds being at the beg/end of month

Alastair McKinstry mckinstry at moszumanska.debian.org
Tue Jul 21 12:54:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch debian/master
in repository cmor.

commit 32ab55db3d4763622cdfa90b078ba982db142adf
Author: Charles Doutriaux <doutriaux1 at llnl.gov>
Date:   Mon Jun 13 14:26:20 2011 -0700

    Fixed bug triggering wrong warning on bounds being at the beg/end of month
---
 Src/cmor_axes.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Src/cmor_axes.c b/Src/cmor_axes.c
index e4fc738..4c0fcd3 100644
--- a/Src/cmor_axes.c
+++ b/Src/cmor_axes.c
@@ -1051,7 +1051,8 @@ int cmor_check_interval(int axis_id, char *interval, double *values, int nvalues
       return 1;
     }
     for (i=0;i<nvalues;i++) {
-      cdRel2Comp(icali,axis->iunits,values[i],&comptime);
+      cmor_convert_time_units(axis->iunits,cmor_tables[axis->ref_table_id].axes[axis->ref_axis_id].units,ctmp);
+      cdRel2Comp(icali,ctmp,values[i],&comptime);
       if (comptime.day!=1) {
 	snprintf(ctmp,CMOR_MAX_STRING,"Bounds value %ld-%d-%d is not beg or end of month and you seem to be writing monthly data, please check",comptime.year,comptime.month,comptime.day);
 	cmor_handle_error(ctmp,CMOR_WARNING);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cmor.git



More information about the debian-science-commits mailing list