Skip to content

Commit 021ae24

Browse files
2 parents b8f7783 + 807e540 commit 021ae24

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,15 @@ You may need to update this location in `flares.py#L29` by changing the `self.di
3434

3535
## Tutorial
3636

37-
`flares.py` contains the `flares` class, which contains a lot of useful functionality for anlysing the resims. The most important information is the specified halos (`flares.halos`) and snapshots (`flares.tags`) you wish to analyse; these should be updated as new resims are completed.
37+
`flares.py` contains the `flares` class, which contains a lot of useful functionality for analysing the resims.
38+
The most important information is the specified halos (`flares.halos`) and snapshots (`flares.tags`) you wish to analyse; these should be updated as new resims are completed.
3839

39-
`download_methods.py` fetches the specified arrays from all resims and puts them in a single hdf5 file in the `data/` folder. Simply update these scripts with the data you wish to download, specify if you wish to `overwrite` any existing data. Run this ecript using the batchscript provided `download_particles.cosma.sh` for getting the particle data and run `download_subfind.py` just for the subfind data. Then run `create_UVgrid.cosma.sh` to get the value of kappa and use `download_phot.cosma.sh` to extract the photometry information. These are made into a single file `flares.hdf5` with the data structure as `Resim_num/Property_type/Property' where Resim_num is the number of the resim in the FLARES (see [here](https://docs.google.com/spreadsheets/d/1NzQee05rNCml1YEKXuD8L9JOW5Noh8oj9K9bcS2RQlY/edit?usp=sharing)), Property_type can be either Galaxy (like stellar mass, sfr, etc) or Particle (individual properties of gas/stellar particles) and Property is the required property.
40+
`download_methods.py` fetches the specified arrays from all resims and puts them in a single hdf5 file in the `data/` folder.
41+
Simply update these scripts with the data you wish to download, specify if you wish to `overwrite` any existing data.
42+
Run this script using one of the following batchscripts, `download_particles.cosma.sh` for getting the particle data and run `download_subfind.py` for just the subfind data.
43+
If you wish to generate photometry for all galaxies you will need to run `create_UVgrid.cosma.sh` to get the value of kappa, and use `download_phot.cosma.sh` to extract the photometry information.
44+
45+
Once this has completed you will have a single file `data/flares.hdf5` with the following (rough) data structure: `Resim_num/Property_type/Property`, where `Resim_num` is the number of resims (see [here](https://docs.google.com/spreadsheets/d/1NzQee05rNCml1YEKXuD8L9JOW5Noh8oj9K9bcS2RQlY/edit?usp=sharing)), `Property_type` can be either Galaxy (like stellar mass, sfr, etc) or Particle (individual properties of gas/stellar particles) and `Property` is the required property.
4046

4147

4248

flares.py

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def __init__(self,fname,sim_type='FLARES'):
6363
self.tags = np.array(['002_z009p993','003_z008p988',
6464
'004_z008p075','005_z007p050','006_z005p971',
6565
'008_z005p037'])
66+
self.zeds = [float(tag[5:].replace('p','.')) for tag in self.tags]
6667
else:
6768
raise ValueError("sim_type not recognised")
6869

0 commit comments

Comments
 (0)