-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINSTALL.txt
72 lines (45 loc) · 2.43 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
EarthScope
Data Services (DS)
Data Products Unit
EarthScope Earth Model Collaboration (EMC) - Release 2.1
COMMENTS/QUESTIONS:
Please contact [email protected]
2024-09-16
======================================================================================================================================================================
DESCRIPTION:
EMC Tools contains a set of Python scripts for working with EMC's netCDF Earth model files (netCDF 3 & 4 CLASSIC formats):
- netCDF_2_GeoCSV.py - a Python script to convert a 2D or 3D netCDF Earth model file to GeoCSV format.
- GeoCSV_2_netCDF.py - a Python script to convert a 2D or 3D 3D GeoCSV Earth model file to netCDF format.
- emc-inspector.py - a Python script to check a given netCDF file against the EMC requirements and
flags any missing or incorrectly defined attributes. The check is not exhaustive, and visual validation is required
to identify any additional errors.
Above scripts support models with projected coordinate systems as auxiliary coordinates:
https://ds.iris.edu/ds/newsletter/vol99/no1/543/emc-two-dimensional-latitude-longitude-coordinate-variables/
For information on EMC (EarthScope Earth Model Collaboration) visit: http://ds.iris.edu/ds/products/emc/
For information on netCDF (Network Common Data Form) visit https://www.unidata.ucar.edu/software/netcdf/
For information on GeoCSV (tabular text formatting for geoscience data)
visit: http://geows.ds.iris.edu/documents/GeoCSV.pdf
REQUIREMENTS:
- Python: These scripts were created and tested under:
Mac:
python version : 3.12.0
conda version : 23.11.0
System Version: macOS 14.61.1
Packages required:
netCDF4 Python library
numpy
BUNDLE INSTALLATION:
- The scripts are independent and no installation is required. An optional "data" directory with relative path:
"../data/" with respect to the script directory may be used to store and work with model files.
NOTE: These scripts will NOT create directories
INSTALLATION STEPS:
Clone the Repository
Set Up a Virtual Environment:
python3 -m venv env
source env/bin/activate
Install the Dependencies:
pip install -r requirements.txt
USAGE:
See the README.md
COMMENTS/QUESTIONS: