CLIMATE-779 Add ESGF Integration into run_RCMES.py this closes #327
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/1240ee2d Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/1240ee2d Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/1240ee2d Branch: refs/heads/master Commit: 1240ee2d51940a80772ee131cf6245c74421ef18 Parents: 34a0be9 Author: Lewis John McGibbney <[email protected]> Authored: Wed Apr 13 14:09:41 2016 -0700 Committer: Lewis John McGibbney <[email protected]> Committed: Wed Apr 13 14:09:41 2016 -0700 ---------------------------------------------------------------------- .../ESGF_example/ESGF-Example.yaml | 15 +++++++++++++++ RCMES/run_RCMES.py | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/1240ee2d/RCMES/configuration_files/ESGF_example/ESGF-Example.yaml ---------------------------------------------------------------------- diff --git a/RCMES/configuration_files/ESGF_example/ESGF-Example.yaml b/RCMES/configuration_files/ESGF_example/ESGF-Example.yaml index ace7d12..a5369d9 100644 --- a/RCMES/configuration_files/ESGF_example/ESGF-Example.yaml +++ b/RCMES/configuration_files/ESGF_example/ESGF-Example.yaml @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + workdir: ./results/ESGF_example output_netcdf_filename: narccap_zos_annual_mean_1993-2002.nc http://git-wip-us.apache.org/repos/asf/climate/blob/1240ee2d/RCMES/run_RCMES.py ---------------------------------------------------------------------- diff --git a/RCMES/run_RCMES.py b/RCMES/run_RCMES.py index 4e5113a..a06d681 100644 --- a/RCMES/run_RCMES.py +++ b/RCMES/run_RCMES.py @@ -19,6 +19,7 @@ import ocw.dataset_processor as dsp import ocw.data_source.local as local import ocw.data_source.rcmed as rcmed +import ocw.data_source.esgf as esgf import ocw.plotter as plotter import ocw.utils as utils from ocw.dataset import Bounds @@ -37,7 +38,8 @@ import sys from metrics_and_plots import * -import ssl +import ssl + if hasattr(ssl, '_create_unverified_context'): ssl._create_default_https_context = ssl._create_unverified_context
