Skip to content

Instantly share code, notes, and snippets.

View mraspaud's full-sized avatar
💭
Fixing everything

Martin Raspaud mraspaud

💭
Fixing everything
  • SMHI
  • Norrköping, Sweden
View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012, 2013, 2014, 2015
# Author(s):
# Martin Raspaud <martin.raspaud@smhi.se>
# Panu Lahtinen <panu.lahtinen@fmi.fi>
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014 Martin Raspaud
# Author(s):
# Martin Raspaud <martin.raspaud@smhi.se>
# This program is free software: you can redistribute it and/or modify
def ir108_temp(self):
"""Make a black and white image of the IR 10.8um channel, with
information to retreive the brightnesse temperature.
"""
self.check_channels(10.8)
img = geo_image.GeoImage(self[10.8].data,
self.area,
self.time_slot,
fill_value=0,
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014 Martin Raspaud
# Author(s):
# Martin Raspaud <martin.raspaud@smhi.se>
# This program is free software: you can redistribute it and/or modify
@mraspaud
mraspaud / tbus2tle.py
Last active August 29, 2015 14:15
tbus to tle converter
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014, 2015 Martin Raspaud
# Author(s):
# Martin Raspaud <martin.raspaud@smhi.se>
# This program is free software: you can redistribute it and/or modify
@mraspaud
mraspaud / tle-dl.py
Last active March 4, 2022 02:12
Download tles from several sources
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2015 Martin Raspaud
# Author(s):
# Martin Raspaud <martin.raspaud@smhi.se>
# This program is free software: you can redistribute it and/or modify
@mraspaud
mraspaud / fy3_mersi_reader.py
Last active April 12, 2016 07:17
Read MERSI-1 raw data
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2015 Martin Raspaud
# Author(s):
# Martin Raspaud <martin.raspaud@smhi.se>
# This program is free software: you can redistribute it and/or modify
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014, 2015 Martin Raspaud
# Author(s):
# Martin Raspaud <martin.raspaud@smhi.se>
# This program is free software: you can redistribute it and/or modify
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2013, 2014, 2015 Martin Raspaud
# Author(s):
# Martin Raspaud <martin.raspaud@smhi.se>
# This program is free software: you can redistribute it and/or modify
@mraspaud
mraspaud / coord2area_def.py
Created June 23, 2015 08:35
human coordinates to pyresample area_def
# Copyright (c) 2012
#
# Author(s):
# Martin Raspaud <martin.raspaud@smhi.se>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.