Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Normalized Burn Ratio (NBR) composite example #542

Closed
djhoese opened this issue Oct 14, 2022 · 0 comments · Fixed by #640
Closed

Add Normalized Burn Ratio (NBR) composite example #542

djhoese opened this issue Oct 14, 2022 · 0 comments · Fixed by #640
Labels
component:composite combining multiple input datasets to make a new one documentation

Comments

@djhoese
Copy link
Member

djhoese commented Oct 14, 2022

Sam Batzli would like to use an NBR composite. Rather than having to compute it from floating point or 16-bit geotiffs, it may be better to compute it as a Satpy composite by configuring it in a YAML configuration file. Here's my attempt.

Definition: nbr = (nir - swir) / (nir + swir)

YAML to put in etc/composites/viirs.yaml:

  nbr:
    compositor: !!python/name:satpy.composites.viirs.GenericCompositor
    prerequisites:
      - compositor: !!python/name:satpy.composites.RatioCompositor
        prerequisites:
          - compositor: !!python/name:satpy.composites.DifferenceCompositor
            prerequisites:
              - name: M11
              - name: M07
          - compositor: !!python/name:satpy.composites.SumCompositor
            prerequisites:
              - name: M11
              - name: M07
    standard_name: normalized_burn_ratio

Produces:

image

Note: This is dynamically linearly scaled. I'm sure there is something else people would expect.

@djhoese djhoese added documentation component:composite combining multiple input datasets to make a new one labels Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:composite combining multiple input datasets to make a new one documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant