Comments (6)
Units in the variable name?
from chm.
I was thinking as separate header lines like:
variable1, variable2, variablen
unit1, unit2, unitn
avg1, sample2, avgn,
data, data, data,
data, data, data
from chm.
Gross to post process though?
from chm.
Depends on your definition of gross :). I think it is easy to import in pandas. I do this for the station files here that follow that format.
# Ascii data format info
c_header = 4 # Header lines
c_column_line = 1 # line where column names start
c_delimiter = ','
# Import data to pandas dataframe
dat = ascii.read(cfile,header_start=c_column_line,data_start=c_header,delimiter=c_delimiter)
datain = pd.DataFrame(dat.as_array())
# Import header info
headerinfo = pd.read_csv(cfile,nrows=2,skiprows=1)
Having received many data sets without units/metadata in the past, I am a big proponent of including metadata. Going to a hierarchical data format like netcdf might be easier to include this extra meta data.
from chm.
I've had some which have almost unparsable headers due to a mix of '_', ' ', etc. As long as the format is well defined, I have no problem doing this.
I've always wanted the models to declare their outputs in a manner that enforced units between models. In fact, I've actually had bugs where I messed up the units. Something like this
http://www.boost.org/doc/libs/1_61_0/doc/html/boost_units/Examples.html
would be ideal, I think.
from chm.
Closing to split into two issues
from chm.
Related Issues (20)
- Modules should check parameters
- Solar Eclipse module needed
- vtkStringArray large memory allocation
- References needed for Mason and Sykes module
- Value in adding profiler? HOT 1
- Integrate Python HOT 2
- Snowpack bulk snowpack temperature HOT 1
- What ground temperature to use when we are not running a soil model?
- Extend point_mode module to run for N points HOT 1
- Look into Hunter for dependency handling HOT 1
- Hang in init() if mesh and mesh param don't match HOT 1
- CLI meshes.parameters.file needs relative path
- Only build subset of Boost
- Wrong triangle selected in fetchr
- Provide better error with wrong mesh
- Improve snobal's NaN handling
- Build kD tree in parallel HOT 1
- OpenMPI 4.0.3 HOT 1
- config file incorrectly requires output_dir
- New logging library
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 chm.