Skip to content

Commit

Permalink
V2 guide (ARM-DOE#746)
Browse files Browse the repository at this point in the history
* DOC: New documentation for version 2

* ENH: Doc build warnings

* ENH: Doc build warnings

* ENH: Updating path

* ENH: Updating order

* ENH: New user guide

* ENH: Updating test name

* ENH: Updating documentation
  • Loading branch information
AdamTheisen authored Nov 15, 2023
1 parent d324e99 commit fc3f6cc
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/source/userguide/GUIDE_V2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../../../guides/GUIDE_V2.rst
1 change: 1 addition & 0 deletions docs/source/userguide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ User Guide
CREATING_ENVIRONMENTS
usage
CONTRIBUTING
GUIDE_V2
2 changes: 1 addition & 1 deletion examples/utils/plot_parse_filename.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Parse the ARM datastream filename
-------------------------
---------------------------------
This is an example of how to parse
the datastream filename into its constituent parts.
Expand Down
2 changes: 1 addition & 1 deletion examples/workflows/plot_aerioe_with_cbh.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Plot AERIoe data with cloud base height from ceilometer
----------------------
-------------------------------------------------------
Example to download and plot AERIoe
temperature and water vapor overlaying
Expand Down
78 changes: 78 additions & 0 deletions guides/GUIDE_V2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
===========================
ACT Version 2 Release Guide
===========================

In preparation for version 2.0.0 of ACT, codes were standardized for consistency purposes as furhter defined in the `Contributor's Guide <https://arm-doe.github.io/ACT/userguide/CONTRIBUTING.html>`_. These changes will break some users code as the API has changed. This guide will detail the changes for each module.

Discovery
=========
Functionality has not changed but the naming of the API have changed for all discovery scripts to be more consistent and streamlined in their naming.

+------------------------------+------------------------------+
|Existing Function | New Function |
+==============================+==============================+
| get_armfiles.download_data | arm.download_arm_data |
+------------------------------+------------------------------+
| get_armfiles.get_arm_doi | arm.get_arm_doi |
+------------------------------+------------------------------+
| get_asos.get_asos | asos.get_asos_data |
+------------------------------+------------------------------+
| get_airnow.* | airnow.* Func Names Same |
+------------------------------+------------------------------+
| get_cropscape.croptype | cropscape.get_crop_type |
+------------------------------+------------------------------+
| get_noaapsl. | noaapsl. |
| download_noaa_psl_data | download_noaa_psl_data |
+------------------------------+------------------------------+
| get_neon.get_site_products | neon.get_neon_site_products |
+------------------------------+------------------------------+
| get_neon.get_product_avail | neon.get_neon_product_avail |
+------------------------------+------------------------------+
| get_neon.download_neon_data | neon.download_neon_data |
+------------------------------+------------------------------+
| get_surfrad.download_surfrad | surfrad.download_surfrad_data|
+------------------------------+------------------------------+

IO
==
Similar to the discovery module, functionality has not changed but the naming convention has for similar reasoning.

+------------------------------+------------------------------+
|Existing Function | New Function |
+==============================+==============================+
| armfiles | act.io.arm |
+------------------------------+------------------------------+
| armfiles.read_netcdf() | arm.read_arm_netcdf |
+------------------------------+------------------------------+
| armfiles.read_mmcr | arm.read_arm_mmcr |
+------------------------------+------------------------------+
| csvfiles | csv |
+------------------------------+------------------------------+

Plotting
========
A major change to how secondary y-axes are handled was implemented in the TimeSeriesDisplay and DistributionDisplay modules. Currently, those plotting routines return a 1-D array of display axes. This has always made the secondary y-axis more difficult to configure and use. In the new version, it will return a 2-D array of display axes [[left axes, right axes]] to make it simpler to utilize.

HistogramDisplay is being renamed to DistributionDisplay to be more inclusive of the variety of visualization types that are housed there. Additionally there are changes to two of the plot names to be more consistent with the others.

+------------------------------+------------------------------+
|Existing Function | New Function |
+==============================+==============================+
| HistogramDisplay. | DistributionDisplay. |
| plot_stacked_bar_graph | plot_stacked_bar |
+------------------------------+------------------------------+
| HistogramDisplay. | DistributionDisplay. |
| plot_stairstep_graph | plot_stairstep |
+------------------------------+------------------------------+

Stamen maps for the GeoographicPlotDisplay are being retired. Those maps will no longer be availabe at the end of October 2023. The function was updated so that users can pass an image tile in.

QC
==
* The default behaviour for act.qc.qcfilter.datafilter is changing so that del_qc_var=False. Previously, the default was to delete the QC variable after applying the QC. Going forward it will not default to deleting the QC variables.

* ARM DQR webservice is being upgraded and the corresponding function will be upgraded to utilize this new webservice.

Tests
=====
Test data that have been historically stored in the act/tests/data area will be moved to a separate repository in order to reduce the package install size.

0 comments on commit fc3f6cc

Please sign in to comment.