當前位置: 首頁>>代碼示例>>Python>>正文


Python BaseMap.get_properties方法代碼示例

本文整理匯總了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
開發者ID:jpjustiniano,項目名稱:sunpy,代碼行數:15,代碼來源:stereo.py

示例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
開發者ID:jpjustiniano,項目名稱:sunpy,代碼行數:15,代碼來源:proba2.py

示例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
開發者ID:calexyoung,項目名稱:sunpy,代碼行數:16,代碼來源:sdo.py

示例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
開發者ID:calexyoung,項目名稱:sunpy,代碼行數:16,代碼來源:rhessi.py

示例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
開發者ID:calexyoung,項目名稱:sunpy,代碼行數:17,代碼來源:soho.py

示例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
開發者ID:DavidBerghmans,項目名稱:sunpy,代碼行數:17,代碼來源:soho.py

示例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
開發者ID:DavidBerghmans,項目名稱:sunpy,代碼行數:17,代碼來源:stereo.py

示例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
開發者ID:DavidBerghmans,項目名稱:sunpy,代碼行數:18,代碼來源:sdo.py

示例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
開發者ID:DavidBerghmans,項目名稱:sunpy,代碼行數:18,代碼來源:rhessi.py


注:本文中的sunpy.map.basemap.BaseMap.get_properties方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。