diff --git a/projects/07_TestOutputForFRESC/trimNetCDFs.sh b/projects/07_TestOutputForFRESC/trimNetCDFs.sh index 884c629..efa651a 100644 --- a/projects/07_TestOutputForFRESC/trimNetCDFs.sh +++ b/projects/07_TestOutputForFRESC/trimNetCDFs.sh @@ -1,8 +1,8 @@ #bash script to trim netCDFs to extent of bounding box for FRESC data -cd /Users/astears/Documents/Dropbox_static/Work/NAU_USGS_postdoc/shortTermDroughtForescaster/gridSTDF/projects/07_TestOutputForFRESC +cd /Users/astears/Documents/Dropbox_static/Work/NAU_USGS_postdoc/shortTermDroughtForescaster/gridSTDF/projects/07_TestOutputForFRESC/full_netCDFs # for one file ncks -d lat,42.88937,43.16044 -d lon,-116.74249,-116.24193 ./full_netCDFs/GISSM_yr_gridSTDF_historical_032024.nc -O ./trimmed_netCDFs/GISSM_yr_gridSTDF_historical_032024.nc # trim all files in the "full_netCDFs directory" -for f in *.nc; do ncks -d lat,42.88937,43.16044 -d lon,-116.74249,-116.24193 "$f" -o "../trimmed_netCDFs/${f%%.c}.nc"; done \ No newline at end of file +for f in *.nc; do ncks -d lat,42.88937,43.16044 -d lon,-116.74249,-116.24193 "$f" -o "../trimmed_netCDFs/${f%%}"; done \ No newline at end of file diff --git a/projects/07_TestOutputForFRESC/trimmed_netCDFs.zip b/projects/07_TestOutputForFRESC/trimmed_netCDFs.zip index 8994c01..fb476f9 100644 Binary files a/projects/07_TestOutputForFRESC/trimmed_netCDFs.zip and b/projects/07_TestOutputForFRESC/trimmed_netCDFs.zip differ