timothydmorton / isochrones

Pythonic stellar model grid access; easy MCMC fitting of stellar properties
http://isochrones.readthedocs.org
MIT License
120 stars 62 forks source link

download all datasets #144

Open haraldschilly opened 3 years ago

haraldschilly commented 3 years ago

Hi, I'm wondering how to download all datasets. Background: I'm managing an installation at cocalc.com, where all files should end up in $ISOCHRONES – a globally shared read-only directory. If I run a few lines of code, it downloads some files there, but well, some are obviously missing.

What I would wish is a command or code snippet, which just gets everything into that directory.

Edit: to make this more concrete, in case it's necessary, I mean files like this one, which was one of the missing ones:

./mist/full_grid_v1.2_vvcrit0.4_full_isos.npz    
./mist/dm_deep_v1.2_vvcrit0.4_full_isos.h5       
timothydmorton commented 3 years ago

There exists a mist_initialize.py script that will do this for only the JHK bands of the MIST grids; it would be easy enough to expand that list to the full set of desired bands, and then use that script. I think that should do what you need (would be happy to receive a PR!). I admit I hadn't thought about how to structure things when $ISOCHRONES is a a shared read-only directory; hopefully this will be enough for you.