No project description provided
Project description
Importing the executors:
For GetRasterExecutor:
from iharp_query_executor.get_raster_api import GetRasterExecutor
For GeoJsonExecutor:
from iharp_query_executor.get_geojson_executor import GeoJsonExecutor
For GetTimeseriesExecutor:
from iharp_query_executor.get_timeseries_api import GeoTimeseriesExecutor
For GetHeatmapExecutor:
from iharp_query_executor.get_heatmap_api import GeoHeatmapExecutor
For GetFindTimeExecutor:
from iharp_query_executor.get_find_time_api import GeoFindTimeExecutor
For GetFindAreaExecutor:
from iharp_query_executor.get_find_area_api import GeoFindAreaExecutor
Each function requires the variables shown inside the function to work properly.
GetRasterExecutor:
Code for the GetRasterExecutor function:
raster = GetRasterExecutor(
variable=variable,
start_datetime=start_datetime,
end_datetime=end_datetime,
temporal_resolution=temporal_resolution,
min_lat=min_lat,
max_lat=max_lat,
min_lon=min_lon,
max_lon=max_lon,
spatial_resolution=spatial_resolution,
aggregation=aggregation,
)
To run the executor function:
raster.executr()
GeoJsonExecutor:
The GeoJsonExecutor has an execute function like the rest but also a visualize function that will save a visualization of the data and masked data to a file called data_plot.png.
Code for the GeoJsonExecutor function:
geojson = GeoJsonExecutor(
variable=variable,
start_datetime=start_datetime,
end_datetime=end_datetime,
temporal_resolution=temporal_resolution,
min_lat=min_lat,
max_lat=max_lat,
min_lon=min_lon,
max_lon=max_lon,
spatial_resolution=spatial_resolution,
aggregation=aggregation,
geojson_file=geojson_file
)
To run the executor and visualize function:
geojson.execute()
geojson.visualize()
GetTimeseriesExecutor:
Code for the GetTimeseriesExecutor function:
timeseries = GetTimeseriesExecutor(
variable=variable,
start_datetime=start_datetime,
end_datetime=end_datetime,
temporal_resolution=temporal_resolution,
min_lat=min_lat,
max_lat=max_lat,
min_lon=min_lon,
max_lon=max_lon,
aggregation=aggregation,
)
To run the executor function:
timeseries.execute()
GetHeatMapExecutor:
Code for the GetHeatmapExecutor function:
heatmap = GetHeatmapExecutor(
variable=variable,
start_datetime=start_datetime,
end_datetime=end_datetime,
min_lat=min_lat,
max_lat=max_lat,
min_lon=min_lon,
max_lon=max_lon,
spatial_resolution=spatial_resolution,
aggregation=aggregation,
)
To run the executor function:
heatmap.execute()
GetFindTimeExecutor:
Code for the GetFindTimeExecutor function:
ft = GetFindTimeExecutor(
variable=variable,
start_datetime=start_datetime,
end_datetime=end_datetime,
temporal_resolution=temporal_resolution,
min_lat=min_lat,
max_lat=max_lat,
min_lon=min_lon,
max_lon=max_lon,
aggregation=aggregation,
filter_predicate=filter_predicate,
filter_value=filter_value
)
To run the executor function:
ft.execute()
GetFindAreaExecutor:
Code for the GetFindAreaExecutor function:
fa = GetFindAreaExecutor(
variable=variable,
start_datetime=start_datetime,
end_datetime=end_datetime,
min_lat=min_lat,
max_lat=max_lat,
min_lon=min_lon,
max_lon=max_lon,
spatial_resolution=spatial_resolution,
aggregation=aggregation,
filter_predicate=filter_predicate,
filter_value=filter_value
)
To run the executor function:
fa.execute()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iharp_query_executor-0.1.1.tar.gz.
File metadata
- Download URL: iharp_query_executor-0.1.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09b65b8a9bdb712acc28b3e3bbf7962fffa2893247bbc90a522310859ac23484
|
|
| MD5 |
6b75f5bdabaf31d75682b5d052632f7d
|
|
| BLAKE2b-256 |
6e9467c528009a5c92911564d5a91096c7e0419b4cba8f6e42660aae88477d6e
|
File details
Details for the file iharp_query_executor-0.1.1-py3-none-any.whl.
File metadata
- Download URL: iharp_query_executor-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f44763346a4674dc0beedfa2f5e222c90d79001c2fb9dc8b2a21e0eee1df7677
|
|
| MD5 |
a3fe19a7bea4971c92b70759b3a913f3
|
|
| BLAKE2b-256 |
7bf9f7bc3f6b46cb96866b4b19c6454f6b2a7fa20014dd4316a16da20631c043
|