Skip to content

Commit

Permalink
expand fci example in docs with upper_right_corner and .values
Browse files Browse the repository at this point in the history
  • Loading branch information
ameraner committed Jun 2, 2021
1 parent 9026dd9 commit 1cde40e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/source/examples/fci_l1c_natural_color.rst
Expand Up @@ -32,7 +32,12 @@ to generate a Natural Color RGB composite over the European area.
print(scn.available_composite_names())
# load the datasets/composites of interest
scn.load(['natural_color','vis_04'])
scn.load(['natural_color','vis_04'], upper_right_corner='NE')
# note: the data inside the FCI files is stored upside down. The upper_right_corner='NE' argument
# flips it automatically in upright position.
# you can access the values of a dataset as a Numpy array with
vis_04_values = scn['vis_04'].values
# 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)
Expand Down

0 comments on commit 1cde40e

Please sign in to comment.