Skip to content

Commit 92631c4

Browse files
authored
Merge branch 'main' into ao_update_precip_var
2 parents d56d373 + ebbc2fe commit 92631c4

File tree

5 files changed

+38
-7
lines changed

5 files changed

+38
-7
lines changed

.all-contributorsrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,24 @@
244244
"contributions": [
245245
"code"
246246
]
247+
},
248+
{
249+
"login": "zhangshixuan1987",
250+
"name": "Shixuan Zhang",
251+
"avatar_url": "https://avatars.githubusercontent.com/u/33647254?v=4",
252+
"profile": "https://github.com/zhangshixuan1987",
253+
"contributions": [
254+
"code"
255+
]
256+
},
257+
{
258+
"login": "kristinchang3",
259+
"name": "Kristin Chang",
260+
"avatar_url": "https://avatars.githubusercontent.com/u/143142064?v=4",
261+
"profile": "https://kristinchang.github.io/portfolio/",
262+
"contributions": [
263+
"code"
264+
]
247265
}
248266
],
249267
"contributorsPerLine": 7,

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ Release Notes and History
181181
[v1.1]: https://github.com/PCMDI/pcmdi_metrics/releases/tag/v1.1
182182
[v1.0]: https://github.com/PCMDI/pcmdi_metrics/releases/tag/v1.0
183183

184+
Current Core Team Members at PCMDI/LLNL
185+
---------------------------------------
186+
* Jiwoo Lee
187+
* Ana Ordonez
188+
* Peter Gleckler
189+
* Paul Ullrich
190+
* Bo Dong
191+
* Kristin Chang
192+
184193

185194
Contributors
186195
------------
@@ -221,7 +230,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
221230
</tr>
222231
<tr>
223232
<td align="center" valign="top" width="14.28%"><a href="https://sites.google.com/uw.edu/kimresearchgroup"><img src="https://scholar.googleusercontent.com/citations?view_op=view_photo&user=3xLjsIsAAAAJ&citpid=3?s=100" width="100px;" alt="Daehyun Kim"/><br /><sub><b>Daehyun Kim</b></sub></a><br /><a href="https://github.com/PCMDI/pcmdi_metrics/commits?author=" title="Code">💻</a> <a href="#research" title="Research">🔬</a></td>
224-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/bosup"><img src="https://avatars.githubusercontent.com/u/130708142?v=4?s=100" width="100px;" alt="Bo"/><br /><sub><b>Bo Dong</b></sub></a><br /><a href="https://github.com/PCMDI/pcmdi_metrics/commits?author=bosup" title="Code">💻</a></td>
233+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/bosup"><img src="https://avatars.githubusercontent.com/u/130708142?v=4?s=100" width="100px;" alt="Bo Dong"/><br /><sub><b>Bo Dong</b></sub></a><br /><a href="https://github.com/PCMDI/pcmdi_metrics/commits?author=bosup" title="Code">💻</a></td>
234+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/zhangshixuan1987"><img src="https://avatars.githubusercontent.com/u/33647254?v=4?s=100" width="100px;" alt="Shixuan Zhang"/><br /><sub><b>Shixuan Zhang</b></sub></a><br /><a href="https://github.com/PCMDI/pcmdi_metrics/commits?author=zhangshixuan1987" title="Code">💻</a></td>
235+
<td align="center" valign="top" width="14.28%"><a href="https://kristinchang.github.io/portfolio/"><img src="https://avatars.githubusercontent.com/u/143142064?v=4?s=100" width="100px;" alt="Kristin Chang"/><br /><sub><b>Kristin Chang</b></sub></a><br /><a href="https://github.com/PCMDI/pcmdi_metrics/commits?author=kristinchang3" title="Code">💻</a></td>
225236
</tr>
226237
</tbody>
227238
</table>

pcmdi_metrics/io/xcdat_openxml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def xcdat_open(
3939
# Open an xml file
4040
>>> ds = xcdat_open('mydata.xml')
4141
"""
42-
if isinstance(infile, list):
42+
if isinstance(infile, list) or "*" in infile:
4343
ds = xc.open_mfdataset(infile, data_var=data_var, decode_times=decode_times)
4444
else:
4545
if infile.split(".")[-1].lower() == "xml":

pcmdi_metrics/mean_climate/mean_climate_driver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@
167167
result_dict["Variable"] = dict()
168168
result_dict["Variable"]["id"] = varname
169169
if level is not None:
170-
result_dict["Variable"]["level"] = level * 100 # hPa to Pa
170+
result_dict["Variable"][
171+
"level"
172+
] = level # SZhang: should not "* 100" here # hPa to Pa
171173

172174
result_dict["References"] = dict()
173175

pcmdi_metrics/variability_mode/lib/lib_variability_mode.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def subset_time(
142142
eyear = int(eyear)
143143

144144
# First trimming
145-
time1 = f"{syear}-01-01 00:00:00"
146-
time2 = f"{eyear}-12-{eday} 23:59:59"
145+
time1 = f"{syear:04d}-01-01 00:00:00"
146+
time2 = f"{eyear:04d}-12-{eday:02d} 23:59:59"
147147
ds = select_subset(ds, time=(time1, time2))
148148

149149
# Check available time window and adjust again if needed
@@ -170,8 +170,8 @@ def subset_time(
170170

171171
# Second trimming
172172
if adjust_time_length:
173-
time1 = f"{data_syear}-01-01 00:00:00"
174-
time2 = f"{data_eyear}-12-{eday} 23:59:59"
173+
time1 = f"{data_syear:04d}-01-01 00:00:00"
174+
time2 = f"{data_eyear:04d}-12-{eday:02d} 23:59:59"
175175
ds = select_subset(ds, time=(time1, time2))
176176

177177
return ds

0 commit comments

Comments
 (0)