forked from pytroll/satpy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from pytroll/master
Update local to latest remote
- Loading branch information
Showing
178 changed files
with
8,082 additions
and
4,328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
satpy/version.py | ||
versioneer.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
================================================ | ||
Adding new functionality to Satpy via plugins | ||
================================================ | ||
|
||
.. warning:: | ||
This feature is experimental and being modified without warnings. | ||
For now, it should not be used for anything else than toy examples and | ||
should not be relied on. | ||
|
||
Satpy has the capability of using plugins. At the moment, new composites can be | ||
added to satpy through external plugins. Plugins for reader and writers may be | ||
added at a later date (PRs are welcome!). | ||
|
||
Here is an | ||
`example <https://github.com/mraspaud/satpy-composites-plugin-example>`_ of a | ||
composites plugin. | ||
|
||
The key is to use the same configuration directory structure as satpy and add | ||
a `satpy.composites` entry point in the setup.py file of the plugin: | ||
|
||
.. code: python | ||
from setuptools import setup | ||
import os | ||
setup( | ||
name='satpy_cpe', | ||
entry_points={ | ||
'satpy.composites': [ | ||
'example_composites = satpy_cpe', | ||
], | ||
}, | ||
package_data={'satpy_cpe': [os.path.join('etc', 'composites/*.yaml')]}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
MTG FCI - Natural Color Example | ||
=============================== | ||
|
||
Satpy includes a reader for the Meteosat Third Generation (MTG) FCI Level 1c | ||
data. The following Python code snippet shows an example on how to use Satpy | ||
to generate a Natural Color RGB composite over the European area. | ||
|
||
.. warning:: | ||
|
||
This example is currently a work in progress. Some of the below code may | ||
not work with the currently released version of Satpy. Additional updates | ||
to this example will be coming soon. | ||
|
||
.. code-block:: python | ||
from satpy.scene import Scene | ||
from satpy import find_files_and_readers | ||
# define path to FCI test data folder | ||
path_to_data = 'your/path/to/FCI/data/folder/' | ||
# find files and assign the FCI reader | ||
files = find_files_and_readers(base_dir=path_to_data, reader='fci_l1c_fdhsi') | ||
# create an FCI scene from the selected files | ||
scn = Scene(filenames=files) | ||
# print available dataset names for this scene (e.g. 'vis_04', 'vis_05','ir_38',...) | ||
print(scn.available_dataset_names()) | ||
# print available composite names for this scene (e.g. 'natural_color', 'airmass', 'convection',...) | ||
print(scn.available_composite_names()) | ||
# load the datasets/composites of interest | ||
scn.load(['natural_color','vis_04']) | ||
# resample the scene to a specified area (e.g. "eurol1" for Europe in 1km resolution) | ||
scn_resampled = scn.resample("eurol", resampler='nearest', radius_of_influence=5000) | ||
# save the resampled dataset/composite to disk | ||
scn_resampled.save_dataset("natural_color", filename='./fci_natural_color_resampled.png') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.