#πŸ”’ why am i getting nan values in this code

9 messages Β· Page 1 of 1 (latest)

fresh meadow
#

i have been working on a vegetation percentage calculator using microsofts planetary computer xarray stac and stackstac but if i run the code all the values required for the ndvi formula is recieved as nan what could possibly be wrong i need some help

dense steppeBOT
#

@fresh meadow

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

mossy frost
#

You've already opened 2 threads prior with the same topic. You have to be patient and stop spamming threads. I will go ahead and close your 2 previous ones now and you can stick to this one

quick jewel
#

all the values required for the ndvi formula

What does this mean? I don't see anything in your code that says ndvi.

But I suggest that you try to check what happens in the code, a line at a time. Make sure you understand what the results should look like at every step, and look for the first thing that isn't like what you expect.

sour nacelle
mossy frost
#

!close

dense steppeBOT
#
Python help channel closed with !close

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.