Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/esheldon/desmeds

code specific to des MEDS production
https://github.com/esheldon/desmeds

Last synced: 11 days ago
JSON representation

code specific to des MEDS production

Awesome Lists containing this project

README

        

# desmeds
[![tests](https://github.com/esheldon/desmeds/actions/workflows/tests.yml/badge.svg)](https://github.com/esheldon/desmeds/actions/workflows/tests.yml)

code specific to des MEDS production

## generating a single MEDS file

```bash
# A meds file can be generated using a single script
desmeds-make-meds medsconf coadd_run band

# a worked example
medsconf="tb-y1a1-v01d"
coadd_run="20141105000042_DES0347-5540"
band="z"
desmeds-make-meds $medsconf $coadd_run $band

# You can also first make a "stubby" meds, holding information
# required to run the MEDSMaker. This is useful because creating
# the inputs requires network and db access, but creating the
# final file does not
desmeds-make-stubby-meds medsconf coadd_run band

# now make the full meds, taking inputs from the stubby MEDS.
# this call does not require db access
desmeds-make-meds --from-stubby medsconf coadd_run band
```

## Example meds configuration files

For example meds config files, see https://github.com/esheldon/desmeds-config
An example testbed is `medstb-y1a1-v01d.yaml`. Note you need the environment variable
`DESMEDS_CONFIG_DIR` set to point to the location of the config files.

## generating scripts to make MEDS files for a DESDM release
```bash
desmeds-gen-all-release medsconf
```
The above generates all the [wq](https://github.com/esheldon/wq) submit scripts.
The `wq` submit scripts call `desmeds-make-meds`

## installation
```bash
python setup.py install
python setup.py install --prefix=/some/path
```

## requirements

* [meds](https://github.com/esheldon/meds) (version >= 0.9.0)
* [desdb](https://github.com/esheldon/desdb) (version >= 0.9.0)
* [fitsio](https://github.com/esheldon/fitsio) (use git master for now)
* [esutil](https://github.com/esheldon/esutil) (version >= 0.5.3)
* The `$DESDATA` environment variable should point to the
root of the des data on your system
* The `$DESMEDS_CONFIG_DIR` environment variable should point to the location of the config files