Charea Python Remake (pyarea)
About
charea is a program for creating standardized names for McIdas AREA files.
This repo contains a remake of the old charea program that was written in C.
Goals
The main goal of the remake is threefold:
- Document how charea works.
- Preserve 1-to-1 functionality in the remake.
- Enhance future maintainability of the remake.
Additional goals include improving upon the original charea.
The main goal has been achieved through extensive documentation in the Python source code, unit testing that verifies compatability, and using Python, which is known by more members of the SDS.
Additionally, the charea remake uses the McIdas SATANNOT file to load recent satellite definitions, but falls back to the pre-defined definitions from charea if it cannot be found.
Usage
Please note that Python >= 2.7 is required to run the charea remake.
$ ./charea --help
usage: charea [-h] [-m] [-g] file
positional arguments:
file an area file
options:
-h, --help show this help message and exit
-m include month name in output (e.g. Jan, Feb, ...)
-g use gregorian date fmt instead of julian
If you get the error env: python: No such file or directory
, you can run charea directly using a Python interpreter, e.g. python charea -h
.
Author
Original charea C code written by Douglas Ratcliff.
This remake was written by Max Drexler.
License
The charea remake is under the MIT license, see LICENSE for more information.