if opt[0]=="-g":
      doget=1
  if overwrite and doget:
    print "Unable overwrite the file while getting it"
    print "Make a better selection of command line options"
    sys.exit(1)

  # If we must overwrite the reference file, we need to
  # create it, first, otherwise, just open it for reading
  refname="reference.cdf"
  if overwrite:
    nc=Dataset(refname,"w")
    nc.version=sys.version
    nc.platform=sys.platform
    if 'byteorder' in dir(sys):
      nc.byteorder=sys.byteorder
    else:
      nc.byteorder="Unknown, Python older than 2.0??"
  else:
    # If there is no local copy of the file, get it from
    # its URL
    if os.access(refname,os.F_OK)==0 or doget:
      thedir="http://starship.python.net/crew/jsaenz/pyclimate/"
      thedir=thedir+"references/"
      theurl=thedir+pyclimate.tools.pyclimateversion()+"/"+refname
      print "There is no local copy of:",refname
      print "Do you want me to get it from"
      print theurl,"?[no]/yes"
      print "Warning: It is about 1.6 Mb"
      answer=sys.stdin.readline()
      if len(answer)==1: