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

change MODIS TVF to VIIRS GVF #134

Merged
merged 20 commits into from
Jun 7, 2024
Merged

Conversation

angehung5
Copy link
Collaborator

As described in #133, annual MODIS TVF is updated by using monthly VIIRS GVF. Just a quick check, everything looks ok.

Screenshot 2024-05-28 at 8 52 14 PM

Note that only example SE files and point files are updated. Grabbing data from HPSS took more time than I expected. Also I want to upgrade my gridding method and need some time to dig into. But I don't want to hang it too long so I just made the example files for repo. Still working on daily global files.

Data table in Readme, and the canopy fraction section in the gap-filling description document (a compact version) are also updated .

Copy link
Member

@drnimbusrain drnimbusrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@angehung5 Thanks! A couple comments/changes.

README.md Outdated
@@ -162,7 +162,7 @@ The Canopy-App input data in [Table 2](#table-2-canopy-app-required-input-variab
| `ch` | Canopy height (m) | Globally extended GEDI data. Data Period=2020. Data frequency=Annual. ([Lang et al., 2023](https://doi.org/10.1038/s41559-023-02206-6)) |
| `clu` | Canopy clumping index (dimensionless) | GriddingMachine/MODIS. Data Period=2001-2017 Climatology. Data frequency=Monthly. ([Wei et al., 2019](https://doi.org/10.1016/j.rse.2019.111296)). Extended globally for high latitudes using methods described [here](https://gmuedu-my.sharepoint.com/:w:/g/personal/whung_gmu_edu/EdglXmW2kzBDtDj1xV0alGcB1Yo2I8hzdyWGVGB2YOTfgw). |
| `lai` | Leaf area index (m2/m2) | VIIRS-NPP. Data Period=2020. Data frequency=Daily, interpolated from original 8-day product. ([Myneni 2018](https://doi.org/10.5067/VIIRS/VNP15A2H.001)). Extended globally for high latitudes using methods described [here](https://gmuedu-my.sharepoint.com/:w:/g/personal/whung_gmu_edu/EdglXmW2kzBDtDj1xV0alGcB1Yo2I8hzdyWGVGB2YOTfgw). |
| `canfrac` | Canopy fraction (dimensionless) | Based on [MODIS VCF](https://doi.org/10.5067/MODIS/MOD44B.061). Data Period=2020. Data frequency=Annual. Extended globally for high latitudes using methods described [here](https://gmuedu-my.sharepoint.com/:w:/g/personal/whung_gmu_edu/EdglXmW2kzBDtDj1xV0alGcB1Yo2I8hzdyWGVGB2YOTfgw). |
| `canfrac` | Canopy green vegetation fraction (dimensionless) | Based on [VIIRS GVF]([https://doi.org/10.5067/MODIS/MOD44B.061](https://www.star.nesdis.noaa.gov/jpss/gvf.php)). Data Period=2020. Data frequency=Monthly. Extended globally for high latitudes using methods described [here](https://gmuedu-my.sharepoint.com/:w:/g/personal/whung_gmu_edu/EdglXmW2kzBDtDj1xV0alGcB1Yo2I8hzdyWGVGB2YOTfgw). |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@angehung5 Is the VIIRS GVF still have the same link/reference as VCF? Seems like this should be updated for GVF product reference.

Also, the link to your global extension and processing document is outdated, and should be changed to your updated ARL tech memo. However this is your NOAA Google doc and should be made public in a sharepoint document.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry my bad, the link is updated now.
The document is not necessarily outdated. A short description of GVF is added. I think it should be enough for now, will update it with the ARL tech memo once it gets published.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@angehung5
Copy link
Collaborator Author

@drnimbusrain Daily global files are available on Hopper. Transferring to Hera now.

The global data processing script is also updated with upgraded gridding method. Now it takes ~ 1 min to create a global input file (using climatological canopy data).
@zmoon Could you please take a look at the Lint error? It says python/global_data_process.py:15:1: F401 'monet' imported but unused which is not the case. Also I believe the environmen.yml file needs to be updated as well.

@drnimbusrain
Copy link
Member

@angehung5 Think you should add the monet package to the environment yaml file here and see if that fixes it.

@angehung5
Copy link
Collaborator Author

@angehung5 Think you should add the monet package to the environment yaml file here and see if that fixes it.

Updated, but seems it is not the issue...

@drnimbusrain
Copy link
Member

@angehung5 Think you should add the monet package to the environment yaml file here and see if that fixes it.

Updated, but seems it is not the issue...

Right seems still issues. I assumed you tested and it worked properly with the usage of monet here. Also not sure what the new gfortran CI issues are here.

python/global_data_process.py Outdated Show resolved Hide resolved
@zmoon
Copy link
Member

zmoon commented Jun 6, 2024

not sure what the new gfortran CI issues are here.

This is the message, for posterity. In the first run, with the default namelist.

...

 **********************************************************************
 *** SUBROUTINE: CANOPY_WRITE_NCF
 ***   ERROR DEFINING VARIABLE time
 ***   IN FILE output/southeast_us_2022-07-01-11-00-00.0000.nc
 ***   NetCDF: Name contains illegal characters
 **********************************************************************
Error: Process completed with exit code 2.

/ is a common culprit for this error. Trailing whitespace also not allowed. More info.

@drnimbusrain
Copy link
Member

not sure what the new gfortran CI issues are here.

This is the message, for posterity. In the first run, with the default namelist.

...

 **********************************************************************
 *** SUBROUTINE: CANOPY_WRITE_NCF
 ***   ERROR DEFINING VARIABLE time
 ***   IN FILE output/southeast_us_2022-07-01-11-00-00.0000.nc
 ***   NetCDF: Name contains illegal characters
 **********************************************************************
Error: Process completed with exit code 2.

/ is a common culprit for this error. Trailing whitespace also not allowed. More info.

Yes, trailing whitespace is strange here, did not see this error before.

@drnimbusrain
Copy link
Member

@zmoon Please see latest commit to develop, where the fortran build/test CI seemingly passed successfully without that error: https://github.com/noaa-oar-arl/canopy-app/actions/runs/8994540709/job/24708145727

However, there are other python script errors showing even though it says they complete successfully?

@zmoon
Copy link
Member

zmoon commented Jun 6, 2024

format "('''', a, '''')" will put single quotes around the string

@drnimbusrain
Copy link
Member

@angehung5 I think that other gfortran issue with file name is propagating from your branch, not something wrong in upstream develop? I have never seen it before.

@angehung5
Copy link
Collaborator Author

@drnimbusrain I don't know...The branch was updated before I made any changes on the python script.
Just have two branches (mine and develop) run on Hopper, both are working fine. And canopy_ncf_io_mod.F90 from two branches are identical.

@drnimbusrain
Copy link
Member

@drnimbusrain I don't know...The branch was updated before I made any changes on the python script. Just have two branches (mine and develop) run on Hopper, both are working fine. And canopy_ncf_io_mod.F90 from two branches are identical.

@angehung5 Yes, I understand. I test the latest develop branch with debug options and do not find this error that the CI/ build-test gfortran error reported. Hopefully, Zach can help here.

@drnimbusrain drnimbusrain merged commit 8d00084 into noaa-oar-arl:develop Jun 7, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

3 participants