This shows you the differences between two versions of the page.
other:esgf:misc [2016/09/09 09:57] jypeter created |
other:esgf:misc [2016/09/20 14:35] (current) jypeter Improved steps in case there are several variables to process |
||
---|---|---|---|
Line 9: | Line 9: | ||
* ''tcsh'' shell, in order to use ''foreach'' | * ''tcsh'' shell, in order to use ''foreach'' | ||
- | <code> $ cd /prodigfs/esgf/mirror/CMIP5/output1/IPSL/IPSL-CM5A-LR/past1000/mon/atmos/Amon/r1i1p1/v20120804/pr/ | + | <code> $ cd /prodigfs/esgf/mirror/CMIP5/output1/IPSL/IPSL-CM5A-LR/past1000/mon/atmos/Amon/r1i1p1/v20120804/ |
- | $ ls -lh pr_*.nc | + | $ ls -lh pr/pr_*.nc |
85M Aug 2 2012 pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_085001-104912.nc | 85M Aug 2 2012 pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_085001-104912.nc | ||
85M Aug 2 2012 pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_105001-124912.nc | 85M Aug 2 2012 pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_105001-124912.nc | ||
Line 19: | Line 19: | ||
446K Aug 2 2012 pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_185001-185012.nc | 446K Aug 2 2012 pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_185001-185012.nc | ||
- | $ mkdir /data/jypmce/Scratch/EasterIsland | + | $ mkdir -p /data/jypmce/Scratch/EasterIsland/Tmp/pr |
- | $ foreach f ( pr_*.nc ) | + | $ foreach f ( pr/pr_*.nc ) |
foreach? echo $f | foreach? echo $f | ||
- | foreach? ncks -dlat,-35.,-20. -dlon,242.,258. $f /data/jypmce/Scratch/EasterIsland/$f:r-Z02.nc | + | foreach? ncks -dlat,-35.,-20. -dlon,242.,258. $f /data/jypmce/Scratch/EasterIsland/Tmp/$f:r-Z02.nc |
foreach? end | foreach? end | ||
- | pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_085001-104912.nc | + | pr/pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_085001-104912.nc |
- | pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_105001-124912.nc | + | pr/pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_105001-124912.nc |
- | pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_125001-144912.nc | + | pr/pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_125001-144912.nc |
- | pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_145001-164912.nc | + | pr/pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_145001-164912.nc |
- | pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_165001-184912.nc | + | pr/pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_165001-184912.nc |
- | pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_185001-185012.nc | + | pr/pr_Amon_IPSL-CM5A-LR_past1000_r1i1p1_185001-185012.nc |
- | $ cd /data/jypmce/Scratch/EasterIsland | + | $ cd /data/jypmce/Scratch/EasterIsland/Tmp/pr |
$ ls -lh pr_*Z02.nc | $ ls -lh pr_*Z02.nc |