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

Burn area product is out of date #91

Open
ChangpeiHe opened this issue Oct 11, 2024 · 13 comments
Open

Burn area product is out of date #91

ChangpeiHe opened this issue Oct 11, 2024 · 13 comments

Comments

@ChangpeiHe
Copy link

MCD64A1 burned area product is decommissioned at the end of 2022. I want to use this tool to extract global fire events in 2023 and 2024.
Looking forward to your reply!
@Ckster @maxwellCcook

@admahood
Copy link
Collaborator

Hey there,
I believe the current firedpy algorithm uses the more current MCD64 product that is still being produced. Are using docker and pulling from the old dockerhub repo (earthlab/firedpy)? if so, you'll want to switch to the earthlabcu/firedpy dockerhub account.

@admahood
Copy link
Collaborator

Oooh I see what's happening. the updated version of the algorithm is not on the main branch. It's on the v2.0 branch. @Ckster is that branch ready to be the main branch yet?

@ChangpeiHe
Copy link
Author

Thanks! So, can I use the code on the v2.0 branch? git checkout v2.0

@admahood
Copy link
Collaborator

admahood commented Oct 12, 2024 via email

@ChangpeiHe
Copy link
Author

It seems lacking "setup.py".

@ChangpeiHe
Copy link
Author

Hi, @admahood. Are the parameters ecoregion_type, ecoregion_level, and landcover_type required?

@ChangpeiHe
Copy link
Author

Without "setup.py", I cannot install firedpy successfully. @admahood

@Ckster
Copy link
Contributor

Ckster commented Oct 14, 2024

We are moving away from using setup.py. I would suggest using the environment.yml file create the conda environment necessary for running firedpy and then simply call python bin/firedpy.py. Alternatively, you can run the new Docker container. I will update the README shortly to show how to do this

@Ckster
Copy link
Contributor

Ckster commented Oct 14, 2024

The README is updated. If you cannot run from Docker then simply create the environment from the environment.yml file, activate the firedpy env, and run 'python bin/firedpy.py'

@ChangpeiHe
Copy link
Author

Thanks, @Ckster. I try to run "python ./bin/firedpy.py -spatial 5 -temporal 11 -aoi h10v04 -out_dir /public/home/hechangpei/firedpy/proj/ -eco_region_type world -file fired -start_year 2023 -end_year 2024
". However, an error occurred as "Traceback (most recent call last):
File "/public/home/hechangpei/firedpy/./bin/firedpy.py", line 10, in
from src.data_classes import EcoRegion, BurnData, LandCover
ModuleNotFoundError: No module named 'src'".

@Ckster
Copy link
Contributor

Ckster commented Oct 15, 2024

Sorry, forgot to add you will have to add the project directory to your PYTHONPATH. From the project directory run export PYTHONPATH=$(pwd):$PYTHONPATH

@Ckster
Copy link
Contributor

Ckster commented Oct 15, 2024

@ChangpeiHe the PYTHONPATH should be automatically set now, just pull the most recent changes from main. Let me know how it works, thanks.

@ChangpeiHe
Copy link
Author

@Ckster It works, thanks! I'm sorry for not replying to you promptly. I‘m trying to run firedpy on the global scale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants