本文整理汇总了Python中sunpy.map.basemap.BaseMap.get_properties方法的典型用法代码示例。如果您正苦于以下问题:Python BaseMap.get_properties方法的具体用法?Python BaseMap.get_properties怎么用?Python BaseMap.get_properties使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sunpy.map.basemap.BaseMap
的用法示例。
在下文中一共展示了BaseMap.get_properties方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_properties
# 需要导入模块: from sunpy.map.basemap import BaseMap [as 别名]
# 或者: from sunpy.map.basemap.BaseMap import get_properties [as 别名]
def get_properties(cls, header):
"""Parses EUVI image header"""
properties = BaseMap.get_properties(header)
properties.update({
"date": parse_time(header.get('date_obs')),
"detector": "EUVI",
"instrument": "SECCHI",
"observatory": header.get('obsrvtry'),
"cmap": cm.get_cmap('sohoeit%d' % header.get('wavelnth')),
"nickname": "EUVI-" + header.get('obsrvtry')[-1]
})
return properties
示例2: get_properties
# 需要导入模块: from sunpy.map.basemap import BaseMap [as 别名]
# 或者: from sunpy.map.basemap.BaseMap import get_properties [as 别名]
def get_properties(cls, header):
"""Parses SWAP image header"""
properties = BaseMap.get_properties(header)
properties.update({
"detector": "SWAP",
"instrument": "SWAP",
"observatory": "PROBA2",
"name": "SWAP %s" % header.get('wavelnth'),
"nickname": "SWAP",
"cmap": cm.get_cmap(name='sdoaia171')
})
return properties
示例3: get_properties
# 需要导入模块: from sunpy.map.basemap import BaseMap [as 别名]
# 或者: from sunpy.map.basemap.BaseMap import get_properties [as 别名]
def get_properties(cls, header):
"""Returns the default and normalized values to use for the Map"""
# Note: Trailing "Z" in date was dropped on 2010/12/07
properties = BaseMap.get_properties()
properties.update({
'date': util.anytim(header['date-obs'][0:22]),
'det': "AIA",
'inst': "AIA",
'meas': header['wavelnth'],
'obs': "SDO",
'name': "AIA %s" % header['wavelnth'],
'cmap': cm.get_cmap(name = 'sdoaia' + str(header['wavelnth']))
})
return properties
示例4: get_properties
# 需要导入模块: from sunpy.map.basemap import BaseMap [as 别名]
# 或者: from sunpy.map.basemap.BaseMap import get_properties [as 别名]
def get_properties(cls, header):
"""Returns the default and normalized values to use for the Map"""
properties = BaseMap.get_properties()
properties.update({
'date': util.anytim(header.get('date_obs')),
'det': header.get('telescop'),
'inst': header.get('telescop'),
'meas': [header.get('energy_l'), header.get('energy_h')],
'obs': header.get('telescop'),
'name': "RHESSI " + str(header.get('energy_l')) + '-' + str(header.get('energy_h')) + ' keV',
'cmap': cm.get_cmap(name = 'rhessi'),
# 'norm': mpl.colors.Normalize(vmin=cls.min(), vmax=cls.max())
})
return properties
示例5: get_properties
# 需要导入模块: from sunpy.map.basemap import BaseMap [as 别名]
# 或者: from sunpy.map.basemap.BaseMap import get_properties [as 别名]
def get_properties(cls, header):
"""Returns the default and normalized values to use for the Map"""
datestr = "%sT%s" % (header['date_obs'], header['time_obs'])
properties = BaseMap.get_properties()
properties.update({
"date": datetime.strptime(datestr, "%Y/%m/%dT%H:%M:%S.%f"),
"det": header['detector'],
"inst": "LASCO",
"meas": header['wavelnth'],
"obs": "SOHO",
"name": "LASCO %s" % header['detector'],
"r_sun": None
})
return properties
示例6: get_properties
# 需要导入模块: from sunpy.map.basemap import BaseMap [as 别名]
# 或者: from sunpy.map.basemap.BaseMap import get_properties [as 别名]
def get_properties(cls, header):
"""Returns the default and normalized values to use for the Map"""
datestr = "%sT%s" % (header['date_obs'], header['time_obs'])
properties = BaseMap.get_properties()
properties.update({
"date": util.anytim(datestr),
"det": header.get('detector'),
"inst": "LASCO",
"meas": header.get('wavelnth'),
"obs": "SOHO",
"name": "LASCO %s" % header.get('detector'),
"exptime": header.get("exptime"),
})
return properties
示例7: get_properties
# 需要导入模块: from sunpy.map.basemap import BaseMap [as 别名]
# 或者: from sunpy.map.basemap.BaseMap import get_properties [as 别名]
def get_properties(cls, header):
"""Returns the default and normalized values to use for the Map"""
properties = BaseMap.get_properties()
date_format = "%Y-%m-%dT%H:%M:%S.%f"
properties.update({
"date": datetime.strptime(header['date_obs'], date_format),
"det": header['detector'],
"inst": "SECCHI",
"meas": header['wavelnth'],
"obs": header['obsrvtry'],
"name": "SECCHI %s" % header['detector'],
"r_sun": header['rsun']
})
return properties
示例8: get_properties
# 需要导入模块: from sunpy.map.basemap import BaseMap [as 别名]
# 或者: from sunpy.map.basemap.BaseMap import get_properties [as 别名]
def get_properties(cls, header):
"""Returns the default and normalized values to use for the Map"""
# Note: Trailing "Z" in date was dropped on 2010/12/07
meas = header['content'].split(" ")[0].lower()
properties = BaseMap.get_properties()
properties.update({
"date": util.anytim(header.get('date-obs')),
"det": "HMI",
"inst": "HMI",
"meas": meas,
"obs": "SDO",
"name": "HMI %s" % meas,
"exptime": header.get('exptime')
})
return properties
示例9: get_properties
# 需要导入模块: from sunpy.map.basemap import BaseMap [as 别名]
# 或者: from sunpy.map.basemap.BaseMap import get_properties [as 别名]
def get_properties(cls, header):
"""Returns the default and normalized values to use for the Map"""
properties = BaseMap.get_properties()
properties.update({
'date': util.anytim(header.get('date_obs')),
'det': header.get('telescop'),
'inst': header.get('telescop'),
'meas': [header.get('energy_l'), header.get('energy_h')],
'obs': header.get('telescop'),
'name': "RHESSI " + str(header.get('energy_l')) + '-' +
str(header.get('energy_h')) + ' keV',
'cmap': cm.get_cmap(name = 'rhessi'),
'exptime': (util.anytim(header.get('date_end')) -
util.anytim(header.get('date_obs'))).seconds
})
return properties