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

Data: Prepare for data with only day time hours and cut year by seasons #35

Open
FanWangEcon opened this issue Feb 1, 2024 · 1 comment
Assignees

Comments

@FanWangEcon
Copy link
Member

FanWangEcon commented Feb 1, 2024

Alternative time considerations

Part 1, Construct day time hours only file

Building from the hourly file with all times, we construct the china-time specific day-time only hours file, we develope a script where we can specific the start hour and end hour of the day, and we develope a strategy to convert from UTC time information to China time informaiton

For more details see PIRE-CEC::issue-35.

Part 2, Construct non-winter time only

Building from the hourly file with all times, we construct the China-time specific non-winter hours only file, we follow the code from Part 1, with now month exclusion. Excluding Jan/Feb/Nov/Dec. See https://en.wikipedia.org/wiki/Climate_of_China#Examples.

Algorithm

  1. Load libraries
  2. Day time hour parameters, inclusive boundaries 6 to 22
  3. Get paths, constructed in R-script/ffs_pirecec_support.R
  4. Data file names
  5. Read in file, all hours data
  6. Pivot longer
  7. Convert hours to utc time format
  8. Convert UTC time to time in Shanghai
  9. Cut non daytime hours
  10. reindex hour of year
  11. select and reshape to wide
  12. save
@FanWangEcon
Copy link
Member Author

Excluding Jan/Feb, Nov/Dec from nonwinter file:

image

@FanWangEcon FanWangEcon changed the title Data: Prepare for data with only day time hours Data: Prepare for data with only day time hours and cut year by seasons Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant