This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def nuker_params(skip=False): | |
table=ascii.read('wm', fill_values=[(r'$\cap$', 'core', 'type')]) | |
columns=table.columns | |
table.rename_column(r'$\Upsilon_V $','Uv') | |
table.rename_column(r'$\alpha$','alpha') | |
table.rename_column(r'$\beta$','beta') | |
table.rename_column(r'$\Gamma$','gamma') | |
table.rename_column(r'Distance','d') | |
table.rename_column(r'$\mu_b$', 'mub') | |
table.rename_column(r'Profile\tablenotemark{b}','type') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:e95905e5a9d37c0820b2b369abe5f4ce1bfa5f18118b9fd71b3439a3e0b89915" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:2a304e7397cb4ea390c4959017c9635006e460c911ea55eca02b1bc26b550819" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from nuker_catalog import galaxy | |
import numpy as np | |
import dill | |
#gal=galaxy.NukerGalaxy.from_dir('NGC4551','/Users/aleksey/Second_Year_Project/hydro/batch_collected/NGC4551/vw_500.0') | |
gal=dill.load(open('/home/aleksey/Second_Year_Project/hydro/batch_collected/NGC4551/vw_500.0/grid.p','rb')) | |
gal.set_param('cond_scheme','spitzer') | |
# gal.set_param('eps',0.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:811c2e728e08f8eca9fb3bfbbf47fad6b0f5deba36a2c958525a17d773a8700c" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parse_file_beta(f, string=False): | |
refloat =r'[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?' | |
pat=re.compile('beta_'+refloat) | |
b=re.search(pat,f) | |
b=re.search(refloat, b.group(0)) | |
return b.group(0) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bash_command import bash_command as bc | |
from nuker_catalog import galaxy | |
import cgs_const as cgs | |
dirs=['/Users/aleksey/Second_Year_Project/hydro/pow_gals_final/vw_600.0_rb25.0_outer'] | |
dest='/Users/aleksey/Second_Year_Project/hydro/pow_gals_final' | |
gals=galaxy.get_gals(dirs) | |
for idx,gal in enumerate(gals): | |
suffix='M{0:1.0e}_vw{1:1.1f}_gamma{2:1.1f}_rb{3:1.1f}'.format(gal.params['M']/cgs.M_sun, gal.vw_extra/1.E5, | |
gal.params['gamma'], gal.params['rb']) |
OlderNewer