NIEHS / targets_PrestoGP

0 stars 0 forks source link

USDA NASS - Covariate Calculation #5

Open kyle-messier opened 11 months ago

sigmafelix commented 9 months ago

Results

TODO

kyle-messier commented 9 months ago

@sigmafelix Our group has read, write, execute access to /ddn/gs1/group/set/Projects/PrestoGP_Pesticides Please check that again and if you still don't have write access, I'll reach out to OSC.

sigmafelix commented 9 months ago

@Spatiotemporal-Exposures-and-Toxicology Permission settings seem to be differently applied to each subdirectory...

Screenshot 2023-09-22 at 12 55 26

kyle-messier commented 9 months ago

@sigmafelix ok, I thought recursive permissions within subfolders was the default. I made a change to hopefully apply the permission through the entire project directory. Please try again and let me know. Thanks!

kyle-messier commented 2 months ago

@sigmafelix Can you provide the NASS code to the group ddn directory for PrestoGP or share via email?

sigmafelix commented 2 months ago

@kyle-messier https://github.com/NIEHS/targets_PrestoGP/blob/main/code/02_Geographic_Covariates/Calc_HUC_extract_test.r

It seems not to be renamed before. The workflow of that code is--

1. For i $\in$ 1:|HUC04| do
2.   Split lower-level HUC areas by i
3.     Using lower-level HUCs in i, read HUC areas
4.     Calculate zonal frequencies of each crop class by `terra::freq()`
5.     Clean the extracted data
6.     Bind rows

1-6 is parallelized for each year's NASS tiff file.

kyle-messier commented 2 months ago

@sigmafelix Thanks. I'll take a look. Converting that to a basic targets workflow may be a lift.

sigmafelix commented 2 months ago

@kyle-messier I could add it to the pipeline in main. Please let me know after you will push all the changes made in the meantime.