Skip to content

Commit

Permalink
Merge pull request #40 from xylar/add_fill_value_flag
Browse files Browse the repository at this point in the history
Add flag to ncremap to always fill values from MPAS meshes
  • Loading branch information
xylar authored Feb 8, 2022
2 parents 81acb1e + f12b35a commit 6bc7628
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/versions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Documentation On GitHub
`v0.0.11`_ `0.0.11`_
`v0.0.12`_ `0.0.12`_
`v0.0.13`_ `0.0.13`_
`v0.0.14`_ `0.0.14`_
================ ===============

.. _`stable`: ../stable/index.html
Expand All @@ -24,6 +25,7 @@ Documentation On GitHub
.. _`v0.0.11`: ../0.0.11/index.html
.. _`v0.0.12`: ../0.0.12/index.html
.. _`v0.0.13`: ../0.0.13/index.html
.. _`v0.0.14`: ../0.0.14/index.html
.. _`master`: https://github.com/MPAS-Dev/pyremap/tree/master
.. _`0.0.6`: https://github.com/MPAS-Dev/pyremap/tree/0.0.6
.. _`0.0.7`: https://github.com/MPAS-Dev/pyremap/tree/0.0.7
Expand All @@ -33,3 +35,4 @@ Documentation On GitHub
.. _`0.0.11`: https://github.com/MPAS-Dev/pyremap/tree/0.0.11
.. _`0.0.12`: https://github.com/MPAS-Dev/pyremap/tree/0.0.12
.. _`0.0.13`: https://github.com/MPAS-Dev/pyremap/tree/0.0.13
.. _`0.0.14`: https://github.com/MPAS-Dev/pyremap/tree/0.0.14
2 changes: 1 addition & 1 deletion pyremap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

from pyremap.polar import get_polar_descriptor_from_file, get_polar_descriptor

__version_info__ = (0, 0, 13)
__version_info__ = (0, 0, 14)
__version__ = '.'.join(str(vi) for vi in __version_info__)
6 changes: 6 additions & 0 deletions pyremap/remapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,12 @@ def remap_file(self, inFileName, outFileName, variableList=None,
# and quits with an error
args.append('-C')

if renormalize is not None:
# we also want to make sure cells that receive no data are
# marked with fill values, even if the source MPAS data
# doesn't have a fill value
args.append('--add_fill_value')

if variableList is not None:
args.extend(['-v', ','.join(variableList)])

Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "pyremap" %}
{% set version = "0.0.13" %}
{% set version = "0.0.14" %}

package:
name: {{ name|lower }}
Expand Down

0 comments on commit 6bc7628

Please sign in to comment.