Skip to content

Commit 1757552

Browse files
committed
update for v207
1 parent 2882afb commit 1757552

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors:
55
given-names: "Danilo A"
66
orcid: "https://orcid.org/0000-0000-0000-0000"
77
title: "Pywinter"
8-
version: 2.0.6
8+
version: 2.0.7
99
date-released: 2021-12-19
1010
url: "https://github.com/dniloash/Pywinter"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pywinter"
3-
version = "2.0.6"
3+
version = "2.0.7"
44
description = "Read and Create MPAS/WRF-WPS intermediate files"
55
authors = [
66
{ name = "Danilo A Suarez H", email = "dniloash@gmail.com" },

rtdoc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
author = "dniloash"
2525

2626
# The full version, including alpha/beta/rc tags
27-
release = "2.0.6"
27+
release = "2.0.7"
2828

2929

3030
# -- General configuration ---------------------------------------------------

rtdoc/source/index.rst

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pywinter
77
====================================
88
Python WPS Intermediate Files
99

10-
Pywinter is a Python3 library designed for handling files in MPAS/WRF-WPS intermediate file format. Usually you don't need to deal with the intermediate files by your own because that is the function of ungrib.exe, but sometimes you don't have meteorological data in GRIB format. Pywinter allows to read and create intermediate files by a simple way.
10+
Pywinter is a Python3 library designed for handling files in MPAS/WRF-WPS intermediate file format. Usually you don't need to deal with the intermediate files by your own because that is the function of ungrib.exe, but sometimes you don't have your meteorological data in GRIB format. Pywinter allows to read and create intermediate files by a simple way.
1111

1212

1313

@@ -250,6 +250,16 @@ Example
250250
winter_v10 = pyw.V2d('VV',u10m)
251251
252252
253+
It may also be useful to know that **PMLS** and **SST** have the default level 201300, but these variables allow you to specify the other level (200100). This can be important in some cases if you are using datasets from multiple sources:
254+
255+
256+
.. code-block:: python
257+
258+
winter_pmsl = pyw.V2d('PMSL',pmsl_var,lev='200100')
259+
winter_sst = pyw.V2d('SST',sst_var,lev='200100')
260+
261+
262+
253263
2D not avalaible name fields (create new 2d fields)
254264
-----------------------------------------------------
255265

@@ -269,7 +279,9 @@ The 2D fields listed in the Table are the most important, however exists more 2D
269279
winter_new = pyw.V2d('PMAXW',pmaxw,'Pressure at max wind level','Pa','200100')
270280
271281
272-
You must use 200100 for surface data and 201300 for sea level pressure data. Also it is very important to remember that all the fields you add must be in accordance with the information processed by metgrid.exe, you can get more information about this in the METGRID.TBL file or in the VTABLE files.
282+
You must use 200100 for surface data and 201300 for sea level pressure data. Also it is very important to remember that all the fields you add must be in accordance with the information processed by metgrid.exe, you can get more information about this in the METGRID.TBL file or in the VTABLE files.
283+
284+
273285

274286
3D non-isobaric Field (V3d)
275287
====================================
@@ -503,8 +515,8 @@ Final notes
503515

504516
Actually pywinter can't check if you write the file with all the necessary fields to run WRF, neither cannot check if your information is consistent, therefore is important you make sure the data is well before you create the files, and also double check the met_em files after metgrid.exe. You can get more information of how to create good files in the WRF User guide and WRF web tutorial, also you can check the intermediate files with WPS util programs:
505517

506-
- .../WRF/WPS/util/rd\_intermediate.exe: It reads fields into intermediate files and show them
507-
- .../WRF/WPS/util/int2nc.exe: it converts intermediate files to netCDF format.
518+
- .../WRF/WPS/util/**rd\_intermediate.exe**: It reads fields into intermediate files and show them
519+
- .../WRF/WPS/util/**int2nc.exe**: it converts intermediate files to netCDF format.
508520

509521

510522
Documentation file

src/pywinter/winter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def idvar(self):
431431
if len(self.lev) == 0:
432432
lev = "201300"
433433
else:
434-
lev = self.lev
434+
lev = "200100"
435435

436436
elif self.name == "SKINTEMP":
437437
nom = "Skin temperature"
@@ -479,7 +479,7 @@ def idvar(self):
479479
if len(self.lev) == 0:
480480
lev = "201300"
481481
else:
482-
lev = self.lev
482+
lev = "200100"
483483

484484
elif self.name == "SEAICE":
485485
nom = "Sea-ice-fraction"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)