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

Efficiently reading 1-d datasets, and more… #37

Merged
merged 45 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
50eb92f
Added Jupyter notebook and regular Python script.
samsrabin Oct 19, 2021
f008f52
Functionized extraction of a variable to DataArray.
samsrabin Oct 19, 2021
9d51124
Added cell: Print sowing and harvest date arrays for each crop.
samsrabin Oct 19, 2021
b2f88d5
1d: Reworked variable plotting.
samsrabin Oct 28, 2021
bfbfd74
Added 2d_crop_work.py.
samsrabin Oct 28, 2021
96413c0
Added import_ds_from_filelist() to utils.py.
samsrabin Oct 28, 2021
2f25d49
myVars now optional in import_ds_from_filelist().
samsrabin Oct 28, 2021
40ac1e0
Read in ALL dimensions in import_ds_from_filelist().
samsrabin Oct 28, 2021
f6e018a
Added to utils.py: List of PFTs used in CLM (pftlist).
samsrabin Oct 28, 2021
19a9dda
Added to utils.py: function to get PFT of each patch as integer and s…
samsrabin Oct 28, 2021
f3c34a0
import_ds_from_filelist() now also returns vegtypes dictionary.
samsrabin Oct 28, 2021
20fbeef
Added to utils.py: function get_thisVar_da().
samsrabin Oct 28, 2021
febd079
Added to utils.py: is_this_mgd_crop().
samsrabin Oct 28, 2021
1c9ce06
Added to utils.py: is_each_mgd_crop().
samsrabin Oct 28, 2021
36d62d8
Added to utils.py: trim_to_mgd_crop().
samsrabin Oct 28, 2021
e6ad064
Added to utils.py: grid_one_timestep().
samsrabin Oct 28, 2021
3033062
Updated 2d_crop_work.py to use new functions in utils.py.
samsrabin Oct 28, 2021
3083724
Removed managed-crop restriction step from grid_one_timestep().
samsrabin Oct 29, 2021
d0f043e
grid_one_timestep() is now grid_one_variable().
samsrabin Oct 29, 2021
af96ea9
Changes to 1d_crop_work.ipnyb.
samsrabin Oct 29, 2021
6d7a6a1
Start of comparing read-in sowing dates in 1d script.
samsrabin Oct 29, 2021
d9ba88f
Added clm_yield_conv.ipynb.
samsrabin Oct 29, 2021
4e1c235
Map now uses an actual crop.
samsrabin Oct 29, 2021
ee42569
import_ds_from_filelist() now renames dimension "pft" to "patch".
samsrabin Oct 29, 2021
c57e0af
Commented out bit about dates in matplotlib format.
samsrabin Oct 29, 2021
d564668
import_ds_from_filelist() now just import_ds(): Can provide just 1 file.
samsrabin Oct 29, 2021
3ee2b8a
import_ds() now avoids expanding dimensions where unnecessary.
samsrabin Oct 29, 2021
d360d84
Cleaning up 2d_crop_work.py.
samsrabin Oct 29, 2021
b730936
pftlist now produced by a function.
samsrabin Oct 29, 2021
2983617
Added xr_flexsel() function.
samsrabin Oct 29, 2021
e1fb811
Generalized functions to find matching (or NOT matching) vegtypes.
samsrabin Oct 29, 2021
d4e21b7
Moved is_*_vegtype() functions.
samsrabin Oct 29, 2021
f8fc966
import_ds() can now handle specified exact vegtype names to import. I…
samsrabin Oct 29, 2021
4e4df29
vegtype selection in xr_flexsel() now uses integers for efficiency.
samsrabin Oct 30, 2021
797706f
xr_flexsel() can now handle more types of vegtype input.
samsrabin Oct 30, 2021
7926263
Added function define_mgdcrop_list().
samsrabin Oct 30, 2021
fd081f4
To-do/comment changes re: xr_flexsel().
samsrabin Oct 30, 2021
78b403f
Moved and improved description of check_sel_type().
samsrabin Nov 1, 2021
11c232f
import_ds() now ensures filelist is sorted.
samsrabin Nov 1, 2021
d28885c
Added function patch2pft() to restore original "patch" dim/var names.
samsrabin Nov 1, 2021
2e8a967
Correction to call of trim_da_to_mgd_crop().
samsrabin Nov 1, 2021
713c758
Commenting improvements.
samsrabin Nov 1, 2021
453d0d0
is_this_vegtype() now checks data type of this_vegtype.
samsrabin Nov 1, 2021
79b27d7
Added SamRabin_examples notebook.
samsrabin Nov 1, 2021
0be1e01
Moved dev scripts into ignore/ directory.
samsrabin Nov 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,6 @@ venv.bak/

# mypy
.mypy_cache/

# ignore directory
ignore/
Loading