Skip to content

Commit

Permalink
udpating trimmed files
Browse files Browse the repository at this point in the history
  • Loading branch information
aestears committed Mar 12, 2024
1 parent 21c38eb commit dc65857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/07_TestOutputForFRESC/trimNetCDFs.sh
Original file line number Diff line number Diff line change
@@ -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
for f in *.nc; do ncks -d lat,42.88937,43.16044 -d lon,-116.74249,-116.24193 "$f" -o "../trimmed_netCDFs/${f%%}"; done
Binary file modified projects/07_TestOutputForFRESC/trimmed_netCDFs.zip
Binary file not shown.

0 comments on commit dc65857

Please sign in to comment.