本文整理汇总了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')
示例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()
示例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()