当前位置: 首页>>代码示例>>Python>>正文


Python CallistoSpectrogram.create方法代码示例

本文整理汇总了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))
开发者ID:JordanBallew,项目名称:sunpy,代码行数:9,代码来源:test_callisto.py

示例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
开发者ID:JordanBallew,项目名称:sunpy,代码行数:9,代码来源:test_callisto.py

示例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
开发者ID:Alex-Ian-Hamilton,项目名称:sunpy,代码行数:9,代码来源:test_callisto.py

示例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))
开发者ID:JordanBallew,项目名称:sunpy,代码行数:9,代码来源:test_callisto.py

示例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)
开发者ID:Alex-Ian-Hamilton,项目名称:sunpy,代码行数:9,代码来源:test_callisto.py

示例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)
开发者ID:Rapternmn,项目名称:sunpy,代码行数:9,代码来源:test_callisto.py

示例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))
开发者ID:JordanBallew,项目名称:sunpy,代码行数:5,代码来源:test_callisto.py

示例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)
开发者ID:Alex-Ian-Hamilton,项目名称:sunpy,代码行数:7,代码来源:test_callisto.py

示例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)
开发者ID:Alex-Ian-Hamilton,项目名称:sunpy,代码行数:7,代码来源:test_callisto.py

示例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)
开发者ID:Alex-Ian-Hamilton,项目名称:sunpy,代码行数:5,代码来源:test_callisto.py


注:本文中的sunpy.spectra.sources.callisto.CallistoSpectrogram.create方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。