Closed lizzieinvancouver closed 2 months ago
@kim-dajeong I updated the sim files to what I think is their final format.
@kim-dajeong I wrote some code that I think duplicates the files as we want to (altitude, pet, pre, and whc). You can find it here. Could you take a look at it and see if you think it looks to be working?
If you have extra time I need to write code in this file that uses tminsimsyear (temperature minimum simulations) and tmaxsimsyear (temperature maximum simulations) to create the MEAN of the two and then write out those files as well (write out similar to tminsimsyear and tmaxsimsyear). If you have any ideas on how to do it, please paste the code below. If not, no worries. I will aim to work it on Tuesday or Wednesday.
Thanks!
@kim-dajeong I added the mean code (easier than expected) so no rush on that. If you have time to review the code and let me know if you see any issues, that would be great.
This was done long ago; see this file I think: https://github.com/lizzieinvancouver/climatehazards/blob/main/analyses/calcclimatemetrics.R
@kim-dajeong
We need semi-changed versions of many of these files: https://github.com/lizzieinvancouver/climatehazards/tree/main/analyses/input/ERA5LAND
We need to replicate most of the non-temperature files (so all but tmn, tmp or tmx file names -- those are temperature) but I am confirming which ones. I think we need ones with these terms in the file names:
And do not need:
We need the same data, but changing it so the same lat and lon rows as here (replicating the years and their data across the lat and lat values): https://github.com/lizzieinvancouver/climatehazards/blob/main/analyses/output/phenofitsims/tminsimsyear1970.csv
Ideally, I'd like code (ideally in R since I know R, but bash or such could work) that writes these new files to a folder that I can then use for running PhenoFit.
I will probably keep having new temperature files so we would like code that works based on temperature files to make new files quickly.