infoex-autowx.git
4 years agoMerge branch 'pylint' into develop
Alexander Vasarab [Thu, 2 Jul 2020 20:00:28 +0000 (13:00 -0700)]
Merge branch 'pylint' into develop

4 years agoOptionParser -> ArgumentParser
Alexander Vasarab [Thu, 2 Jul 2020 19:58:33 +0000 (12:58 -0700)]
OptionParser -> ArgumentParser

OptionParser is deprecated since Python 3.2.

4 years agoFix issues shown by pylint(1)
Alexander Vasarab [Thu, 2 Jul 2020 19:46:53 +0000 (12:46 -0700)]
Fix issues shown by pylint(1)

Here were the most common fixes:

- Lots of wrong hanging indentations (bad-continuation)
- Many logging-not-lazy warnings
- A few unnecessary-semicolon warnings :0)
- A few line-too-long warnings

A few warnings were suppressed globally (.pylintrc), and in particular,
in the mapping functions, several whitespace warnings were suppressed
locally.

4 years agoRemove default override for desired_data
Alexander Vasarab [Thu, 2 Jul 2020 19:28:48 +0000 (12:28 -0700)]
Remove default override for desired_data

We shouldn't be overriding anything implicitly, simply error out and
inform the user, and let them deal with it.

4 years agoMerge branch 'release-2.0.1' into develop
Alexander Vasarab [Thu, 2 Jul 2020 18:44:39 +0000 (11:44 -0700)]
Merge branch 'release-2.0.1' into develop

4 years agoVersion bump
Alexander Vasarab [Thu, 2 Jul 2020 18:41:52 +0000 (11:41 -0700)]
Version bump

4 years agoMerge branch 'restructure' into develop
Alexander Vasarab [Thu, 2 Jul 2020 18:37:22 +0000 (11:37 -0700)]
Merge branch 'restructure' into develop

4 years agoFree a few more routines from main ()
Alexander Vasarab [Thu, 2 Jul 2020 18:33:39 +0000 (11:33 -0700)]
Free a few more routines from main ()

4 years agoRename data -> station for clarity
Alexander Vasarab [Thu, 2 Jul 2020 18:24:26 +0000 (11:24 -0700)]
Rename data -> station for clarity

4 years agoBreak out data fetching operations into routines
Alexander Vasarab [Thu, 2 Jul 2020 18:20:11 +0000 (11:20 -0700)]
Break out data fetching operations into routines

4 years agoFirst big stab at better structuring
Alexander Vasarab [Thu, 2 Jul 2020 18:02:52 +0000 (11:02 -0700)]
First big stab at better structuring

- Key parts of the program get their own, distinct subroutines
- Struck version from opening docstring
- Remove unused OrderedDict import
- Capitalized 'LOG' global variable

4 years agoTouch up a few comments (typos, extraneous, etc.)
Alexander Vasarab [Wed, 1 Jul 2020 02:06:39 +0000 (19:06 -0700)]
Touch up a few comments (typos, extraneous, etc.)

4 years agoMerge branch 'mesowest' v2.0.0
Alexander Vasarab [Wed, 1 Jul 2020 01:43:09 +0000 (18:43 -0700)]
Merge branch 'mesowest'

4 years agoA few more README changes
Alexander Vasarab [Wed, 1 Jul 2020 01:40:49 +0000 (18:40 -0700)]
A few more README changes

4 years agoSmall tense fix
Alexander Vasarab [Wed, 1 Jul 2020 01:32:19 +0000 (18:32 -0700)]
Small tense fix

4 years agoDocument new --log-level switch
Alexander Vasarab [Wed, 1 Jul 2020 01:28:09 +0000 (18:28 -0700)]
Document new --log-level switch

4 years agoAdd support for log level option
Alexander Vasarab [Wed, 1 Jul 2020 01:24:32 +0000 (18:24 -0700)]
Add support for log level option

4 years agoImplement --version switch
Alexander Vasarab [Wed, 1 Jul 2020 01:07:52 +0000 (18:07 -0700)]
Implement --version switch

4 years agoList supported measurements directly in README
Alexander Vasarab [Wed, 1 Jul 2020 01:02:46 +0000 (18:02 -0700)]
List supported measurements directly in README

4 years agoSome work on units
Alexander Vasarab [Wed, 1 Jul 2020 00:56:08 +0000 (17:56 -0700)]
Some work on units

- If units are specified as metric, then make sure InfoEx sees the right
  unit as well
- Override units for NRCS to imperial, for now

4 years agoAdd 'future plans' to README
Alexander Vasarab [Wed, 1 Jul 2020 00:56:01 +0000 (17:56 -0700)]
Add 'future plans' to README

4 years agoFlesh out all available/supported measurements
Alexander Vasarab [Wed, 1 Jul 2020 00:55:41 +0000 (17:55 -0700)]
Flesh out all available/supported measurements

4 years agoMake header capitalizations consistent in README
Alexander Vasarab [Wed, 1 Jul 2020 00:53:19 +0000 (17:53 -0700)]
Make header capitalizations consistent in README

4 years agoTrying to always mention MesoWest with NRCS
Alexander Vasarab [Tue, 30 Jun 2020 22:55:55 +0000 (15:55 -0700)]
Trying to always mention MesoWest with NRCS

4 years agoFix another README inconsistency
Alexander Vasarab [Tue, 30 Jun 2020 21:22:44 +0000 (14:22 -0700)]
Fix another README inconsistency

4 years agoSmall changes along with version bump
Alexander Vasarab [Tue, 30 Jun 2020 21:21:57 +0000 (14:21 -0700)]
Small changes along with version bump

4 years agoWhoops, the license is in fact ISC
Alexander Vasarab [Tue, 30 Jun 2020 21:04:03 +0000 (14:04 -0700)]
Whoops, the license is in fact ISC

ISC is very similar to MIT but with some extraneous language removed.

4 years agoMore README updates
Alexander Vasarab [Tue, 30 Jun 2020 21:03:52 +0000 (14:03 -0700)]
More README updates

4 years agoMore README cleanup
Alexander Vasarab [Tue, 30 Jun 2020 20:56:52 +0000 (13:56 -0700)]
More README cleanup

4 years agoReduce configuration complexity
Alexander Vasarab [Tue, 30 Jun 2020 20:49:49 +0000 (13:49 -0700)]
Reduce configuration complexity

This commit cleans up the configuration file format expectations.
Whereas before there was separate [nrcs]/[mesowest] sections, there is
now one [station] section.

It also unifies the configuration options between the two in the config
file, as well as the code. Much cleaner and simpler.

4 years agoAdd configs/ dir to .gitignore
Alexander Vasarab [Tue, 30 Jun 2020 20:45:25 +0000 (13:45 -0700)]
Add configs/ dir to .gitignore

4 years agoProgress MesoWest portion of README
Alexander Vasarab [Tue, 30 Jun 2020 20:31:02 +0000 (13:31 -0700)]
Progress MesoWest portion of README

4 years agoAdd MesoWest config example
Alexander Vasarab [Tue, 30 Jun 2020 20:21:30 +0000 (13:21 -0700)]
Add MesoWest config example

4 years agoImplement MesoWest as a data source
Alexander Vasarab [Tue, 30 Jun 2020 20:20:56 +0000 (13:20 -0700)]
Implement MesoWest as a data source

4 years agoAdd requests to requirements.txt
Alexander Vasarab [Tue, 30 Jun 2020 19:54:56 +0000 (12:54 -0700)]
Add requests to requirements.txt

Many Python installations will ship with this by default, but no harm in
being explicit here.

4 years agoGet started on MesoWest README changes
Alexander Vasarab [Tue, 30 Jun 2020 19:54:35 +0000 (12:54 -0700)]
Get started on MesoWest README changes

4 years agoAdd scratch/ to .gitconfig
Alexander Vasarab [Tue, 30 Jun 2020 18:09:35 +0000 (11:09 -0700)]
Add scratch/ to .gitconfig

4 years agoUpdate README with preliminary new version text
Alexander Vasarab [Tue, 30 Jun 2020 18:08:48 +0000 (11:08 -0700)]
Update README with preliminary new version text

4 years agoChange around and rename some config parameters
Alexander Vasarab [Tue, 30 Jun 2020 18:03:08 +0000 (11:03 -0700)]
Change around and rename some config parameters

4 years agoRename example config
Alexander Vasarab [Tue, 30 Jun 2020 17:28:42 +0000 (10:28 -0700)]
Rename example config

5 years agoMerge branch 'v1.0.0' v1.0.0
Alexander Vasarab [Sat, 20 Jun 2020 21:32:01 +0000 (14:32 -0700)]
Merge branch 'v1.0.0'

5 years agoImprove --dry-run behavior
Alexander Vasarab [Sat, 20 Jun 2020 21:11:25 +0000 (14:11 -0700)]
Improve --dry-run behavior

Now the working CSV file (csv_filename in the config file) gets deleted,
reducing the trash that the program creates.

5 years agoMake README a proper markdown file
Alexander Vasarab [Sat, 20 Jun 2020 21:02:58 +0000 (14:02 -0700)]
Make README a proper markdown file

5 years agoImplement dry run functionality
Alexander Vasarab [Sat, 20 Jun 2020 04:36:19 +0000 (21:36 -0700)]
Implement dry run functionality

5 years agoUncomment FTP upload code
Alexander Vasarab [Sat, 20 Jun 2020 04:26:26 +0000 (21:26 -0700)]
Uncomment FTP upload code

5 years agoMIT -> ISC
Alexander Vasarab [Sat, 20 Jun 2020 02:37:44 +0000 (19:37 -0700)]
MIT -> ISC

5 years agoUpdate README with program invocation fixes
Alexander Vasarab [Wed, 17 Jun 2020 19:59:26 +0000 (12:59 -0700)]
Update README with program invocation fixes

5 years agoWork towards 2020 idiomatic Python
Alexander Vasarab [Wed, 17 Jun 2020 19:54:38 +0000 (12:54 -0700)]
Work towards 2020 idiomatic Python

5 years agoMinor change to program header
Alexander Vasarab [Wed, 17 Jun 2020 19:39:36 +0000 (12:39 -0700)]
Minor change to program header

5 years agoClean up, add, and refine some comments
Alexander Vasarab [Wed, 17 Jun 2020 19:37:27 +0000 (12:37 -0700)]
Clean up, add, and refine some comments

5 years agovirtualenv -> venv
Alexander Vasarab [Wed, 17 Jun 2020 19:17:16 +0000 (12:17 -0700)]
virtualenv -> venv

5 years agoAdd requirements.txt for pip/virtualenv
Alexander Vasarab [Wed, 17 Jun 2020 19:12:42 +0000 (12:12 -0700)]
Add requirements.txt for pip/virtualenv

5 years agoAdd README and LICENSE
Alexander Vasarab [Wed, 17 Jun 2020 19:12:30 +0000 (12:12 -0700)]
Add README and LICENSE

5 years agoAdd .gitignore
Alexander Vasarab [Wed, 17 Jun 2020 19:12:19 +0000 (12:12 -0700)]
Add .gitignore

5 years agoRemove all hard-coded values in example config
Alexander Vasarab [Wed, 17 Jun 2020 19:11:43 +0000 (12:11 -0700)]
Remove all hard-coded values in example config

5 years agoInitial commit
Alexander Vasarab [Wed, 17 Jun 2020 14:29:27 +0000 (07:29 -0700)]
Initial commit

This contains a working version of the program from after the initial
process of writing and testing it, and subsequently successfully
importing data from NRCS into InfoEx.

It also contains an example config file.