climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boust...@apache.org
Subject svn commit: r1521539 - /incubator/climate/trunk/examples/knmi_to_cru31_full_bias.py
Date Tue, 10 Sep 2013 16:25:11 GMT
Author: boustani
Date: Tue Sep 10 16:25:10 2013
New Revision: 1521539

URL: http://svn.apache.org/r1521539
Log:
Using patameter_id instead of longname to select the observation.

Modified:
    incubator/climate/trunk/examples/knmi_to_cru31_full_bias.py

Modified: incubator/climate/trunk/examples/knmi_to_cru31_full_bias.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/examples/knmi_to_cru31_full_bias.py?rev=1521539&r1=1521538&r2=1521539&view=diff
==============================================================================
--- incubator/climate/trunk/examples/knmi_to_cru31_full_bias.py (original)
+++ incubator/climate/trunk/examples/knmi_to_cru31_full_bias.py Tue Sep 10 16:25:10 2013
@@ -25,7 +25,8 @@ print("KNMI_Dataset.values shape: (times
 """ Step 2: Fetch an OCW Dataset Object from the data_source.rcmed module """
 print("Working with the rcmed interface to get CRU3.1 Daily-Max Temp")
 metadata = rcmed.get_parameters_metadata()
-cru_31 = [m for m in metadata if m['longname'] == "CRU3.1 Daily-Maximum Temperature"][0]
+
+cru_31 = [m for m in metadata if m['parameter_id'] == "39"][0]
 
 """ The RCMED API uses the following function to query, subset and return the 
 raw data from the database:



Mime
View raw message