Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation suggestions (pain points) #38

Open
eldobbins opened this issue Nov 13, 2018 · 3 comments
Open

Documentation suggestions (pain points) #38

eldobbins opened this issue Nov 13, 2018 · 3 comments

Comments

@eldobbins
Copy link
Contributor

@kwilcox asked me to let him know where documentation would be helpful. If it's OK, I'd like to track it here.

First up, Installation. For instance, I did:

conda create -n pyocean pip
source activate pyocean
git clone https://github.com/pyoceans/pocean-core
cd pocean-core
conda install --file requirements.txt -c conda-forge
pip install -e ~/Desktop/code/pocean-core

@eldobbins
Copy link
Contributor Author

dimension names are fixed, which is OK because CF documentation states: "This convention does not standardize any variable or dimension names". Must be x,y,z,t. But maybe need to adjust the incoming data.

@eldobbins
Copy link
Contributor Author

Some attributes seem to be defined by these routines. Are they overwriting the ones I define?

@kwilcox
Copy link
Member

kwilcox commented Dec 11, 2018

@eldobbins Good call on the axes naming, this needs to be documented:

There is actually a way around the fixed dimension names. You can pass an axes mapping to many of the pocean functions if you don't want to use the predefined x, y, z, t, obs, profile, trajectory.

For example:

axes = {
    't': 'time',
    'x': 'lon',
    'y': 'lat',
    'sample': 'obs',
}

ncd = IncompleteMultidimensionalTrajectory.from_dataframe(df, axes=axes, output=somefile)

Will make a file with the dimensions/variables named time, lon, lat and obs. It is assumed each axes in the mapping is a column in df. Code that overwrite the defaul axes with the provided mapping: https://github.com/pyoceans/pocean-core/blob/master/pocean/utils.py#L38.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants