本文整理汇总了Python中sunpy.spectra.sources.callisto.CallistoSpectrogram.create方法的典型用法代码示例。如果您正苦于以下问题:Python CallistoSpectrogram.create方法的具体用法?Python CallistoSpectrogram.create怎么用?Python CallistoSpectrogram.create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sunpy.spectra.sources.callisto.CallistoSpectrogram
的用法示例。
在下文中一共展示了CallistoSpectrogram.create方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_create_glob_kw
# 需要导入模块: from sunpy.spectra.sources.callisto import CallistoSpectrogram [as 别名]
# 或者: from sunpy.spectra.sources.callisto.CallistoSpectrogram import create [as 别名]
def test_create_glob_kw():
PATTERN = os.path.join(
os.path.dirname(CALLISTO_IMAGE),
"BIR_*"
)
ca = CallistoSpectrogram.create(pattern=PATTERN)[0]
assert np.array_equal(ca, CallistoSpectrogram.read(CALLISTO_IMAGE))
示例2: test_create_glob
# 需要导入模块: from sunpy.spectra.sources.callisto import CallistoSpectrogram [as 别名]
# 或者: from sunpy.spectra.sources.callisto.CallistoSpectrogram import create [as 别名]
def test_create_glob():
PATTERN = os.path.join(
os.path.dirname(sunpy.data.test.__file__),
"BIR_*"
)
ca = CallistoSpectrogram.create(PATTERN)
assert len(ca) == 2
示例3: test_create_glob
# 需要导入模块: from sunpy.spectra.sources.callisto import CallistoSpectrogram [as 别名]
# 或者: from sunpy.spectra.sources.callisto.CallistoSpectrogram import create [as 别名]
def test_create_glob(CALLISTO_IMAGE_GLOB_KEY):
PATTERN = os.path.join(
os.path.dirname(sunpy.data.test.__file__),
CALLISTO_IMAGE_GLOB_KEY
)
ca = CallistoSpectrogram.create(PATTERN)
assert len(ca) == 2
示例4: test_create_url_kw
# 需要导入模块: from sunpy.spectra.sources.callisto import CallistoSpectrogram [as 别名]
# 或者: from sunpy.spectra.sources.callisto.CallistoSpectrogram import create [as 别名]
def test_create_url_kw():
URL = (
"http://soleil.i4ds.ch/solarradio/data/2002-20yy_Callisto/2011/09/22/"
"BIR_20110922_050000_01.fit.gz"
)
ca = CallistoSpectrogram.create(url=URL)
assert np.array_equal(ca, CallistoSpectrogram.read(URL))
示例5: test_create_glob_kw
# 需要导入模块: from sunpy.spectra.sources.callisto import CallistoSpectrogram [as 别名]
# 或者: from sunpy.spectra.sources.callisto.CallistoSpectrogram import create [as 别名]
def test_create_glob_kw(CALLISTO_IMAGE, CALLISTO_IMAGE_GLOB_INDEX, CALLISTO_IMAGE_GLOB_KEY):
PATTERN = os.path.join(
os.path.dirname(CALLISTO_IMAGE),
CALLISTO_IMAGE_GLOB_KEY
)
ca = CallistoSpectrogram.create(pattern=PATTERN)[CALLISTO_IMAGE_GLOB_INDEX]
assert_allclose(ca.data, CallistoSpectrogram.read(CALLISTO_IMAGE).data)
示例6: test_create_single_glob
# 需要导入模块: from sunpy.spectra.sources.callisto import CallistoSpectrogram [as 别名]
# 或者: from sunpy.spectra.sources.callisto.CallistoSpectrogram import create [as 别名]
def test_create_single_glob():
PATTERN = os.path.join(
os.path.dirname(CALLISTO_IMAGE),
"BIR_*"
)
ca = CallistoSpectrogram.create(PATTERN)
assert np.array_equal(ca.data, CallistoSpectrogram.read(CALLISTO_IMAGE).data)
示例7: test_create_file
# 需要导入模块: from sunpy.spectra.sources.callisto import CallistoSpectrogram [as 别名]
# 或者: from sunpy.spectra.sources.callisto.CallistoSpectrogram import create [as 别名]
def test_create_file():
ca = CallistoSpectrogram.create(CALLISTO_IMAGE)
assert np.array_equal(ca, CallistoSpectrogram.read(CALLISTO_IMAGE))
示例8: test_extend
# 需要导入模块: from sunpy.spectra.sources.callisto import CallistoSpectrogram [as 别名]
# 或者: from sunpy.spectra.sources.callisto.CallistoSpectrogram import create [as 别名]
def test_extend(CALLISTO_IMAGE):
im = CallistoSpectrogram.create(CALLISTO_IMAGE)
im2 = im.extend()
# Not too stable test, but works.
assert im2.data.shape == (200, 7200)
示例9: test_create_single_glob
# 需要导入模块: from sunpy.spectra.sources.callisto import CallistoSpectrogram [as 别名]
# 或者: from sunpy.spectra.sources.callisto.CallistoSpectrogram import create [as 别名]
def test_create_single_glob(CALLISTO_IMAGE, CALLISTO_IMAGE_GLOB_INDEX, CALLISTO_IMAGE_GLOB_KEY):
PATTERN = os.path.join(os.path.dirname(CALLISTO_IMAGE), CALLISTO_IMAGE_GLOB_KEY)
ca = CallistoSpectrogram.create(PATTERN)
assert_allclose(ca[CALLISTO_IMAGE_GLOB_INDEX].data,
CallistoSpectrogram.read(CALLISTO_IMAGE).data)
示例10: test_create_file_kw
# 需要导入模块: from sunpy.spectra.sources.callisto import CallistoSpectrogram [as 别名]
# 或者: from sunpy.spectra.sources.callisto.CallistoSpectrogram import create [as 别名]
def test_create_file_kw(CALLISTO_IMAGE):
ca = CallistoSpectrogram.create(filename=CALLISTO_IMAGE)
assert np.array_equal(ca.data, CallistoSpectrogram.read(CALLISTO_IMAGE).data)