Code Monkey home page Code Monkey logo

acs_tools's People

Contributors

borisdev avatar borisdev2 avatar schmidtc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

acs_tools's Issues

`us` as a state abbreviation, not sure what it is supposed to be?

STATE_AB
['al', 'ak', 'ar', 'az', 'ca', 'co', 'ct', 'dc', 'de', 'fl', 'ga', 'hi', 'ia', 'id', 'il', 'in', 'ks', 'ky', 'la', 'ma', 'md', 'me', 'mi', 'mn', 'mo', 'ms', 'mt', 'nc', 'nd', 'ne', 'nh', 'nj', 'nm', 'nv', 'ny', 'oh', 'ok', 'or', 'pa', 'pr', 'ri', 'sc', 'sd', 'tn', 'tx', 'us', 'ut', 'va', 'vt', 'wa', 'wi', 'wv', 'wy']

download_shps.py bug when downloading breaks middle way

When download breaks in the middle of the process fname can exist but there is no shapefile so last line below returns error:

        if not os.path.exists(fname):
            with open(fname,'wb') as o:
                o.write(dat)
            os.system('unzip '+fname)
        shp = pysal.open(fname.replace('.zip','.shp'),'r')

File "download_shps.py", line 162, outshp.close() bug

Traceback (most recent call last):
  File "download_shps.py", line 173, in <module>
    fetch_and_merge_state_block_shapefiles(outname="blocks")
  File "download_shps.py", line 162, in fetch_and_merge_state_block_shapefiles
    outshp.close()
  File "/usr/local/lib/python2.7/dist-packages/pysal/core/IOHandlers/pyShpIO.py", line 187, in close
    self.dataObj.close()
  File "/usr/local/lib/python2.7/dist-packages/pysal/core/util/shapefile.py", line 385, in close
    self._shx.close(self.header)
  File "/usr/local/lib/python2.7/dist-packages/pysal/core/util/shapefile.py", line 525, in close
    self.fileObj.write(pack(fmt, *values))
struct.error: 'i' format requires -2147483648 <= number <= 2147483647

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.