cryoswath 0.2.2.dev0__tar.gz → 0.2.2.post1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/PKG-INFO +2 -2
  2. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/README.md +1 -1
  3. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/cryoswath/misc.py +18 -27
  4. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/pyproject.toml +1 -2
  5. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/.gitattributes +0 -0
  6. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  7. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  8. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/.github/ISSUE_TEMPLATE/question.md +0 -0
  9. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/.gitignore +0 -0
  10. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/.readthedocs.yaml +0 -0
  11. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/LICENSE.txt +0 -0
  12. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/cryoswath/__init__.py +0 -0
  13. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/cryoswath/gis.py +0 -0
  14. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/cryoswath/l1b.py +0 -0
  15. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/cryoswath/l2.py +0 -0
  16. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/cryoswath/l3.py +0 -0
  17. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/cryoswath/l4.py +0 -0
  18. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/cryoswath/test_plots/__init__.py +0 -0
  19. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/cryoswath/test_plots/maps.py +0 -0
  20. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/cryoswath/test_plots/timeseries.py +0 -0
  21. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/cryoswath/test_plots/waveform.py +0 -0
  22. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docker/Dockerfile +0 -0
  23. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/Makefile +0 -0
  24. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/conf.py +0 -0
  25. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/cryoswath.gis.rst +0 -0
  26. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/cryoswath.l1b.rst +0 -0
  27. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/cryoswath.l2.rst +0 -0
  28. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/cryoswath.l3.rst +0 -0
  29. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/cryoswath.l4.rst +0 -0
  30. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/cryoswath.misc.rst +0 -0
  31. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/cryoswath.test_plots.rst +0 -0
  32. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/getting_started.rst +0 -0
  33. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/index.rst +0 -0
  34. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/prerequisites.rst +0 -0
  35. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/requirements.in +0 -0
  36. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/requirements.txt +0 -0
  37. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/tests.rst +0 -0
  38. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/docs/tutorials.rst +0 -0
  39. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/requirements.txt +0 -0
  40. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/tests/reports/.gitignore +0 -0
  41. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/tests/reports/l1b_swath_start.ipynb +0 -0
  42. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/tests/reports/l1b_waveform.ipynb +0 -0
  43. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/tests/reports/l2_dem_comparison.ipynb +0 -0
  44. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/tests/reports/l2_tested_data_comparison.ipynb +0 -0
  45. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/tests/reports/reference_data/L2_reference_data_20220521T110815.csv +0 -0
  46. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/tests/reports/reference_figures/waveform_2014-05-17T22:54:51.839752960.png +0 -0
  47. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/tests/test_l1b.py +0 -0
  48. {cryoswath-0.2.2.dev0 → cryoswath-0.2.2.post1}/tests/void_filling_results_smell_test.ipynb +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cryoswath
3
- Version: 0.2.2.dev0
3
+ Version: 0.2.2.post1
4
4
  Summary: Swath processing toolbox for CryoSat-2
5
5
  Keywords: glacier,altimetry,swath,cryosat
6
6
  Author-email: Jan Haacker <j.m.haacker@tudelft.nl>
@@ -146,7 +146,7 @@ advantage: will almost always work
146
146
 
147
147
  *note*: the first time running the docker image require to download ~ 1 Gb
148
148
 
149
- 1. `docker run -it -p 8888:8888 -v $proj_dir$:/home/jovyan cryoswath/jupyterlab:v0.2.1`
149
+ 1. `docker run -it -p 8888:8888 -v $proj_dir$:/home/jovyan cryoswath/jupyterlab:v0.2.2`
150
150
  2. You will receive an address including a token with which you can connect to the jupyterlab using your browser
151
151
  3. In jupyterlab, open a regular shell and execute `cryoswath-init`
152
152
  4. Open the scripts folder in the explorer and select one of the notebooks or create your own (inside the scripts folder)
@@ -100,7 +100,7 @@ advantage: will almost always work
100
100
 
101
101
  *note*: the first time running the docker image require to download ~ 1 Gb
102
102
 
103
- 1. `docker run -it -p 8888:8888 -v $proj_dir$:/home/jovyan cryoswath/jupyterlab:v0.2.1`
103
+ 1. `docker run -it -p 8888:8888 -v $proj_dir$:/home/jovyan cryoswath/jupyterlab:v0.2.2`
104
104
  2. You will receive an address including a token with which you can connect to the jupyterlab using your browser
105
105
  3. In jupyterlab, open a regular shell and execute `cryoswath-init`
106
106
  4. Open the scripts folder in the explorer and select one of the notebooks or create your own (inside the scripts folder)
@@ -113,25 +113,7 @@ def init_project():
113
113
  config["path"] = {"base": os.getcwd()}
114
114
  with open(config_file, "w") as f:
115
115
  config.write(f)
116
- if "user" not in config or "email" not in config["user"]:
117
- print(
118
- "Please provide your email to be able to download CryoSat-2 data from ESA."
119
- )
120
- while True:
121
- _input = input("Enter your email")
122
- if re.fullmatch(r"[^@]+@[^@]+\.[a-z]{2,9}", _input.strip().lower()):
123
- if "user" not in config:
124
- config["user"] = {}
125
- config["user"].update({"email": _input})
126
- with open(config_file, "w") as f: # update/overwrite
127
- config.write(f)
128
- break
129
- else:
130
- print(
131
- 'Didn\'t match required pattern "[^@]+@[^@]+\\.[a-z]{2,9}". If',
132
- "your email indeed doesn't match, file an issue. Your input was:",
133
- _input,
134
- )
116
+ print("Run cryoswath.misc.update_email() from a python prompt to complete setup.")
135
117
 
136
118
 
137
119
  # Paths ##############################################################
@@ -2214,14 +2196,23 @@ def sandbox_write_to(target: str):
2214
2196
  os.remove(target + "__backup")
2215
2197
 
2216
2198
 
2217
- def update_email(email):
2218
- config = ConfigParser()
2219
- config.read("config.ini")
2220
- if "user" not in config:
2221
- config["user"] = dict()
2222
- config["user"].update({"email": email})
2223
- with open("config.ini", "w") as f:
2224
- config.write(f)
2199
+ def update_email(email: str = None):
2200
+ if email is None:
2201
+ email = input("Enter your email")
2202
+ if re.fullmatch(r"[^@]+@[^@]+\.[a-z]{2,9}", email.strip().lower()):
2203
+ config = ConfigParser()
2204
+ config.read("config.ini")
2205
+ if "user" not in config:
2206
+ config["user"] = dict()
2207
+ config["user"].update({"email": email})
2208
+ with open("config.ini", "w") as f: # update/overwrite
2209
+ config.write(f)
2210
+ else:
2211
+ print(
2212
+ 'Didn\'t match required pattern "[^@]+@[^@]+\\.[a-z]{2,9}". If',
2213
+ "your email indeed doesn't match, file an issue. Your input was:",
2214
+ email,
2215
+ )
2225
2216
 
2226
2217
 
2227
2218
  # CREDIT: mgab https://stackoverflow.com/a/22376126
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
4
4
 
5
5
  [project]
6
6
  name = "cryoswath"
7
- version = "0.2.2.dev0"
7
+ version = "0.2.2.post1"
8
8
  authors = [
9
9
  { name="Jan Haacker", email="j.m.haacker@tudelft.nl" },
10
10
  ]
@@ -26,7 +26,6 @@ dependencies = [
26
26
  "h5netcdf",
27
27
  "h5py",
28
28
  "matplotlib",
29
- # "netCDF4", # not sure
30
29
  "numpy",
31
30
  "packaging",
32
31
  "pandas",