Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

MAINT: update munging #7

Open
wants to merge 5 commits into
base: carbon_flux_notebook
Choose a base branch
from

Conversation

stsievert
Copy link
Contributor

@stsievert stsievert commented Jul 26, 2018

This updates the data munging from the notes in the notebook.

Notes:

  • I've tried to encode the sun's position by adding columns for latitude, longitude and day of year. I should probably reformat day of year to be the number of days since the summer equinox.

" \n",
" i = [col in df.columns for col in drop]\n",
" \n",
" assert all([col in df.columns for col in drop])\n",
Copy link
Collaborator

@jbednar jbednar Jul 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment explaining what this bit does (i.e. what the intention is; here and below)?

@@ -158,7 +200,7 @@
"outputs": [],
"source": [
"import scipy.io\n",
"rsif = scipy.io.loadmat('RSIF_2007_2016_05N_01L.mat')"
"rsif = scipy.io.loadmat('./flux_data/RSIF_2007_2016_05N_01L.mat')"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I note you've changed where to expect this .mat file. Either option is fine though this way means overwriting the git lfs 'file' of the same name...

@stsievert
Copy link
Contributor Author

I have updated this notebook.

  • I have implemented a (very) simple linear model for one site (and do not include lat/lon as features).
  • I have responded to the reviews (removed the assert and moved the .mat file)

I have also verified that the weights of the linear model vary based on location:

features_trim

(this is data is trimmed a bit to remove certain sites and a couple features)

  • TODO: I still need to perform bi-weekly averaging of RSIF data sampled at sites.

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

Successfully merging this pull request may close these issues.

3 participants