This file contains hidden or 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
import os | |
import requests | |
from dotenv import load_dotenv | |
from slack_bolt import App | |
from slack_bolt.adapter.socket_mode import SocketModeHandler | |
import openai | |
load_dotenv() | |
app = App(token=os.environ["SLACK_BOT_TOKEN"]) | |
openai.api_key = os.environ["OPENAI_API_KEY"] |
This file contains hidden or 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
import os | |
import base64 | |
import requests | |
from io import BytesIO | |
from PIL import Image, UnidentifiedImageError | |
from dotenv import load_dotenv | |
from slack_bolt import App | |
from slack_bolt.adapter.socket_mode import SocketModeHandler | |
from slack_sdk import WebClient | |
from openai import OpenAI |
This file contains hidden or 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
""" | |
軌道投入への必要ΔVの簡易計算スクリプト | |
""" | |
import sys | |
import os | |
import configparser | |
import numpy as np | |
from numpy import sqrt, cos, sin, arcsin, tan, deg2rad | |
import matplotlib.pyplot as plt |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
This file contains hidden or 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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## REFPROPのPythonラッパーの使い方\n", | |
"\n", | |
"本家NISTから公開されているラッパーの使い方のjupyter notebookはこちら\n", | |
"* https://nbviewer.jupyter.org/github/usnistgov/REFPROP-wrappers/blob/master/wrappers/python/notebooks/Tutorial.ipynb\n", |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# ----------- | |
# Optimum Design of Nonplanar wings-Minimum Induced Drag | |
# for A Given Lift and Wing Root Bending Moment (NAL TR-797) | |
# | |
# Created by Takahiro Inagawa on 2018-03-24. | |
# Copyright (c) 2018 Takahiro Inagawa. All rights reserved. | |
# ----------- | |
import numpy as np |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# Author : Takahiro Inagawa(@ina111) | |
import io | |
import numpy as np | |
from jinja2 import Template | |
from bokeh.embed import components | |
from bokeh.models import Range1d |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# 衛星高度と可視範囲のグラフ化 | |
# | |
# cf. 半揚 稔雄(2014) 「ミッション解析と軌道設計の基礎」 | |
# Copyright (c) 2016 Takahiro Inagawa | |
# Released under the MIT license | |
import sys | |
reload(sys) | |
import platform | |
sys.setdefaultencoding('utf-8') |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# ====== | |
# 多段ロケットの最適質量配分(サイジング)問題の計算 | |
# 必要な軌道速度に空力損失、重力損失、推力損失、制御損失を追加し、 | |
# トータルの⊿Vを事前に算出し、その軌道速度に必要なサイジングを行う。 | |
# 初期検討段階にのみ使用可能。 | |
# | |
# 入力: | |
# 各段のIsp[秒] | |
# 各段の構造比(0.0~1.0)(各段の全備重量と推進剤以外の割合) |
This file contains hidden or 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
# coding: UTF-8 | |
# 気象庁の高層風のページからデータ取得してプロット | |
# cf. http://www.data.jma.go.jp/obd/stats/etrn/upper/index.php | |
import os | |
import urllib2 | |
from BeautifulSoup import BeautifulSoup | |
import datetime | |
import pandas as pd | |
import numpy as np |
NewerOlder