Comments (9)
I've update my code to look for datastream as a global attribute. If one does not exist I add __datastream. This would allow viewing the required information from downstream tools and a way for the information to be added to the object without the need to add act hidden variables. My downstream tool will check for both datastream and __datastream.
from act.
I see the plotting routine was updated to not use the act object date range attributes, but it looks like it is still using the act object datastream attribute. I can set it using the act object setter method but I think we should not use that as it makes debugging the plot title more difficult.
from act.
@kenkehoe what are your thoughts on this? Still something we should update?
from act.
I think we should not require this information for any of our tools, and use try/except around them where we do use them. There may be a few more out there that should be updated. I recently ran into one looking for "site" that caused a problem.
from act.
It looks like it would be these lines here that we update to be under the attrs attribute if we were to update right?
arm_ds.act.file_dates = file_dates
arm_ds.act.file_times = file_times
is_arm_file_flag = check_arm_standards(arm_ds)
if is_arm_file_flag.NO_DATASTREAM is True:
arm_ds.act.datastream = "act_datastream"
else:
arm_ds.act.datastream = arm_ds.attrs["datastream"]
arm_ds.act.site = str(arm_ds.act.datastream)[0:3]
arm_ds.act.arm_standards_flag = is_arm_file_flag
@rcjackson @zssherman what do you think of making a change like this?
from act.
I'm actually more concerned about any of the plotting or other tools needing these attributes if the data is read in without the ACT reader. I think we should be careful getting these attributes in any of the downstream processes, and they should fail gracefully if used.
from act.
from act.
Just to confirm with @rcjackson, there are no major issues if I change the attributes currently stored in obj.act to be stored under the obj.attrs area with the rest of the attributes and then adjust the downstream code as needed correct? I will then work to adjust the codes to not require these. Sound ok?
from act.
Closing out. ACT attributes have been ported over to xarray attrs
from act.
Related Issues (20)
- Make version 2.0 release prominent on landing page HOT 1
- arm_site_location_search - varying output HOT 5
- Streaking with missing data in 2D plots HOT 1
- Secondary Y-Display breaks convention with Matplotlib
- Verify that unit tests for plotting are comparing and doing what it's supposed to. HOT 6
- Add Hysplit data support HOT 1
- Add examples for working with INP/Aerosol data HOT 5
- Support for Aerial Measurements (UAS, Aircraft, TBS) HOT 7
- ACT does not support QC format from ARM's new Simple QC Feature in Data Discovery HOT 2
- add_dqr_to_qc not working properly HOT 2
- Rename CSV submodule HOT 8
- Add warning to change units when fails HOT 1
- Migrating PPI/Lidar etc Data to xradar
- ASOS Download Change HOT 1
- Bug in xsection plot map code
- Feature Request: Shared X axis for time-series
- ACT Documentation Updates HOT 3
- GeographicPlotDisplay documentation missing description of return value HOT 5
- AmeriFlux Documentation is not showing up in the API HOT 2
- display.plot() add_nan with integer data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from act.