1
- # ClearSkyPy
2
- [ ![ Build Status] ( https://travis-ci.org/BXYMartin/Python-ClearSkyPy .svg?branch=master )] ( https://travis-ci.org/BXYMartin/Python-ClearSkyPy )
3
- [ ![ Latest Version] ( https://img.shields.io/github/v/release/bxymartin/python-clearskypy )] ( https://test.pypi.org/project/ClearSkyPy / )
1
+ # IrradPy
2
+ [ ![ Build Status] ( https://travis-ci.org/BXYMartin/Python-irradpy .svg?branch=master )] ( https://travis-ci.org/BXYMartin/Python-irradpy )
3
+ [ ![ Latest Version] ( https://img.shields.io/github/v/release/bxymartin/python-irradpy )] ( https://test.pypi.org/project/irradpy / )
4
4
5
5
Python script to download data from gesdisc.eosdis.nasa.gov for Clear Sky Model, extract variables from the MERRA-2 reanalysis database and model of clear-sky irradiance.
6
6
@@ -30,26 +30,26 @@ Python script to download data from gesdisc.eosdis.nasa.gov for Clear Sky Model,
30
30
#### Use inside Python Script
31
31
``` python
32
32
# Linux and Unix Users
33
- import clearskypy
33
+ import irradpy
34
34
# Run Downloader
35
- clearskypy .downloader.run(auth = {" uid" :" USERNAME" , " password" : " PASSWORD" })
35
+ irradpy .downloader.run(auth = {" uid" :" USERNAME" , " password" : " PASSWORD" })
36
36
# Run Model
37
- clearskypy .model.ClearSkyREST2v5(latitudes, longitudes, elevations, time, dataset_dir).REST2v5()
38
- clearskypy .model.ClearSkyMAC2(latitudes, longitudes, elevations, time, dataset_dir).MAC2()
37
+ irradpy .model.ClearSkyREST2v5(latitudes, longitudes, elevations, time, dataset_dir).REST2v5()
38
+ irradpy .model.ClearSkyMAC2(latitudes, longitudes, elevations, time, dataset_dir).MAC2()
39
39
40
40
41
41
# Windows Users Only:
42
- import clearskypy
42
+ import irradpy
43
43
import multiprocessing
44
44
# Important Note: If you're using windows, make sure to wrap the function.
45
45
if __name__ == " __main__" :
46
46
multiprocessing.freeze_support()
47
- clearskypy .downloader.run(auth = {" uid" :" USERNAME" , " password" : " PASSWORD" })
47
+ irradpy .downloader.run(auth = {" uid" :" USERNAME" , " password" : " PASSWORD" })
48
48
49
49
# More Examples
50
50
51
51
# Download All Data From 2018-01-01 To 2018-01-02
52
- clearskypy .downloader.run(auth = {" uid" :" USERNAME" , " password" : " PASSWORD" },
52
+ irradpy .downloader.run(auth = {" uid" :" USERNAME" , " password" : " PASSWORD" },
53
53
initial_year = 2018 , final_year = 2018 ,
54
54
initial_month = 1 , final_month = 1 ,
55
55
initial_day = 1 , final_day = 2 ,
@@ -62,8 +62,8 @@ clearskypy.downloader.run(auth={"uid":"USERNAME", "password": "PASSWORD"},
62
62
# Run clear sky model from 2018-01-01 To 2018-01-02
63
63
time_delta = 10 # minute
64
64
timedef = [(' 2018-01-01T00:00:00' , ' 2018-01-02T0:00:00' )]
65
- time = clearskypy .model.timeseries_builder(timedef, time_delta, np.size(latitudes))
66
- clearskypy .model.ClearSkyREST2v5(latitudes, longitudes, elevations, time, dataset_dir).REST2v5()
65
+ time = irradpy .model.timeseries_builder(timedef, time_delta, np.size(latitudes))
66
+ irradpy .model.ClearSkyREST2v5(latitudes, longitudes, elevations, time, dataset_dir).REST2v5()
67
67
```
68
68
69
69
``` python
@@ -117,7 +117,7 @@ clearskypy.model.ClearSkyREST2v5(latitudes, longitudes, elevations, time, datase
117
117
connection_num : Optional[int ]
118
118
Number of Connections for each file to be downloaded simutanously.
119
119
120
- # clearskypy .model.timeseries_builder:
120
+ # irradpy .model.timeseries_builder:
121
121
timedef: list [(start time , end time)], optional — specify the start
122
122
time(s) and end time(s) of the location(s) of interest.
123
123
time_delta: integer, optional — specify the temporal resolution of the
@@ -126,7 +126,7 @@ clearskypy.model.ClearSkyREST2v5(latitudes, longitudes, elevations, time, datase
126
126
if timedef less than num_station, timeseries_builder will expand it
127
127
for every station.
128
128
129
- # clearskypy .model.clearSkyRadiation_MAC2.py && clearskypy .model.clearSkyRadiation_REST2v5.py:
129
+ # irradpy .model.clearSkyRadiation_MAC2.py && irradpy .model.clearSkyRadiation_REST2v5.py:
130
130
131
131
latitudes: numpy.ndarray, float , compulsory — Define the latitude(s) of the
132
132
location(s) of interest, size must match longitudes.
@@ -144,7 +144,7 @@ clearskypy.model.ClearSkyREST2v5(latitudes, longitudes, elevations, time, datase
144
144
145
145
# ### Run Package From Shell
146
146
``` bash
147
- python - m clearskypy .downloader.socket -- uid USERNAME -- password PASSWORD
147
+ python - m irradpy .downloader.socket -- uid USERNAME -- password PASSWORD
148
148
149
149
usage: socket.py [- h] [-- collection_names VAR_NAMES ]
150
150
[-- download_dir DOWNLOAD_DIR ] [-- initial_year INITIAL_YEAR ]
@@ -208,7 +208,7 @@ python setup.py test
208
208
# ### Package
209
209
```
210
210
.
211
- ├── clearskypy
211
+ ├── irradpy
212
212
│ ├── __init__ .py
213
213
│ ├── downloader
214
214
│ │ ├── __init__ .py
@@ -248,5 +248,5 @@ python setup.py install
248
248
```
249
249
With python package:
250
250
``` bash
251
- pip install - i https:// test.pypi.org/ simple/ ClearSkyPy
251
+ pip install - i https:// test.pypi.org/ simple/ irradpy
252
252
```
0 commit comments