Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eBOSS configuration #100

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open

eBOSS configuration #100

wants to merge 38 commits into from

Conversation

belaa
Copy link

@belaa belaa commented Dec 17, 2018

This PR allows for simulation of the eBOSS spectrograph. It includes a new configuration file specsim/data/config/eboss.yaml along with supplemental data for the instrument, atmosphere, source model, etc in specsim/data/sdss. There are two additional notebooks that detail how eBOSS-specific data was generated and how to simulate spectra in eBOSS mode.

@londumas
Copy link

@belaa, It seems that you need to change field_radius: 325.0 mm to field_radius: 414.0 mm in specsim/data/config/eboss.yaml. Am-I right?

@belaa
Copy link
Author

belaa commented Jan 25, 2019

@londumas 414.0mm is the field radius for DESI. The eBOSS field radius is 325.mm

@londumas
Copy link

Sending this

quickquasars -i /project/projectdirs/desi/mocks/lya_forest/london/v6.0/v6.0.0/1/137/transmission-16-137.fits --outdir test-0-0/spectra-16/ --zbest --bbflux --eboss --seed 123
Traceback (most recent call last):
  File "/Programs/desi//code//desisim/bin/quickquasars", line 9, in <module>
    sys.exit(main())
  File "/Programs/desi/code/desisim/py/desisim/scripts/quickquasars.py", line 798, in main
    bal=bal,eboss=eboss)
  File "/Programs/desi/code/desisim/py/desisim/scripts/quickquasars.py", line 613, in simulate_one_healpix
    meta=specmeta,seed=seed,fibermap_columns=fibermap_columns,use_poisson=False, specsim_config_file="eboss") # use Poisson = False to get reproducible results.
  File "/Programs/desi/code/desisim/py/desisim/scripts/quickspectra.py", line 179, in sim_spectra
    psfconvolve=True, specsim_config_file=specsim_config_file)
  File "/Programs/desi/code/desisim/py/desisim/simexp.py", line 576, in simulate_spectra
    source_position_angle=source_position_angle)
  File "/Programs/desi/code/specsim/specsim/simulator.py", line 358, in simulate
    .format(self.instrument.field_radius))
RuntimeError: A source is located outside the field of view: r > 325.0 mm

@londumas
Copy link

eBOSS is hard codded

    sim_spectra(qso_wave,qso_flux, args.program, obsconditions=obsconditions,spectra_filename=ofilename,
                sourcetype="qso", skyerr=args.skyerr,ra=metadata["RA"],dec=metadata["DEC"],targetid=targetid,
                meta=specmeta,seed=seed,fibermap_columns=fibermap_columns,use_poisson=False, specsim_config_file="eboss")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants