Revision: 8529
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8529&view=rev
Author:   jswhit
Date:     2010-07-07 14:02:04 +0000 (Wed, 07 Jul 2010)

Log Message:
-----------
update URLs

Modified Paths:
--------------
    trunk/toolkits/basemap/examples/fcstmaps.py
    trunk/toolkits/basemap/examples/fcstmaps_axesgrid.py

Modified: trunk/toolkits/basemap/examples/fcstmaps.py
===================================================================
--- trunk/toolkits/basemap/examples/fcstmaps.py 2010-07-07 13:59:29 UTC (rev 
8528)
+++ trunk/toolkits/basemap/examples/fcstmaps.py 2010-07-07 14:02:04 UTC (rev 
8529)
@@ -15,16 +15,20 @@
     YYYYMMDD = datetime.datetime.today().strftime('%Y%m%d')
 
 # set OpenDAP server URL.
-URLbase="http://nomad1.ncep.noaa.gov:9090/dods/mrf/mrf";
-URL=URLbase+YYYYMMDD+'/mrf'+YYYYMMDD
-print URL+'\n'
 try:
+    URLbase="http://nomad1.ncep.noaa.gov:9090/dods/mrf/mrf";
+    URL=URLbase+YYYYMMDD+'/mrf'+YYYYMMDD
     data = NetCDFFile(URL)
 except:
-    msg = """
+    try:
+        URLbase="http://nomad2.ncep.noaa.gov:9090/dods/mrf/mrf";
+        URL=URLbase+YYYYMMDD+'/mrf'+YYYYMMDD
+        data = NetCDFFile(URL)
+    except:
+        msg = """
 opendap server not providing the requested data.
 Try another date by providing YYYYMMDD on command line."""
-    raise IOError, msg
+        raise IOError, msg
 
 
 # read lats,lons,times.

Modified: trunk/toolkits/basemap/examples/fcstmaps_axesgrid.py
===================================================================
--- trunk/toolkits/basemap/examples/fcstmaps_axesgrid.py        2010-07-07 
13:59:29 UTC (rev 8528)
+++ trunk/toolkits/basemap/examples/fcstmaps_axesgrid.py        2010-07-07 
14:02:04 UTC (rev 8529)
@@ -17,16 +17,20 @@
     YYYYMMDD = datetime.datetime.today().strftime('%Y%m%d')
 
 # set OpenDAP server URL.
-URLbase="http://nomad1.ncep.noaa.gov:9090/dods/mrf/mrf";
-URL=URLbase+YYYYMMDD+'/mrf'+YYYYMMDD
-print URL+'\n'
 try:
+    URLbase="http://nomad1.ncep.noaa.gov:9090/dods/mrf/mrf";
+    URL=URLbase+YYYYMMDD+'/mrf'+YYYYMMDD
     data = NetCDFFile(URL)
 except:
-    msg = """
+    try:
+        URLbase="http://nomad2.ncep.noaa.gov:9090/dods/mrf/mrf";
+        URL=URLbase+YYYYMMDD+'/mrf'+YYYYMMDD
+        data = NetCDFFile(URL)
+    except:
+        msg = """
 opendap server not providing the requested data.
 Try another date by providing YYYYMMDD on command line."""
-    raise IOError, msg
+        raise IOError, msg
 
 
 # read lats,lons,times.


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to