Skip to content

Commit 3338d02

Browse files
committed
modified: .zenodo.json
modified: CHANGELOG.md modified: MANIFEST.in modified: README.md modified: docker/initialize.py modified: docs/source/conf.py modified: docs/source/index.rst modified: docs/source/install.rst modified: docs/source/r-install.rst new file: geoenrich/data/personal_catalog.csv modified: geoenrich/satellite.py modified: setup.cfg
1 parent 5394672 commit 3338d02

File tree

12 files changed

+27
-23
lines changed

12 files changed

+27
-23
lines changed

.zenodo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
"license": "GPL-3.0",
1515

16-
"title": "GeoEnrich v0.5.6: a new tool for scientists to painlessly enrich species occurrence data with environmental variables",
16+
"title": "GeoEnrich v0.5.7: a new tool for scientists to painlessly enrich species occurrence data with environmental variables",
1717

1818
"related_identifiers": [
1919
{

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v0.5.7
2+
3+
#### New functions:
4+
- Added support for a *personal_catalog* file for a reliable use of user-defined datasets (see installation instructions).
5+
- Updated Docker image accordingly.
6+
- Added support for OpenMPI into the Docker image to enable parallel computing (Only to be used for separate points & separate variables, otherwise data loss will occur).
7+
18
## v0.5.6
29

310
#### New functions:

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include geoenrich/data/AcDigitifera.zip
22
include geoenrich/data/catalog.csv
3+
exclude geoenrich/personal_catalog.csv
34
include geoenrich/data/areas.csv
45
exclude geoenrich/credentials.py

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# **geoenrich 0.5.6**
1+
# **geoenrich 0.5.7**
22

33
[![Read the Docs](https://img.shields.io/readthedocs/geoenrich)](https://geoenrich.readthedocs.io/en/latest/)
44
[![License](https://img.shields.io/github/license/morand-g/geoenrich?color=green)](https://github.com/morand-g/geoenrich/blob/main/LICENSE)

docker/initialize.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,7 @@
5555
if Path('/app/conf/credentials.py').exists():
5656
shutil.copy(Path('/app/conf/credentials.py'), Path('/usr/local/lib/python3.8/site-packages/geoenrich/credentials.py'))
5757

58+
if Path('/app/conf/personal_catalog.csv').exists():
59+
shutil.copy(Path('/app/conf/personal_catalog.csv'), Path('/usr/local/lib/python3.8/site-packages/geoenrich/data/personal_catalog.csv'))
60+
5861
print('Initialization complete.')

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
author = 'Gaétan Morand (UMR Marbec)'
2626

2727
# The full version, including alpha/beta/rc tags
28-
release = '0.5.6'
28+
release = '0.5.7'
2929

3030

3131
# -- General configuration ---------------------------------------------------

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
geoenrich 0.5.6 documentation
1+
geoenrich 0.5.7 documentation
22
==============================
33

44
|Read the Docs| |License| |PyPI| |Python versions| |Last commit| |DOI|

docs/source/install.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,14 @@ There is also a dictionary named *dap_creds* that is intended to store credentia
4242

4343
At the same location, there is a *catalog.csv* file that already contains a list of available variables. If you want to use a dataset from Copernicus, you first need to register on `their website <https://resources.marine.copernicus.eu/registration-form>`_ and write your credentials in the *credentials.py* file.
4444

45-
If you need additional variables, you can update the *catalog.csv* file to add other opendap servers. Three columns are compulsory:
45+
If you need additional variables, you can update add a *personal_catalog.csv* file to the same folder (template on `GitHub <https://github.com/morand-g/geoenrich/blob/main/geoenrich/data/personal_catalog.csv>`_). Three columns are compulsory:
4646

47-
- *variable*: A unique name for that variable (user defined).
47+
- *variable*: A unique name for that variable (user defined). It needs to be different from the variable names already in the built-in catalog.
4848
- *url*: OpenDAP URL.
4949
- *varname*: Name of the variable in the remote dataset.
5050

5151

52-
5. Precautions
53-
--------------
54-
55-
If you edited the *catalog.csv* file to add variables, you should make a backup of it, as it will get overwritten if you update or reinstall this package.
56-
57-
58-
5. Using the package
52+
6. Using the package
5953
--------------------
6054

6155
Congrats, you can now use the `tutorial <https://geoenrich.readthedocs.io/en/latest/tutorial.html>`_ and start doing science!

docs/source/r-install.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,14 @@ There is also a dictionary named *dap_creds* that is intended to store credentia
5454

5555
At the same location, there is a *catalog.csv* file that already contains a list of available variables. If you want to use a dataset from Copernicus, you first need to register on `their website <https://resources.marine.copernicus.eu/registration-form>`_ and write your credentials in the *credentials.py* file.
5656

57-
If you need additional variables, you can update the *catalog.csv* file to add other opendap servers. Three columns are compulsory:
57+
If you need additional variables, you can update add a *personal_catalog.csv* file to the same folder (template on `GitHub <https://github.com/morand-g/geoenrich/blob/main/geoenrich/data/personal_catalog.csv>`_). Three columns are compulsory:
5858

59-
- *variable*: A unique name for that variable (user defined).
59+
- *variable*: A unique name for that variable (user defined). It needs to be different from the variable names already in the built-in catalog.
6060
- *url*: OpenDAP URL.
6161
- *varname*: Name of the variable in the remote dataset.
6262

6363

64-
4. Precautions
65-
--------------
66-
67-
If you edited the *catalog.csv* file to add variables, you should make a backup of it, as it will get overwritten if you update or reinstall this package.
68-
69-
70-
5. Using the package
64+
4. Using the package
7165
--------------------
7266

7367
Congrats, you can now use the `tutorial <https://geoenrich.readthedocs.io/en/latest/r-tutorial.html>`_ and start doing science!

geoenrich/data/personal_catalog.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
variable,source,spatial_resolution,time_resolution,time_coverage,depth_levels,url,varname

geoenrich/satellite.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ def get_var_catalog():
122122
path = Path(geoenrich.__file__).parent
123123
var_catalog = pd.read_csv(path / 'data' / 'catalog.csv', index_col = 0).to_dict('index')
124124

125+
if (path / 'data' / 'personal_catalog.csv').exists():
126+
pers_vars = pd.read_csv(path / 'data' / 'personal_catalog.csv', index_col = 0).to_dict('index')
127+
var_catalog = {**var_catalog, **pers_vars}
128+
125129
for v in var_catalog:
126130
var_catalog[v]['var_id'] = v
127131
for domain in dap_creds:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = geoenrich
3-
version = 0.5.6
3+
version = 0.5.7
44
author = Gaétan Morand (UMR Marbec)
55
author_email = gaetan.morand@ird.fr
66
description = A package to enrich your geo-referenced data (e.g. species occurrences) with environmental data.

0 commit comments

Comments
 (0)