set_needlet_environment modified to read in the code name