-
Notifications
You must be signed in to change notification settings - Fork 300
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 #1236 from sjoro/vii_test
Add documentation link to VII L1b-reader and a new file pattern.
- Loading branch information
Showing
5 changed files
with
59 additions
and
4 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
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,36 @@ | ||
EPS-SG VII netCDF Example | ||
=============================== | ||
|
||
Satpy includes a reader for the EPS-SG Visible and Infrared Imager (VII) | ||
Level 1b data. The following Python code snippet shows an example on how to use | ||
Satpy to read a channel and resample and save the image 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 | ||
import glob | ||
from satpy.scene import Scene | ||
# find the file/files to be read | ||
filenames = glob.glob('/path/to/VII/data/W_xx-eumetsat-darmstadt,SAT,SGA1-VII-1B-RAD_C_EUMT_20191007055100*') | ||
# create a VII scene from the selected granule(s) | ||
scn = Scene(filenames=filenames, reader='vii_l1b_nc') | ||
# print available dataset names for this scene | ||
print(scn.available_dataset_names()) | ||
# load the datasets of interest | ||
# NOTE: only radiances are supported for test data | ||
scn.load(["vii_668"], calibration="radiance") | ||
# resample the scene to a specified area (e.g. "eurol1" for Europe in 1km resolution) | ||
eur = scn.resample("eurol", resampler='nearest', radius_of_influence=5000) | ||
# save the resampled data to disk | ||
eur.save_dataset("vii_668", filename='./vii_668_eur.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
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