[weather-sp] : better formatting of date & time in output template
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- data-engineering
Research direction
Start by locating the weather-sp output-template handling and the logic that substitutes date and time values. Check the relevant existing tests, if present, then verify that a pattern can format the time as 12:00:00 while preserving the current date and time behavior.
Written by the indexing model from the issue text.
Description
Example:
For a file gs://test-input/test-file.grib the output file pattern is gs://test-output/splits/test-file_{date}-{time}.grib.
Then for date = 20200101, time = 1200, the output file for that split will be gs://test-output/splits/test-file_20200101-1200.grib.
But what if user want's output file as gs://test-output/splits/test-file_20200101-12:00:00.grib -- basically format date & time as per the need.
For such cases he can provide output file pattern as gs://test-output/splits/test-file_{date}-{datetime.strptime(f"{time}", "%H%M").strftime("%H:%M:%S")}.grib.
Make necessary changes for supporting this :) most probably just need to import datetime library and minor tweaking in logic.
- Dominant language
- Python
- Stars
- 252
- Forks
- 60
- Avg merge
- 8d 4h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google/weather-tools
-
enhancement weather-sp
Difficulty 3/5 1-2 days Newbie friendliness 68/100
google/weather-tools#538 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
google/weather-tools#522 ·
-
Support for dynamic coordinate in weather-mv bq - currently hardcoded as 'latitude' & 'longitude' Open
Difficulty 3/5 1-2 days Newbie friendliness 42/100
google/weather-tools#476 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
google/weather-tools#440 · 1 comment ·
-
google/weather-tools#414 · 1 assignee ·
All issues in google/weather-tools
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100