def extractSF(self, state):
        if self.project.resolution == 'County':
            #print 'County', """ftp://ftp2.census.gov/acs2009_5yr/summaryfile/2005-2009_ACSSF_By_State_All_Tables/%s_All_Geographies_Not_Tracts_Block_Groups.zip"""%(self.state)
            sf_file = "%s_All_Geographies_Not_Tracts_Block_Groups.zip" % self.state
        elif self.project.resolution == 'Blockgroup' or self.project.resolution == 'Tract':
            #print 'Tract/Blockgroup', """ftp://ftp2.census.gov/acs2009_5yr/summaryfile/2005-2009_ACSSF_By_State_All_Tables/%s_Tracts_Block_Groups_Only.zip""" %(self.state)
            sf_file = "%s_Tracts_Block_Groups_Only.zip" % self.state

        file = UnzipFile(self.loc, sf_file)
        file.unzip()
    def extractSF(self, state):
	if self.project.resolution == 'County':
	    #print 'County', """ftp://ftp2.census.gov/acs2009_5yr/summaryfile/2005-2009_ACSSF_By_State_All_Tables/%s_All_Geographies_Not_Tracts_Block_Groups.zip"""%(self.state)
	    sf_file = "%s_All_Geographies_Not_Tracts_Block_Groups.zip"%self.state
	elif self.project.resolution == 'Blockgroup' or self.project.resolution == 'Tract':
	    #print 'Tract/Blockgroup', """ftp://ftp2.census.gov/acs2009_5yr/summaryfile/2005-2009_ACSSF_By_State_All_Tables/%s_Tracts_Block_Groups_Only.zip""" %(self.state)
	    sf_file = "%s_Tracts_Block_Groups_Only.zip"%self.state
	
   	file = UnzipFile(self.loc, sf_file)
        file.unzip()
 def extractShapes(self):
     bgFile = UnzipFile(self.loc, "bg%s_d00_shp.zip" % (self.stateCode))
     bgFile.unzip()
     countyFile = UnzipFile(self.loc, "co%s_d00_shp.zip" % (self.stateCode))
     countyFile.unzip()
     tractFile = UnzipFile(self.loc, "tr%s_d00_shp.zip" % (self.stateCode))
     tractFile.unzip()
Example #4
0
 def extractPUMS(self, filetype):
     web_stabb = self.project.stateAbb[self.state]
     
     if filetype == 'H':
         hfile = UnzipFile(self.loc, "csv_h%s.zip" %(web_stabb))
         hfile.unzip()
     else:
         pfile = UnzipFile(self.loc, "csv_p%s.zip" %(web_stabb))
         pfile.unzip()        
 def extractPUMS(self, filetype):
     web_stabb = self.project.stateAbb[self.state]
     
     if filetype == 'H':
         hfile = UnzipFile(self.loc, "csv_h%s.zip" %(web_stabb))
         hfile.unzip()
     else:
         pfile = UnzipFile(self.loc, "csv_p%s.zip" %(web_stabb))
         pfile.unzip()        
    def extractPUMS(self):

        web_state = '%s' %self.state
        web_state = web_state.replace(' ', '_')
        file = UnzipFile(self.loc, "all_%s.zip" %(web_state))
        file.unzip()
Example #7
0
    def extractPUMS(self):

        web_state = '%s' %self.state
        web_state = web_state.replace(' ', '_')
        file = UnzipFile(self.loc, "all_%s.zip" %(web_state))
        file.unzip()
 def extractSF(self, state):
     for i in self.rawSF[1:]:
         j = i %(self.stateAbb[self.state])
         file = UnzipFile(self.loc, j)
         file.unzip()
 def extractSF(self, state):
     for i in self.rawSF:
         file = UnzipFile(self.loc, "%s%s" %(self.stateAbb[state],i))
         file.unzip()
# PopGen 1.1 is A Synthetic Population Generator for Advanced
Example #11
0
# PopGen 1.1 is A Synthetic Population Generator for Advanced
Example #12
0
 def extractSF(self, state):
     for i in self.rawSF[1:]:
         j = i % (self.stateAbb[self.state])
         file = UnzipFile(self.loc, j)
         file.unzip()
Example #13
0
 def extractSF(self, state):
     for i in self.rawSF:
         file = UnzipFile(self.loc, "%s%s" % (self.stateAbb[state], i))
         file.unzip()