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

Create long list files of ALL data sets (to individual versions) for all projects #61

Open
agstephens opened this issue Jun 18, 2020 · 2 comments
Assignees

Comments

@agstephens
Copy link
Contributor

agstephens commented Jun 18, 2020

Create some large files from the find command for each project:

  • badc: cmip5, cmip6, cordex
  • c3s: cmip5, cmip6, cordex

NOTE: list to the level of all the NetCDF files - under the version directories (not latest).

Store the files in the "smf" GWS.

Write some python to parse them into Pandas DataFrames that we can do interrogation on.

@agstephens
Copy link
Contributor Author

$ cat make-file-lists.sh
#!/bin/bash

cd /home/users/astephen/roocs/proto-lib-34e/

find -L /badc/cordex/data/cordex/output -iname "*.nc" | grep -v latest > file-list-cordex.txt
find -L /badc/cmip5/data/cmip5/output*/*/*/*  -iname "*.nc" | grep -v latest > file-list-cmip5.txt
find -L /badc/cmip6/data/CMIP6/*/*/*/*  -iname "*.nc" | grep -v latest > file-list-cmip6.txt

[astephen@sci2 proto-lib-34e]$ cat batch-make-file-lists.sh
D=$PWD

bsub -q short-serial \
     -o $D/lotus.out \
     -e $D/lotus.err \
     -W 23:59 \
     $D/make-file-lists.sh

@agstephens
Copy link
Contributor Author

Add some code to ingest them into a DataFrame then save as good DataFrame format (maybe zipped csv).

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