def getSDSSUrl(ID):
     dataDir = Settings.getConstants().dataDir
     band = Settings.getConstants().band
     camcol = GalaxyParameters.SDSS(ID).camcol
     field = GalaxyParameters.SDSS(ID).field
     field_str = GalaxyParameters.SDSS(ID).field_str
     runstr = GalaxyParameters.SDSS(ID).runstr
     fpCFile = dataDir+'/SDSS/'+band+'/fpC-'+runstr+'-'+band+camcol+'-'+field_str+'.fit.gz'
     return fpCFile
 def getNedName(ID):
   simpleFile = Settings.getConstants().simpleFile
   ret = GalaxyParameters()
   with open(simpleFile, 'rb') as f:
     NEDNAME_col = 2
     mycsv = csv.reader(f)
     mycsv = list(mycsv)	
     ret.NedName = string.strip(mycsv[ID][NEDNAME_col])
   return ret
  def getFilledUrl(ID, band):
      dataDir = Settings.getConstants().dataDir
      camcol = GalaxyParameters.SDSS(ID).camcol
      field = GalaxyParameters.SDSS(ID).field
      field_str = GalaxyParameters.SDSS(ID).field_str
      runstr = GalaxyParameters.SDSS(ID).runstr
      dupeList = [162, 164, 249, 267, 319, 437, 445, 464, 476, 477, 480, 487, 498, 511, 537, 570, 598, 616, 634, 701, 767, 883, 939]
      if band == 'r':
	fpCFile = dataDir+'/filled2/fpC-'+runstr+'-'+band+camcol+'-'+field_str+'.fits'
      	if (ID +1) in dupeList:
		fpCFile = dataDir+'/filled3/fpC-'+runstr+'-'+band+camcol+'-'+field_str+'.fits'
      else:
      	      fpCFile = dataDir+'/filled_'+band+'/fpC-'+runstr+'-'+band+camcol+'-'+field_str+'.fits'
	      if(ID + 1) in dupeList:
		fpCFile = fpCFile+'B'
      return fpCFile
 def getMaskUrl(ID):
    dataDir = Settings.getConstants().dataDir
    NedName = GalaxyParameters.getNedName(ID).NedName
    print NedName
    maskFile = dataDir+'/MASKS/'+NedName+'_mask_r.fits'
    return maskFile