ocstrack 0.2.1.dev0__tar.gz → 0.2.2.dev0__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.
- ocstrack-0.2.2.dev0/PKG-INFO +230 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/_version.py +3 -3
- ocstrack-0.2.2.dev0/ocstrack.egg-info/PKG-INFO +230 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/pyproject.toml +2 -2
- ocstrack-0.2.1.dev0/PKG-INFO +0 -109
- ocstrack-0.2.1.dev0/ocstrack.egg-info/PKG-INFO +0 -109
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/.github/workflows/docs.yml +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/.github/workflows/lint.yml +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/.github/workflows/publish-to-pypi.yml +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/.github/workflows/run-tests.yml +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/.gitignore +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/.pylintrc +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/LICENSE.txt +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/README.md +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/docs/collocation.md +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/docs/index.md +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/docs/model.md +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/docs/observation.md +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/docs/utils.md +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/examples/ADCIRCSWAN_SatAlt.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/examples/Plot_Collocated.ipynb +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/examples/SCHISMWWM_SatAlt.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/examples/SCHISM_ArgoFloat.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/mkdocs.yml +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Collocation/__init__.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Collocation/collocate.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Collocation/output.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Collocation/spatial.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Collocation/temporal.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Model/__init__.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Model/model.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Observation/__init__.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Observation/argofloat.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Observation/get_argo.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Observation/get_sat.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Observation/satellite.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/Observation/urls.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/__init__.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack/utils.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack.egg-info/SOURCES.txt +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack.egg-info/dependency_links.txt +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack.egg-info/requires.txt +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/ocstrack.egg-info/top_level.txt +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/requirements.txt +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/setup.cfg +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/setup.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/tests/test_get_argo.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/tests/test_get_sat.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/tests/test_model.py +0 -0
- {ocstrack-0.2.1.dev0 → ocstrack-0.2.2.dev0}/tests/test_spatial.py +0 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ocstrack
|
|
3
|
+
Version: 0.2.2.dev0
|
|
4
|
+
Summary: Satellite data download, crop, and collocation with model outputs
|
|
5
|
+
Author-email: Felicio Cassalho <felicio.cassalho@noaa.gov>
|
|
6
|
+
License: Creative Commons Legal Code
|
|
7
|
+
|
|
8
|
+
CC0 1.0 Universal
|
|
9
|
+
|
|
10
|
+
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
11
|
+
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
12
|
+
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
13
|
+
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
14
|
+
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
15
|
+
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
16
|
+
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
17
|
+
HEREUNDER.
|
|
18
|
+
|
|
19
|
+
Statement of Purpose
|
|
20
|
+
|
|
21
|
+
The laws of most jurisdictions throughout the world automatically confer
|
|
22
|
+
exclusive Copyright and Related Rights (defined below) upon the creator
|
|
23
|
+
and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
24
|
+
authorship and/or a database (each, a "Work").
|
|
25
|
+
|
|
26
|
+
Certain owners wish to permanently relinquish those rights to a Work for
|
|
27
|
+
the purpose of contributing to a commons of creative, cultural and
|
|
28
|
+
scientific works ("Commons") that the public can reliably and without fear
|
|
29
|
+
of later claims of infringement build upon, modify, incorporate in other
|
|
30
|
+
works, reuse and redistribute as freely as possible in any form whatsoever
|
|
31
|
+
and for any purposes, including without limitation commercial purposes.
|
|
32
|
+
These owners may contribute to the Commons to promote the ideal of a free
|
|
33
|
+
culture and the further production of creative, cultural and scientific
|
|
34
|
+
works, or to gain reputation or greater distribution for their Work in
|
|
35
|
+
part through the use and efforts of others.
|
|
36
|
+
|
|
37
|
+
For these and/or other purposes and motivations, and without any
|
|
38
|
+
expectation of additional consideration or compensation, the person
|
|
39
|
+
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
40
|
+
is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
41
|
+
elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
42
|
+
terms, with knowledge of his or her Copyright and Related Rights in the
|
|
43
|
+
Work and the meaning and intended legal effect of CC0 on those rights.
|
|
44
|
+
|
|
45
|
+
1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
46
|
+
protected by copyright and related or neighboring rights ("Copyright and
|
|
47
|
+
Related Rights"). Copyright and Related Rights include, but are not
|
|
48
|
+
limited to, the following:
|
|
49
|
+
|
|
50
|
+
i. the right to reproduce, adapt, distribute, perform, display,
|
|
51
|
+
communicate, and translate a Work;
|
|
52
|
+
ii. moral rights retained by the original author(s) and/or performer(s);
|
|
53
|
+
iii. publicity and privacy rights pertaining to a person's image or
|
|
54
|
+
likeness depicted in a Work;
|
|
55
|
+
iv. rights protecting against unfair competition in regards to a Work,
|
|
56
|
+
subject to the limitations in paragraph 4(a), below;
|
|
57
|
+
v. rights protecting the extraction, dissemination, use and reuse of data
|
|
58
|
+
in a Work;
|
|
59
|
+
vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
60
|
+
European Parliament and of the Council of 11 March 1996 on the legal
|
|
61
|
+
protection of databases, and under any national implementation
|
|
62
|
+
thereof, including any amended or successor version of such
|
|
63
|
+
directive); and
|
|
64
|
+
vii. other similar, equivalent or corresponding rights throughout the
|
|
65
|
+
world based on applicable law or treaty, and any national
|
|
66
|
+
implementations thereof.
|
|
67
|
+
|
|
68
|
+
2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
69
|
+
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
70
|
+
irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
71
|
+
Affirmer's Copyright and Related Rights and associated claims and causes
|
|
72
|
+
of action, whether now known or unknown (including existing as well as
|
|
73
|
+
future claims and causes of action), in the Work (i) in all territories
|
|
74
|
+
worldwide, (ii) for the maximum duration provided by applicable law or
|
|
75
|
+
treaty (including future time extensions), (iii) in any current or future
|
|
76
|
+
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
77
|
+
including without limitation commercial, advertising or promotional
|
|
78
|
+
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
79
|
+
member of the public at large and to the detriment of Affirmer's heirs and
|
|
80
|
+
successors, fully intending that such Waiver shall not be subject to
|
|
81
|
+
revocation, rescission, cancellation, termination, or any other legal or
|
|
82
|
+
equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
83
|
+
as contemplated by Affirmer's express Statement of Purpose.
|
|
84
|
+
|
|
85
|
+
3. Public License Fallback. Should any part of the Waiver for any reason
|
|
86
|
+
be judged legally invalid or ineffective under applicable law, then the
|
|
87
|
+
Waiver shall be preserved to the maximum extent permitted taking into
|
|
88
|
+
account Affirmer's express Statement of Purpose. In addition, to the
|
|
89
|
+
extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
90
|
+
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
91
|
+
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
92
|
+
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
93
|
+
maximum duration provided by applicable law or treaty (including future
|
|
94
|
+
time extensions), (iii) in any current or future medium and for any number
|
|
95
|
+
of copies, and (iv) for any purpose whatsoever, including without
|
|
96
|
+
limitation commercial, advertising or promotional purposes (the
|
|
97
|
+
"License"). The License shall be deemed effective as of the date CC0 was
|
|
98
|
+
applied by Affirmer to the Work. Should any part of the License for any
|
|
99
|
+
reason be judged legally invalid or ineffective under applicable law, such
|
|
100
|
+
partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
101
|
+
of the License, and in such case Affirmer hereby affirms that he or she
|
|
102
|
+
will not (i) exercise any of his or her remaining Copyright and Related
|
|
103
|
+
Rights in the Work or (ii) assert any associated claims and causes of
|
|
104
|
+
action with respect to the Work, in either case contrary to Affirmer's
|
|
105
|
+
express Statement of Purpose.
|
|
106
|
+
|
|
107
|
+
4. Limitations and Disclaimers.
|
|
108
|
+
|
|
109
|
+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
110
|
+
surrendered, licensed or otherwise affected by this document.
|
|
111
|
+
b. Affirmer offers the Work as-is and makes no representations or
|
|
112
|
+
warranties of any kind concerning the Work, express, implied,
|
|
113
|
+
statutory or otherwise, including without limitation warranties of
|
|
114
|
+
title, merchantability, fitness for a particular purpose, non
|
|
115
|
+
infringement, or the absence of latent or other defects, accuracy, or
|
|
116
|
+
the present or absence of errors, whether or not discoverable, all to
|
|
117
|
+
the greatest extent permissible under applicable law.
|
|
118
|
+
c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
119
|
+
that may apply to the Work or any use thereof, including without
|
|
120
|
+
limitation any person's Copyright and Related Rights in the Work.
|
|
121
|
+
Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
122
|
+
consents, permissions or other rights required for any use of the
|
|
123
|
+
Work.
|
|
124
|
+
d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
125
|
+
party to this document and has no duty or obligation with respect to
|
|
126
|
+
this CC0 or use of the Work.
|
|
127
|
+
|
|
128
|
+
Project-URL: Homepage, https://github.com/noaa-ocs-modeling/OCSTrack
|
|
129
|
+
Project-URL: Repository, https://github.com/noaa-ocs-modeling/OCSTrack
|
|
130
|
+
Requires-Python: >=3.10
|
|
131
|
+
Description-Content-Type: text/markdown
|
|
132
|
+
License-File: LICENSE.txt
|
|
133
|
+
Requires-Dist: numpy
|
|
134
|
+
Requires-Dist: xarray
|
|
135
|
+
Requires-Dist: scipy
|
|
136
|
+
Requires-Dist: tqdm
|
|
137
|
+
Requires-Dist: requests
|
|
138
|
+
Requires-Dist: netcdf4
|
|
139
|
+
Requires-Dist: h5netcdf
|
|
140
|
+
Requires-Dist: dask
|
|
141
|
+
Provides-Extra: dev
|
|
142
|
+
Requires-Dist: pytest>=6.0; extra == "dev"
|
|
143
|
+
Requires-Dist: pylint; extra == "dev"
|
|
144
|
+
Dynamic: license-file
|
|
145
|
+
|
|
146
|
+
# OCSTrack: Ocean-Model-Data Collocation Tools
|
|
147
|
+
|
|
148
|
+
[](https://github.com/noaa-ocs-modeling/OCSTrack/actions/workflows/lint.yml)
|
|
149
|
+
[](https://badge.fury.io/py/ocstrack)
|
|
150
|
+
[](https://codecov.io/gh/noaa-ocs-modeling/OCSTrack)
|
|
151
|
+
[](https://github.com/noaa-ocs-modeling/OCSTrack/actions/workflows/lint.yml)
|
|
152
|
+
[](http://creativecommons.org/publicdomain/zero/1.0/)
|
|
153
|
+
|
|
154
|
+
**OCSTrack** is an object-oriented Python package for the along-track collocation of satellite (2D) and Argo Float (3D) data with ocean circulation and wave model outputs. It simplifies the process of aligning diverse datasets, making it easier to compare and validate model simulations against observational data.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Key Features
|
|
159
|
+
|
|
160
|
+
- **Automated Data Fetching**: Downloads satellite altimetry and Argo float data from public repositories.
|
|
161
|
+
- **Model Support**: Natively handles outputs from SCHISM, ADCIRC, and SWAN models.
|
|
162
|
+
- **Flexible Collocation**: Performs temporal and spatial collocation for both 2D surface tracks and 3D profiles.
|
|
163
|
+
- **Efficient & Scalable**: Uses `xarray` and `dask` for efficient, out-of-core computations on large datasets.
|
|
164
|
+
- **Customizable**: Object-oriented design makes it easy to extend support for new models or observational data types.
|
|
165
|
+
|
|
166
|
+
## Installation
|
|
167
|
+
|
|
168
|
+
You can install OCSTrack directly from PyPI:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
pip install ocstrack
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
To install the latest development version directly from this repository:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
pip install git+https://github.com/noaa-ocs-modeling/OCSTrack.git
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Quick Start
|
|
181
|
+
|
|
182
|
+
Here is a minimal example of how to collocate satellite altimetry data with a SCHISM model run.
|
|
183
|
+
|
|
184
|
+
```python
|
|
185
|
+
from ocstrack import Collocate
|
|
186
|
+
from ocstrack.Model import SCHISM
|
|
187
|
+
from ocstrack.Observation import Satellite
|
|
188
|
+
|
|
189
|
+
# 1. Define time range and region of interest
|
|
190
|
+
start_date = '2021-05-01'
|
|
191
|
+
end_date = '2021-05-05'
|
|
192
|
+
bbox = [-76, 34, -72, 38] # [lon_min, lat_min, lon_max, lat_max]
|
|
193
|
+
|
|
194
|
+
# 2. Initialize the Model object
|
|
195
|
+
# This assumes a SCHISM run directory with standard outputs
|
|
196
|
+
schism_run_dir = '/path/to/your/schism/run/'
|
|
197
|
+
model = SCHISM(schism_run_dir, start_date=start_date, end_date=end_date)
|
|
198
|
+
|
|
199
|
+
# 3. Initialize the Observation object
|
|
200
|
+
sat_name = 'sentinel-3a' # Example satellite
|
|
201
|
+
observation = Satellite(sat_name, start_date=start_date, end_date=end_date, bbox=bbox)
|
|
202
|
+
|
|
203
|
+
# 4. Create a Collocation object and run the analysis
|
|
204
|
+
collocator = Collocate(model, observation)
|
|
205
|
+
collocated_dataset = collocator.run(output_path='collocated_data.nc')
|
|
206
|
+
|
|
207
|
+
print("Collocation complete!")
|
|
208
|
+
print(collocated_dataset)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## Documentation
|
|
212
|
+
|
|
213
|
+
For more detailed examples and the full API reference, please see our documentation website:
|
|
214
|
+
|
|
215
|
+
[**https://noaa-ocs-modeling.github.io/OCSTrack/**](https://noaa-ocs-modeling.github.io/OCSTrack/)
|
|
216
|
+
|
|
217
|
+
## Contributing
|
|
218
|
+
|
|
219
|
+
We welcome contributions! If you have ideas for new features, find a bug, or would like to improve the documentation, please open an issue or submit a pull request.
|
|
220
|
+
|
|
221
|
+
## License
|
|
222
|
+
|
|
223
|
+
This project is licensed under the terms of the CC0 1.0 Universal license. See the `LICENSE.txt` file for details.
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
#### Disclaimer
|
|
229
|
+
This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.
|
|
230
|
+
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.2.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 2,
|
|
21
|
+
__version__ = version = '0.2.2.dev0'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 2, 2, 'dev0')
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g704866691'
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ocstrack
|
|
3
|
+
Version: 0.2.2.dev0
|
|
4
|
+
Summary: Satellite data download, crop, and collocation with model outputs
|
|
5
|
+
Author-email: Felicio Cassalho <felicio.cassalho@noaa.gov>
|
|
6
|
+
License: Creative Commons Legal Code
|
|
7
|
+
|
|
8
|
+
CC0 1.0 Universal
|
|
9
|
+
|
|
10
|
+
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
11
|
+
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
12
|
+
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
13
|
+
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
14
|
+
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
15
|
+
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
16
|
+
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
17
|
+
HEREUNDER.
|
|
18
|
+
|
|
19
|
+
Statement of Purpose
|
|
20
|
+
|
|
21
|
+
The laws of most jurisdictions throughout the world automatically confer
|
|
22
|
+
exclusive Copyright and Related Rights (defined below) upon the creator
|
|
23
|
+
and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
24
|
+
authorship and/or a database (each, a "Work").
|
|
25
|
+
|
|
26
|
+
Certain owners wish to permanently relinquish those rights to a Work for
|
|
27
|
+
the purpose of contributing to a commons of creative, cultural and
|
|
28
|
+
scientific works ("Commons") that the public can reliably and without fear
|
|
29
|
+
of later claims of infringement build upon, modify, incorporate in other
|
|
30
|
+
works, reuse and redistribute as freely as possible in any form whatsoever
|
|
31
|
+
and for any purposes, including without limitation commercial purposes.
|
|
32
|
+
These owners may contribute to the Commons to promote the ideal of a free
|
|
33
|
+
culture and the further production of creative, cultural and scientific
|
|
34
|
+
works, or to gain reputation or greater distribution for their Work in
|
|
35
|
+
part through the use and efforts of others.
|
|
36
|
+
|
|
37
|
+
For these and/or other purposes and motivations, and without any
|
|
38
|
+
expectation of additional consideration or compensation, the person
|
|
39
|
+
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
40
|
+
is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
41
|
+
elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
42
|
+
terms, with knowledge of his or her Copyright and Related Rights in the
|
|
43
|
+
Work and the meaning and intended legal effect of CC0 on those rights.
|
|
44
|
+
|
|
45
|
+
1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
46
|
+
protected by copyright and related or neighboring rights ("Copyright and
|
|
47
|
+
Related Rights"). Copyright and Related Rights include, but are not
|
|
48
|
+
limited to, the following:
|
|
49
|
+
|
|
50
|
+
i. the right to reproduce, adapt, distribute, perform, display,
|
|
51
|
+
communicate, and translate a Work;
|
|
52
|
+
ii. moral rights retained by the original author(s) and/or performer(s);
|
|
53
|
+
iii. publicity and privacy rights pertaining to a person's image or
|
|
54
|
+
likeness depicted in a Work;
|
|
55
|
+
iv. rights protecting against unfair competition in regards to a Work,
|
|
56
|
+
subject to the limitations in paragraph 4(a), below;
|
|
57
|
+
v. rights protecting the extraction, dissemination, use and reuse of data
|
|
58
|
+
in a Work;
|
|
59
|
+
vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
60
|
+
European Parliament and of the Council of 11 March 1996 on the legal
|
|
61
|
+
protection of databases, and under any national implementation
|
|
62
|
+
thereof, including any amended or successor version of such
|
|
63
|
+
directive); and
|
|
64
|
+
vii. other similar, equivalent or corresponding rights throughout the
|
|
65
|
+
world based on applicable law or treaty, and any national
|
|
66
|
+
implementations thereof.
|
|
67
|
+
|
|
68
|
+
2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
69
|
+
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
70
|
+
irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
71
|
+
Affirmer's Copyright and Related Rights and associated claims and causes
|
|
72
|
+
of action, whether now known or unknown (including existing as well as
|
|
73
|
+
future claims and causes of action), in the Work (i) in all territories
|
|
74
|
+
worldwide, (ii) for the maximum duration provided by applicable law or
|
|
75
|
+
treaty (including future time extensions), (iii) in any current or future
|
|
76
|
+
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
77
|
+
including without limitation commercial, advertising or promotional
|
|
78
|
+
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
79
|
+
member of the public at large and to the detriment of Affirmer's heirs and
|
|
80
|
+
successors, fully intending that such Waiver shall not be subject to
|
|
81
|
+
revocation, rescission, cancellation, termination, or any other legal or
|
|
82
|
+
equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
83
|
+
as contemplated by Affirmer's express Statement of Purpose.
|
|
84
|
+
|
|
85
|
+
3. Public License Fallback. Should any part of the Waiver for any reason
|
|
86
|
+
be judged legally invalid or ineffective under applicable law, then the
|
|
87
|
+
Waiver shall be preserved to the maximum extent permitted taking into
|
|
88
|
+
account Affirmer's express Statement of Purpose. In addition, to the
|
|
89
|
+
extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
90
|
+
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
91
|
+
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
92
|
+
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
93
|
+
maximum duration provided by applicable law or treaty (including future
|
|
94
|
+
time extensions), (iii) in any current or future medium and for any number
|
|
95
|
+
of copies, and (iv) for any purpose whatsoever, including without
|
|
96
|
+
limitation commercial, advertising or promotional purposes (the
|
|
97
|
+
"License"). The License shall be deemed effective as of the date CC0 was
|
|
98
|
+
applied by Affirmer to the Work. Should any part of the License for any
|
|
99
|
+
reason be judged legally invalid or ineffective under applicable law, such
|
|
100
|
+
partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
101
|
+
of the License, and in such case Affirmer hereby affirms that he or she
|
|
102
|
+
will not (i) exercise any of his or her remaining Copyright and Related
|
|
103
|
+
Rights in the Work or (ii) assert any associated claims and causes of
|
|
104
|
+
action with respect to the Work, in either case contrary to Affirmer's
|
|
105
|
+
express Statement of Purpose.
|
|
106
|
+
|
|
107
|
+
4. Limitations and Disclaimers.
|
|
108
|
+
|
|
109
|
+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
110
|
+
surrendered, licensed or otherwise affected by this document.
|
|
111
|
+
b. Affirmer offers the Work as-is and makes no representations or
|
|
112
|
+
warranties of any kind concerning the Work, express, implied,
|
|
113
|
+
statutory or otherwise, including without limitation warranties of
|
|
114
|
+
title, merchantability, fitness for a particular purpose, non
|
|
115
|
+
infringement, or the absence of latent or other defects, accuracy, or
|
|
116
|
+
the present or absence of errors, whether or not discoverable, all to
|
|
117
|
+
the greatest extent permissible under applicable law.
|
|
118
|
+
c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
119
|
+
that may apply to the Work or any use thereof, including without
|
|
120
|
+
limitation any person's Copyright and Related Rights in the Work.
|
|
121
|
+
Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
122
|
+
consents, permissions or other rights required for any use of the
|
|
123
|
+
Work.
|
|
124
|
+
d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
125
|
+
party to this document and has no duty or obligation with respect to
|
|
126
|
+
this CC0 or use of the Work.
|
|
127
|
+
|
|
128
|
+
Project-URL: Homepage, https://github.com/noaa-ocs-modeling/OCSTrack
|
|
129
|
+
Project-URL: Repository, https://github.com/noaa-ocs-modeling/OCSTrack
|
|
130
|
+
Requires-Python: >=3.10
|
|
131
|
+
Description-Content-Type: text/markdown
|
|
132
|
+
License-File: LICENSE.txt
|
|
133
|
+
Requires-Dist: numpy
|
|
134
|
+
Requires-Dist: xarray
|
|
135
|
+
Requires-Dist: scipy
|
|
136
|
+
Requires-Dist: tqdm
|
|
137
|
+
Requires-Dist: requests
|
|
138
|
+
Requires-Dist: netcdf4
|
|
139
|
+
Requires-Dist: h5netcdf
|
|
140
|
+
Requires-Dist: dask
|
|
141
|
+
Provides-Extra: dev
|
|
142
|
+
Requires-Dist: pytest>=6.0; extra == "dev"
|
|
143
|
+
Requires-Dist: pylint; extra == "dev"
|
|
144
|
+
Dynamic: license-file
|
|
145
|
+
|
|
146
|
+
# OCSTrack: Ocean-Model-Data Collocation Tools
|
|
147
|
+
|
|
148
|
+
[](https://github.com/noaa-ocs-modeling/OCSTrack/actions/workflows/lint.yml)
|
|
149
|
+
[](https://badge.fury.io/py/ocstrack)
|
|
150
|
+
[](https://codecov.io/gh/noaa-ocs-modeling/OCSTrack)
|
|
151
|
+
[](https://github.com/noaa-ocs-modeling/OCSTrack/actions/workflows/lint.yml)
|
|
152
|
+
[](http://creativecommons.org/publicdomain/zero/1.0/)
|
|
153
|
+
|
|
154
|
+
**OCSTrack** is an object-oriented Python package for the along-track collocation of satellite (2D) and Argo Float (3D) data with ocean circulation and wave model outputs. It simplifies the process of aligning diverse datasets, making it easier to compare and validate model simulations against observational data.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Key Features
|
|
159
|
+
|
|
160
|
+
- **Automated Data Fetching**: Downloads satellite altimetry and Argo float data from public repositories.
|
|
161
|
+
- **Model Support**: Natively handles outputs from SCHISM, ADCIRC, and SWAN models.
|
|
162
|
+
- **Flexible Collocation**: Performs temporal and spatial collocation for both 2D surface tracks and 3D profiles.
|
|
163
|
+
- **Efficient & Scalable**: Uses `xarray` and `dask` for efficient, out-of-core computations on large datasets.
|
|
164
|
+
- **Customizable**: Object-oriented design makes it easy to extend support for new models or observational data types.
|
|
165
|
+
|
|
166
|
+
## Installation
|
|
167
|
+
|
|
168
|
+
You can install OCSTrack directly from PyPI:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
pip install ocstrack
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
To install the latest development version directly from this repository:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
pip install git+https://github.com/noaa-ocs-modeling/OCSTrack.git
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Quick Start
|
|
181
|
+
|
|
182
|
+
Here is a minimal example of how to collocate satellite altimetry data with a SCHISM model run.
|
|
183
|
+
|
|
184
|
+
```python
|
|
185
|
+
from ocstrack import Collocate
|
|
186
|
+
from ocstrack.Model import SCHISM
|
|
187
|
+
from ocstrack.Observation import Satellite
|
|
188
|
+
|
|
189
|
+
# 1. Define time range and region of interest
|
|
190
|
+
start_date = '2021-05-01'
|
|
191
|
+
end_date = '2021-05-05'
|
|
192
|
+
bbox = [-76, 34, -72, 38] # [lon_min, lat_min, lon_max, lat_max]
|
|
193
|
+
|
|
194
|
+
# 2. Initialize the Model object
|
|
195
|
+
# This assumes a SCHISM run directory with standard outputs
|
|
196
|
+
schism_run_dir = '/path/to/your/schism/run/'
|
|
197
|
+
model = SCHISM(schism_run_dir, start_date=start_date, end_date=end_date)
|
|
198
|
+
|
|
199
|
+
# 3. Initialize the Observation object
|
|
200
|
+
sat_name = 'sentinel-3a' # Example satellite
|
|
201
|
+
observation = Satellite(sat_name, start_date=start_date, end_date=end_date, bbox=bbox)
|
|
202
|
+
|
|
203
|
+
# 4. Create a Collocation object and run the analysis
|
|
204
|
+
collocator = Collocate(model, observation)
|
|
205
|
+
collocated_dataset = collocator.run(output_path='collocated_data.nc')
|
|
206
|
+
|
|
207
|
+
print("Collocation complete!")
|
|
208
|
+
print(collocated_dataset)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## Documentation
|
|
212
|
+
|
|
213
|
+
For more detailed examples and the full API reference, please see our documentation website:
|
|
214
|
+
|
|
215
|
+
[**https://noaa-ocs-modeling.github.io/OCSTrack/**](https://noaa-ocs-modeling.github.io/OCSTrack/)
|
|
216
|
+
|
|
217
|
+
## Contributing
|
|
218
|
+
|
|
219
|
+
We welcome contributions! If you have ideas for new features, find a bug, or would like to improve the documentation, please open an issue or submit a pull request.
|
|
220
|
+
|
|
221
|
+
## License
|
|
222
|
+
|
|
223
|
+
This project is licensed under the terms of the CC0 1.0 Universal license. See the `LICENSE.txt` file for details.
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
#### Disclaimer
|
|
229
|
+
This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.
|
|
230
|
+
|
|
@@ -11,7 +11,7 @@ authors = [
|
|
|
11
11
|
]
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
requires-python = ">=3.10"
|
|
14
|
-
license = {
|
|
14
|
+
license = { file = "LICENSE.txt" }
|
|
15
15
|
dependencies = [
|
|
16
16
|
"numpy",
|
|
17
17
|
"xarray",
|
|
@@ -35,4 +35,4 @@ dev = [
|
|
|
35
35
|
|
|
36
36
|
[tool.setuptools_scm]
|
|
37
37
|
write_to = "ocstrack/_version.py"
|
|
38
|
-
local_scheme = "no-local-version"
|
|
38
|
+
local_scheme = "no-local-version"
|
ocstrack-0.2.1.dev0/PKG-INFO
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: ocstrack
|
|
3
|
-
Version: 0.2.1.dev0
|
|
4
|
-
Summary: Satellite data download, crop, and collocation with model outputs
|
|
5
|
-
Author-email: Felicio Cassalho <felicio.cassalho@noaa.gov>
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/noaa-ocs-modeling/OCSTrack
|
|
8
|
-
Project-URL: Repository, https://github.com/noaa-ocs-modeling/OCSTrack
|
|
9
|
-
Requires-Python: >=3.10
|
|
10
|
-
Description-Content-Type: text/markdown
|
|
11
|
-
License-File: LICENSE.txt
|
|
12
|
-
Requires-Dist: numpy
|
|
13
|
-
Requires-Dist: xarray
|
|
14
|
-
Requires-Dist: scipy
|
|
15
|
-
Requires-Dist: tqdm
|
|
16
|
-
Requires-Dist: requests
|
|
17
|
-
Requires-Dist: netcdf4
|
|
18
|
-
Requires-Dist: h5netcdf
|
|
19
|
-
Requires-Dist: dask
|
|
20
|
-
Provides-Extra: dev
|
|
21
|
-
Requires-Dist: pytest>=6.0; extra == "dev"
|
|
22
|
-
Requires-Dist: pylint; extra == "dev"
|
|
23
|
-
Dynamic: license-file
|
|
24
|
-
|
|
25
|
-
# OCSTrack: Ocean-Model-Data Collocation Tools
|
|
26
|
-
|
|
27
|
-
[](https://github.com/noaa-ocs-modeling/OCSTrack/actions/workflows/lint.yml)
|
|
28
|
-
[](https://badge.fury.io/py/ocstrack)
|
|
29
|
-
[](https://codecov.io/gh/noaa-ocs-modeling/OCSTrack)
|
|
30
|
-
[](https://github.com/noaa-ocs-modeling/OCSTrack/actions/workflows/lint.yml)
|
|
31
|
-
[](http://creativecommons.org/publicdomain/zero/1.0/)
|
|
32
|
-
|
|
33
|
-
**OCSTrack** is an object-oriented Python package for the along-track collocation of satellite (2D) and Argo Float (3D) data with ocean circulation and wave model outputs. It simplifies the process of aligning diverse datasets, making it easier to compare and validate model simulations against observational data.
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## Key Features
|
|
38
|
-
|
|
39
|
-
- **Automated Data Fetching**: Downloads satellite altimetry and Argo float data from public repositories.
|
|
40
|
-
- **Model Support**: Natively handles outputs from SCHISM, ADCIRC, and SWAN models.
|
|
41
|
-
- **Flexible Collocation**: Performs temporal and spatial collocation for both 2D surface tracks and 3D profiles.
|
|
42
|
-
- **Efficient & Scalable**: Uses `xarray` and `dask` for efficient, out-of-core computations on large datasets.
|
|
43
|
-
- **Customizable**: Object-oriented design makes it easy to extend support for new models or observational data types.
|
|
44
|
-
|
|
45
|
-
## Installation
|
|
46
|
-
|
|
47
|
-
You can install OCSTrack directly from PyPI:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
pip install ocstrack
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
To install the latest development version directly from this repository:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
pip install git+https://github.com/noaa-ocs-modeling/OCSTrack.git
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Quick Start
|
|
60
|
-
|
|
61
|
-
Here is a minimal example of how to collocate satellite altimetry data with a SCHISM model run.
|
|
62
|
-
|
|
63
|
-
```python
|
|
64
|
-
from ocstrack import Collocate
|
|
65
|
-
from ocstrack.Model import SCHISM
|
|
66
|
-
from ocstrack.Observation import Satellite
|
|
67
|
-
|
|
68
|
-
# 1. Define time range and region of interest
|
|
69
|
-
start_date = '2021-05-01'
|
|
70
|
-
end_date = '2021-05-05'
|
|
71
|
-
bbox = [-76, 34, -72, 38] # [lon_min, lat_min, lon_max, lat_max]
|
|
72
|
-
|
|
73
|
-
# 2. Initialize the Model object
|
|
74
|
-
# This assumes a SCHISM run directory with standard outputs
|
|
75
|
-
schism_run_dir = '/path/to/your/schism/run/'
|
|
76
|
-
model = SCHISM(schism_run_dir, start_date=start_date, end_date=end_date)
|
|
77
|
-
|
|
78
|
-
# 3. Initialize the Observation object
|
|
79
|
-
sat_name = 'sentinel-3a' # Example satellite
|
|
80
|
-
observation = Satellite(sat_name, start_date=start_date, end_date=end_date, bbox=bbox)
|
|
81
|
-
|
|
82
|
-
# 4. Create a Collocation object and run the analysis
|
|
83
|
-
collocator = Collocate(model, observation)
|
|
84
|
-
collocated_dataset = collocator.run(output_path='collocated_data.nc')
|
|
85
|
-
|
|
86
|
-
print("Collocation complete!")
|
|
87
|
-
print(collocated_dataset)
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
## Documentation
|
|
91
|
-
|
|
92
|
-
For more detailed examples and the full API reference, please see our documentation website:
|
|
93
|
-
|
|
94
|
-
[**https://noaa-ocs-modeling.github.io/OCSTrack/**](https://noaa-ocs-modeling.github.io/OCSTrack/)
|
|
95
|
-
|
|
96
|
-
## Contributing
|
|
97
|
-
|
|
98
|
-
We welcome contributions! If you have ideas for new features, find a bug, or would like to improve the documentation, please open an issue or submit a pull request.
|
|
99
|
-
|
|
100
|
-
## License
|
|
101
|
-
|
|
102
|
-
This project is licensed under the terms of the CC0 1.0 Universal license. See the `LICENSE.txt` file for details.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
#### Disclaimer
|
|
108
|
-
This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.
|
|
109
|
-
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: ocstrack
|
|
3
|
-
Version: 0.2.1.dev0
|
|
4
|
-
Summary: Satellite data download, crop, and collocation with model outputs
|
|
5
|
-
Author-email: Felicio Cassalho <felicio.cassalho@noaa.gov>
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/noaa-ocs-modeling/OCSTrack
|
|
8
|
-
Project-URL: Repository, https://github.com/noaa-ocs-modeling/OCSTrack
|
|
9
|
-
Requires-Python: >=3.10
|
|
10
|
-
Description-Content-Type: text/markdown
|
|
11
|
-
License-File: LICENSE.txt
|
|
12
|
-
Requires-Dist: numpy
|
|
13
|
-
Requires-Dist: xarray
|
|
14
|
-
Requires-Dist: scipy
|
|
15
|
-
Requires-Dist: tqdm
|
|
16
|
-
Requires-Dist: requests
|
|
17
|
-
Requires-Dist: netcdf4
|
|
18
|
-
Requires-Dist: h5netcdf
|
|
19
|
-
Requires-Dist: dask
|
|
20
|
-
Provides-Extra: dev
|
|
21
|
-
Requires-Dist: pytest>=6.0; extra == "dev"
|
|
22
|
-
Requires-Dist: pylint; extra == "dev"
|
|
23
|
-
Dynamic: license-file
|
|
24
|
-
|
|
25
|
-
# OCSTrack: Ocean-Model-Data Collocation Tools
|
|
26
|
-
|
|
27
|
-
[](https://github.com/noaa-ocs-modeling/OCSTrack/actions/workflows/lint.yml)
|
|
28
|
-
[](https://badge.fury.io/py/ocstrack)
|
|
29
|
-
[](https://codecov.io/gh/noaa-ocs-modeling/OCSTrack)
|
|
30
|
-
[](https://github.com/noaa-ocs-modeling/OCSTrack/actions/workflows/lint.yml)
|
|
31
|
-
[](http://creativecommons.org/publicdomain/zero/1.0/)
|
|
32
|
-
|
|
33
|
-
**OCSTrack** is an object-oriented Python package for the along-track collocation of satellite (2D) and Argo Float (3D) data with ocean circulation and wave model outputs. It simplifies the process of aligning diverse datasets, making it easier to compare and validate model simulations against observational data.
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## Key Features
|
|
38
|
-
|
|
39
|
-
- **Automated Data Fetching**: Downloads satellite altimetry and Argo float data from public repositories.
|
|
40
|
-
- **Model Support**: Natively handles outputs from SCHISM, ADCIRC, and SWAN models.
|
|
41
|
-
- **Flexible Collocation**: Performs temporal and spatial collocation for both 2D surface tracks and 3D profiles.
|
|
42
|
-
- **Efficient & Scalable**: Uses `xarray` and `dask` for efficient, out-of-core computations on large datasets.
|
|
43
|
-
- **Customizable**: Object-oriented design makes it easy to extend support for new models or observational data types.
|
|
44
|
-
|
|
45
|
-
## Installation
|
|
46
|
-
|
|
47
|
-
You can install OCSTrack directly from PyPI:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
pip install ocstrack
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
To install the latest development version directly from this repository:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
pip install git+https://github.com/noaa-ocs-modeling/OCSTrack.git
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Quick Start
|
|
60
|
-
|
|
61
|
-
Here is a minimal example of how to collocate satellite altimetry data with a SCHISM model run.
|
|
62
|
-
|
|
63
|
-
```python
|
|
64
|
-
from ocstrack import Collocate
|
|
65
|
-
from ocstrack.Model import SCHISM
|
|
66
|
-
from ocstrack.Observation import Satellite
|
|
67
|
-
|
|
68
|
-
# 1. Define time range and region of interest
|
|
69
|
-
start_date = '2021-05-01'
|
|
70
|
-
end_date = '2021-05-05'
|
|
71
|
-
bbox = [-76, 34, -72, 38] # [lon_min, lat_min, lon_max, lat_max]
|
|
72
|
-
|
|
73
|
-
# 2. Initialize the Model object
|
|
74
|
-
# This assumes a SCHISM run directory with standard outputs
|
|
75
|
-
schism_run_dir = '/path/to/your/schism/run/'
|
|
76
|
-
model = SCHISM(schism_run_dir, start_date=start_date, end_date=end_date)
|
|
77
|
-
|
|
78
|
-
# 3. Initialize the Observation object
|
|
79
|
-
sat_name = 'sentinel-3a' # Example satellite
|
|
80
|
-
observation = Satellite(sat_name, start_date=start_date, end_date=end_date, bbox=bbox)
|
|
81
|
-
|
|
82
|
-
# 4. Create a Collocation object and run the analysis
|
|
83
|
-
collocator = Collocate(model, observation)
|
|
84
|
-
collocated_dataset = collocator.run(output_path='collocated_data.nc')
|
|
85
|
-
|
|
86
|
-
print("Collocation complete!")
|
|
87
|
-
print(collocated_dataset)
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
## Documentation
|
|
91
|
-
|
|
92
|
-
For more detailed examples and the full API reference, please see our documentation website:
|
|
93
|
-
|
|
94
|
-
[**https://noaa-ocs-modeling.github.io/OCSTrack/**](https://noaa-ocs-modeling.github.io/OCSTrack/)
|
|
95
|
-
|
|
96
|
-
## Contributing
|
|
97
|
-
|
|
98
|
-
We welcome contributions! If you have ideas for new features, find a bug, or would like to improve the documentation, please open an issue or submit a pull request.
|
|
99
|
-
|
|
100
|
-
## License
|
|
101
|
-
|
|
102
|
-
This project is licensed under the terms of the CC0 1.0 Universal license. See the `LICENSE.txt` file for details.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
#### Disclaimer
|
|
108
|
-
This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.
|
|
109
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|