Skip to content

Commit

Permalink
v1.0.25 release
Browse files Browse the repository at this point in the history
  • Loading branch information
syedhamidali committed Sep 7, 2023
1 parent d52703d commit 6d6437d
Show file tree
Hide file tree
Showing 66 changed files with 1,948 additions and 1,586 deletions.
50 changes: 13 additions & 37 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,16 @@
# See: https://pre-commit.com/hooks.html
# Must put flake8 in separate group so 'black' is executed first
# WARNING: Make sure to keep flags in sync with ci/run-linter.sh
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: no-commit-to-branch
- id: double-quote-string-fixer
- id: check-docstring-first
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace

# apply after format() kwargs broken up into setters
# - repo: https://github.com/ambv/black
# rev: 19.10
# hooks:
# - id: black
# args: ['--line-length', '88', '--skip-string-normalization']

- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: isort
args: ['--line-width=88', '--multi-line=3', '--force-grid-wrap=0', '--trailing-comma']
exclude: '^docs/'

- repo: https://github.com/PyCQA/flake8
rev: 3.8.3
hooks:
- id: flake8
args: ['--max-line-length=88', '--ignore=W503,E402,E741']

# apply once this handles long tables better
# - repo: https://github.com/PyCQA/doc8
# rev: 0.8.1
# hooks:
# - id: doc8
# args: ['--max-line-length', '88', '--allow-long-titles']
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.286
hooks:
- id: ruff
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Citation

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5881692.svg)](https://doi.org/10.5281/zenodo.5574160)

Syed, H. A., Sayyed, I., Kalapureddy, M. C. R., & Grandhi, K. K. (2021). PyScanCf – The library for single sweep datasets of IMD weather radars. Zenodo.
Syed, H. A., Sayyed, I., Kalapureddy, M. C. R., & Grandhi, K. K. (2021). PyScanCf – The library for single sweep datasets of IMD weather radars. Zenodo.
[doi:10.5281/zenodo.5574160](https://doi.org/10.5281/zenodo.5574160).

### PyScanCf Tutorial on Youtube
Expand All @@ -52,21 +52,20 @@ Syed, H. A., Sayyed, I., Kalapureddy, M. C. R., & Grandhi, K. K. (2021). PyScanC
Import Library::

from pyscancf import pyscancf as pcf

Mention the data path::

inp = '/Users/rizvi/Downloads/goa16'

Convert data to cfradial format::

pcf.cfrad(inp,inp,True,'REF')
And you'll see the beautiful gridded data plot in your notebook,

And you'll see the beautiful gridded data plot in your notebook,
the figures will be saved in the directory from where you launched the notebook

![image](https://user-images.githubusercontent.com/35923822/179660426-e191bd08-d455-4ccc-96af-ea9cb14cebf5.png)

Detailed and efficient way to use this toolkit
-------
[Detailed Notebook](https://syedha.com/imd/IMD_radar_data_pyscancf.html)

225 changes: 225 additions & 0 deletions Untitled.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -925,4 +925,4 @@ div.math:hover a.headerlink {
#top-link {
display: none;
}
}
}
2 changes: 1 addition & 1 deletion _static/clipboard.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/copybutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,4 @@ var copyTargetText = (trigger) => {
})
}

runWhenDOMLoaded(addCopyButtonToCodeCells)
runWhenDOMLoaded(addCopyButtonToCodeCells)
2 changes: 1 addition & 1 deletion _static/documentation_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ var DOCUMENTATION_OPTIONS = {
NAVIGATION_WITH_KEYS: true,
SHOW_SEARCH_SUMMARY: true,
ENABLE_SEARCH_SHORTCUTS: false,
};
};
1 change: 0 additions & 1 deletion _static/language_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,3 @@ var Stemmer = function() {
return w;
}
}

2 changes: 1 addition & 1 deletion _static/pygments.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ html[data-theme="dark"] .highlight .vc { color: #ffa07a } /* Name.Variable.Class
html[data-theme="dark"] .highlight .vg { color: #ffa07a } /* Name.Variable.Global */
html[data-theme="dark"] .highlight .vi { color: #ffa07a } /* Name.Variable.Instance */
html[data-theme="dark"] .highlight .vm { color: #ffd900 } /* Name.Variable.Magic */
html[data-theme="dark"] .highlight .il { color: #ffd900 } /* Literal.Number.Integer.Long */
html[data-theme="dark"] .highlight .il { color: #ffd900 } /* Literal.Number.Integer.Long */
2 changes: 1 addition & 1 deletion _static/scripts/bootstrap.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/scripts/bootstrap.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/scripts/pydata-sphinx-theme.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _static/scripts/pydata-sphinx-theme.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/styles/bootstrap.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/styles/pydata-sphinx-theme.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/underscore.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/vendor/fontawesome/6.1.2/css/all.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/webpack-macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
<!-- Scripts loaded after <body> so the DOM is not blocked -->
<script src="{{ pathto('_static/scripts/bootstrap.js', 1) }}?digest=e353d410970836974a52"></script>
<script src="{{ pathto('_static/scripts/pydata-sphinx-theme.js', 1) }}?digest=e353d410970836974a52"></script>
{% endmacro %}
{% endmacro %}
23 changes: 17 additions & 6 deletions build/lib/pyscancf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,29 @@
.. currentmodule:: pyscancf
"""

from pyscancf.pyscancf import cfrad, get_grid
from pyscancf.maxcappi import plot_cappi
import os
import warnings as _warnings

from . import _version_ as _v
from .cmapmaker import register_colormap
from .maxcappi import plot_cappi
from .pyscancf import cfrad, get_grid

_warnings.filterwarnings("always", category=DeprecationWarning, module="pyscancf")

__version__ = _v.get_version()

citation_text = "## Cite PyScanCf:\n\n## Syed, H. A., Sayyed, I., Kalapureddy, M. C. R., & Grandhi, K. K. " \
"(2021). \n## PyScanCf – The library for single sweep datasets of IMD weather radars. " \
"\n## Zenodo. doi:10.5281/zenodo.5574160.\n"
citation_text = (
"## Cite PyScanCf:\n\n## Syed, H. A.,"
+ "Sayyed, I., Kalapureddy, M. C. R., & Grandhi, K. K."
+ "(2021). \n## PyScanCf – The library for "
+ "individual sweep datasets of IMD weather radars. "
+ "\n## Zenodo. doi:10.5281/zenodo.5574160.\n"
)
print(citation_text)

__all__ = [s for s in dir() if not s.startswith('_')]
# Get the directory where the __init__.py file is located
data_dir = os.path.dirname(__file__)
register_colormap(data_dir)

__all__ = [s for s in dir() if not s.startswith("_")]
Loading

0 comments on commit 6d6437d

Please sign in to comment.