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


Python Map.peek方法代码示例

本文整理汇总了Python中sunpy.map.Map.peek方法的典型用法代码示例。如果您正苦于以下问题:Python Map.peek方法的具体用法?Python Map.peek怎么用?Python Map.peek使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在sunpy.map.Map的用法示例。


在下文中一共展示了Map.peek方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Map

# 需要导入模块: from sunpy.map import Map [as 别名]
# 或者: from sunpy.map.Map import peek [as 别名]
# Select the wave
file_path = '/Users/ireland/sunpy/data/aia_lev1_304a_2013_03_04t01_00_07_12z_image_lev1.fits'
m = Map(file_path).superpixel((4, 4)*u.pix)

ny = m.data.shape[0]
nx = m.data.shape[1]
dd = 25
aa = 200
bb = 800

m.data[ny/2 - dd: ny/2 + dd, 200-dd:200+dd] = 0.0
m.data[ny/2 - dd: ny/2 + dd, 800-dd:800+dd] = 0.33 * m.data.max()
m.data[200-dd:200+dd, nx/2 - dd: nx/2 + dd] = 0.66 * m.data.max()
m.data[800-dd:800+dd, nx/2 - dd: nx/2 + dd] = 1.00 * m.data.max()

m.peek()
# Unraveling parameters used to convert HPC image data to HG data
along_wavefront_sampling = 1
perpendicular_to_wavefront_sampling = 1
transform_hpc2hg_parameters = {'epi_lon': 00.0*u.degree,
                               'epi_lat': 0.0*u.degree,
                               'lon_num': 360*along_wavefront_sampling*u.pixel,
                               'lat_num': 720*perpendicular_to_wavefront_sampling*u.pixel}

hg = map_hpc_to_hg_rotate(m,
                          epi_lon=transform_hpc2hg_parameters['epi_lon'],
                          epi_lat=transform_hpc2hg_parameters['epi_lat'],
                          lon_num=transform_hpc2hg_parameters['lon_num'],
                          lat_num=transform_hpc2hg_parameters['lat_num'],
                          method='linear')
开发者ID:wafels,项目名称:eitwave,代码行数:32,代码来源:test_transforms3.py

示例2: print

# 需要导入模块: from sunpy.map import Map [as 别名]
# 或者: from sunpy.map.Map import peek [as 别名]
# print a list of datasources and their associated ids
files = [] 
if get_files:

   for observatory, instruments in datasources.items():
        for inst, detectors in instruments.items():
            for det, measurements in detectors.items():
                for meas, params in measurements.items():
                    print("%s %s: %d" % (observatory, params['nickname'], params['sourceId']))
                    filepath = hv.download_jp2('2013/06/24 17:31:30',
                                               observatory=observatory,
                                               instrument=inst,
                                               detector=det,
                                               measurement=meas,
                                               directory=directory)
                    files.append(filepath)
else:
    flist = os.listdir(directory)
    for fl in flist:
        files.append(os.path.join(directory, fl))

files = sorted(files)

n = len(files)


for f in files:
    print f
    m = Map(f)
    m.peek()
开发者ID:wafels,项目名称:sunpy-sandbox,代码行数:32,代码来源:hvdload.py

示例3: test1

# 需要导入模块: from sunpy.map import Map [as 别名]
# 或者: from sunpy.map.Map import peek [as 别名]
def test1():
    aia = Map(sunpy.AIA_171_IMAGE)
    aia.peek()
开发者ID:kinketu,项目名称:Astronomy,代码行数:5,代码来源:sunpy_test.py


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