Fix variogram sill bug in statsPlot, updated handling of units #118
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixed bug in sill value. Specifically, a vestige in the code applied a factor of 1e-4 to the output sill value irregardless of the true units of the input file. Furthermore, input units were assumed to be in units of meters, even though they are downloaded from UNR in units of mm.
Thus, a new filenaming convention has been implemented. Specifically,
downloadGNSSdelays.py
andgetStationDelays.py
have been updated such that the final output filename reflects the source repository (e.g.UNRcombinedGPS_ztd.csv
). The source repository is toggled with the—gpsrepo
option, where currently only UNR is supported. Accordingly,statsPlot.py
has been updated to recognize the source repository based off of the filename and thus handle the native units properly. Given this, the user no longer has to manually specify the native dataset units with the—unit
. The—unit
option has thus been modified to now serve as a means to specify the output unit for plotting purposes (by default ‘m’).Also fixed bug in
statsPlot.py
such that grids with more than 1000 samples are subsampled by 1000 randomly selected samples. This wasn’t successfully implemented before as the number of samples (integer) was compared with a threshold value which was defined as a float, such that this condition was ignored and large arrays were passed along without being subsampled. This threshold of 1000 samples is hardcoded, but can easily make into an option that a user can have more direct control over.Will update the notebooks accordingly to reflect these updates.
Motivation and Context
Addresses #11
How Has This Been Tested?
To replicate small test, run the following download/plotting commands:
Type of change
Checklist: