%global _empty_manifest_terminate_build 0 Name: python-py-eodms-rapi Version: 1.5.3 Release: 1 Summary: EODMS RAPI Client is a Python3 package used to access the REST API service provided by the Earth Observation Data Management System (EODMS) from Natural Resources Canada. License: LICENSE URL: https://py-eodms-rapi.readthedocs.io/en/latest/ Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c2/35/26cd7d1dd312496a242ac3c468e8cb6501fa31cfa1d99045e54d673b3461/py-eodms-rapi-1.5.3.tar.gz BuildArch: noarch Requires: python3-dateparser Requires: python3-requests Requires: python3-tqdm Requires: python3-geomet %description ## Overview EODMS RAPI Client is a Python3 package used to access the REST API service provided by the [Earth Observation Data Management System (EODMS)](https://www.eodms-sgdot.nrcan-rncan.gc.ca/index-en.html) from Natural Resources Canada. ## Installation The package can be installed using pip: ```bash pip install py-eodms-rapi -U ``` ## Basic Usage Here are a few examples on how to use the EODMS RAPI Client (```EODMSRAPI```). For full documentation, visit [https://py-eodms-rapi.readthedocs.io/en/latest/](https://py-eodms-rapi.readthedocs.io/en/latest/) ### Search for Images ```python from eodms_rapi import EODMSRAPI # Create the EODMSRAPI object rapi = EODMSRAPI('eodms-username', 'eodms-password') # Add a point to the search feat = [('intersects', "POINT (-96.47 62.4)")] # Create a dictionary of query filters for the search filters = {'Beam Mnemonic': ('=', ['16M11', '16M13']), 'Incidence Angle': ('>=', '35')} # Set a date range for the search dates = [{"start": "20200513_120000", "end": "20200613_150000"}] # Submit the search to the EODMSRAPI, specifying the Collection rapi.search("RCMImageProducts", filters=filters, features=feat, dates=dates) # Get the results from the search res = rapi.get_results('full') # Print results rapi.print_results() ``` ### Order and Download Images Using the results from the previous example: ```python # Submit an order using results order_res = rapi.order(res) # Specify a folder location to download the images dest = "C:\\temp\\py_eodms_rapi" # Download the images from the order dn_res = rapi.download(order_res, dest) ``` ## Acknowledgements Some code in this package is based off the [EODMS API Client](https://pypi.org/project/eodms-api-client/) designed by Mike Brady. ## Contact If you have any questions or require support, please contact the EODMS Support Team at eodms-sgdot@nrcan-rncan.gc.ca. ## License MIT License %package -n python3-py-eodms-rapi Summary: EODMS RAPI Client is a Python3 package used to access the REST API service provided by the Earth Observation Data Management System (EODMS) from Natural Resources Canada. Provides: python-py-eodms-rapi BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-py-eodms-rapi ## Overview EODMS RAPI Client is a Python3 package used to access the REST API service provided by the [Earth Observation Data Management System (EODMS)](https://www.eodms-sgdot.nrcan-rncan.gc.ca/index-en.html) from Natural Resources Canada. ## Installation The package can be installed using pip: ```bash pip install py-eodms-rapi -U ``` ## Basic Usage Here are a few examples on how to use the EODMS RAPI Client (```EODMSRAPI```). For full documentation, visit [https://py-eodms-rapi.readthedocs.io/en/latest/](https://py-eodms-rapi.readthedocs.io/en/latest/) ### Search for Images ```python from eodms_rapi import EODMSRAPI # Create the EODMSRAPI object rapi = EODMSRAPI('eodms-username', 'eodms-password') # Add a point to the search feat = [('intersects', "POINT (-96.47 62.4)")] # Create a dictionary of query filters for the search filters = {'Beam Mnemonic': ('=', ['16M11', '16M13']), 'Incidence Angle': ('>=', '35')} # Set a date range for the search dates = [{"start": "20200513_120000", "end": "20200613_150000"}] # Submit the search to the EODMSRAPI, specifying the Collection rapi.search("RCMImageProducts", filters=filters, features=feat, dates=dates) # Get the results from the search res = rapi.get_results('full') # Print results rapi.print_results() ``` ### Order and Download Images Using the results from the previous example: ```python # Submit an order using results order_res = rapi.order(res) # Specify a folder location to download the images dest = "C:\\temp\\py_eodms_rapi" # Download the images from the order dn_res = rapi.download(order_res, dest) ``` ## Acknowledgements Some code in this package is based off the [EODMS API Client](https://pypi.org/project/eodms-api-client/) designed by Mike Brady. ## Contact If you have any questions or require support, please contact the EODMS Support Team at eodms-sgdot@nrcan-rncan.gc.ca. ## License MIT License %package help Summary: Development documents and examples for py-eodms-rapi Provides: python3-py-eodms-rapi-doc %description help ## Overview EODMS RAPI Client is a Python3 package used to access the REST API service provided by the [Earth Observation Data Management System (EODMS)](https://www.eodms-sgdot.nrcan-rncan.gc.ca/index-en.html) from Natural Resources Canada. ## Installation The package can be installed using pip: ```bash pip install py-eodms-rapi -U ``` ## Basic Usage Here are a few examples on how to use the EODMS RAPI Client (```EODMSRAPI```). For full documentation, visit [https://py-eodms-rapi.readthedocs.io/en/latest/](https://py-eodms-rapi.readthedocs.io/en/latest/) ### Search for Images ```python from eodms_rapi import EODMSRAPI # Create the EODMSRAPI object rapi = EODMSRAPI('eodms-username', 'eodms-password') # Add a point to the search feat = [('intersects', "POINT (-96.47 62.4)")] # Create a dictionary of query filters for the search filters = {'Beam Mnemonic': ('=', ['16M11', '16M13']), 'Incidence Angle': ('>=', '35')} # Set a date range for the search dates = [{"start": "20200513_120000", "end": "20200613_150000"}] # Submit the search to the EODMSRAPI, specifying the Collection rapi.search("RCMImageProducts", filters=filters, features=feat, dates=dates) # Get the results from the search res = rapi.get_results('full') # Print results rapi.print_results() ``` ### Order and Download Images Using the results from the previous example: ```python # Submit an order using results order_res = rapi.order(res) # Specify a folder location to download the images dest = "C:\\temp\\py_eodms_rapi" # Download the images from the order dn_res = rapi.download(order_res, dest) ``` ## Acknowledgements Some code in this package is based off the [EODMS API Client](https://pypi.org/project/eodms-api-client/) designed by Mike Brady. ## Contact If you have any questions or require support, please contact the EODMS Support Team at eodms-sgdot@nrcan-rncan.gc.ca. ## License MIT License %prep %autosetup -n py-eodms-rapi-1.5.3 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-py-eodms-rapi -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Mon May 15 2023 Python_Bot - 1.5.3-1 - Package Spec generated