You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by go...@apache.org on 2013/08/28 15:52:53 UTC
svn commit: r1518205 - in /incubator/climate/trunk/examples:
simple-model-to-model-bias.py simple_model_to_model_bias.py
Author: goodale
Date: Wed Aug 28 13:52:52 2013
New Revision: 1518205
URL: http://svn.apache.org/r1518205
Log:
CLIMATE-263: Changed the name of the python file to use underscores instead of dashes in the name.
I also cleaned up some of the print statements in the file as well.
Added:
incubator/climate/trunk/examples/simple_model_to_model_bias.py
- copied, changed from r1517638, incubator/climate/trunk/examples/simple-model-to-model-bias.py
Removed:
incubator/climate/trunk/examples/simple-model-to-model-bias.py
Copied: incubator/climate/trunk/examples/simple_model_to_model_bias.py (from r1517638, incubator/climate/trunk/examples/simple-model-to-model-bias.py)
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/examples/simple_model_to_model_bias.py?p2=incubator/climate/trunk/examples/simple_model_to_model_bias.py&p1=incubator/climate/trunk/examples/simple-model-to-model-bias.py&r1=1517638&r2=1518205&rev=1518205&view=diff
==============================================================================
--- incubator/climate/trunk/examples/simple-model-to-model-bias.py (original)
+++ incubator/climate/trunk/examples/simple_model_to_model_bias.py Wed Aug 28 13:52:52 2013
@@ -1,19 +1,13 @@
import datetime
-
import ocw.data_source.local as local
import ocw.dataset_processor as dsp
# Two Local Model Files
FILE_1 = "AFRICA_KNMI-RACMO2.2b_CTL_ERAINT_MM_50km_1989-2008_tasmax.nc"
FILE_2 = "AFRICA_UC-WRF311_CTL_ERAINT_MM_50km-rg_1989-2008_tasmax.nc"
-
# Load the Files into OCW Objects Using the local from ocw.data_source
dataset_1 = local.load_file(FILE_1, "tasmax")
dataset_2 = local.load_file(FILE_2, "tasmax")
-
-print dataset_1.values.shape
-print dataset_2.values.shape
-
# Do Temporal Rebinning to an Annual Time Step using dataset_processor
dataset_1 = dsp.temporal_rebin(dataset_1, datetime.timedelta(days=365))
dataset_2 = dsp.temporal_rebin(dataset_2, datetime.timedelta(days=365))