google-code-export / ccc-gistemp

Automatically exported from code.google.com/p/ccc-gistemp
Other
0 stars 0 forks source link

vischeck complains when given a single URL #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$ tool/vischeck.py http://data.giss.nasa.gov/gistemp/tabledata/GLB.Ts+dSST.txt
http://chart.apis.google.com/chart?cht=lc&chds=-100,100&chd=t:-25,-20,-22,-24,-3
0,-
30,-25,-35,-27,-15,-37,-27,-32,-31,-33,-27,-16,-12,-24,-17,-9,-15,-27,-31,-34,-2
4,-
20,-38,-34,-35,-33,-33,-34,-32,-15,-9,-31,-40,-32,-20,-19,-13,-24,-20,-21,-16,-1
,-
13,-11,-25,-7,-1,-6,-18,-7,-11,-3,8,11,3,5,10,3,10,20,7,-4,0,-4,-7,-15,-4,3,11,-
10,-10,-
17,7,8,6,-1,8,4,8,-21,-11,-3,0,-4,8,3,-10,0,14,-8,-4,-
16,13,1,9,18,26,5,26,9,5,13,26,31,20,38,35,13,14,23,38,29,40,56,32,33,48,56,55,4
9,63,54,57,
43,57&chxt=x,y,r&chxl=0:|1880||||||||||1890||||||||||1900||||||||||1910|||||||||
|1920||||||||||1930
||||||||||1940||||||||||1950||||||||||1960||||||||||1970||||||||||1980||||||||||
1990||||||||||2000|||||||||
2009|1:||-0.5|+0.0|+0.5||2:||-0.5|+0.0|+0.5|&chco=ff0000,000000&chs=600x500
Traceback (most recent call last):
  File "tool/vischeck.py", line 201, in <module>
    sys.exit(main())
  File "tool/vischeck.py", line 197, in main
    chartit(fs, offset=offset)
  File "tool/vischeck.py", line 163, in chartit
    o = open(re.sub('(\.[^.]*|)$', '.png', name(f)), 'wb')
IOError: [Errno 2] No such file or directory: 
'http://data.giss.nasa.gov/gistemp/tabledata/GLB.Ts+dSST.png'

--
Note that the URL it outputs seems to be okay.

vischeck is attempting to (pointlessly) write a local file.  That's a problem

Original issue reported on code.google.com by d...@ravenbrook.com on 25 Jan 2010 at 10:55

GoogleCodeExporter commented 9 years ago
Removed the "write a PNG file" feature.  Fixing this issue.  r216.

Original comment by d...@ravenbrook.com on 25 Jan 2010 at 11:34