Interpolate at any stellar parameter ranges#

from lotus_nlte.gcogs.multigcogs import PolyMultiGCOG
from lotus_nlte.config import fetch_EWLIB_MULTI

To access the EW library from our calculaition via MULTI, you need call the following function to download the libray from Zenodo. We do not provide it with the installation of LOTUS because of its large size, around 12GB.

Downloading of the EW library will take around 20 minutes...
Downloading takes 18.37 mins

After downloading it on your disk, you don’t have to redowload it again when callling this funciton next time. And calling it will reminds you of the location of the EW library:

EW library has already existed: /media/yangyangli/OS/yangyangli_private/Code/NLTE/LOTUS-dev/src/lotus_nlte/package_data/EWLIB_largergrid2_v0.h5

You can interpolate at any stellar ranges for your star with stellar_type. This can be different with the specific stellar types you saw in the previous tutorials. NOTICE: you have to set interpolation=False and use_tarfile=False as the below style:

[ ]:
fp = os.path.dirname(os.path.realpath(__file__))
mgcog = PolyMultiGCOG("YOUR_STAR_NAME", stellar_type="6000_6850/3.0_5.0/-3.5_-2.0",
                      cal="nlte", interpolation=False, use_tarfile=False,
                      ewdiffpath="YOUR_EWDIFF_FILE_PATH", ewlibpath=os.path.join(fp, "package_data/EWLIB_largergrid2_v0.h5"))