Skip to content

Commit

Permalink
Merge pull request #7 from adamhsparks/main
Browse files Browse the repository at this point in the history
Add instructions to create data folder to avoid errors on download
  • Loading branch information
alekfal authored Mar 19, 2024
2 parents 77dc12a + ea0135b commit a915fdb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ is `datetime.date(2022, 2, 1)`.

Download meteorological data for a point in Athens, Greece and save result in `*.csv` format.

First, create a "data" folder to hold the POWER data upon download in your current environment.

```bash
mkdir data
```

```python
from pynasapower.get_data import query_power
from pynasapower.geometry import point, bbox
Expand All @@ -69,4 +75,4 @@ end = datetime.date(2022, 2, 1)
data = query_power(geometry = gbbox, start = start, end = end, path = "./data", to_file = True, community = "ag", parameters = [], temporal_api = "daily", spatial_api = "point", format = "csv")
```

Read more about the software in project's [readthedocs](https://pynasapower.readthedocs.io/en/latest/).
Read more about the software in project's [readthedocs](https://pynasapower.readthedocs.io/en/latest/).

0 comments on commit a915fdb

Please sign in to comment.