DQRID : D060209.2
Start DateStart TimeEnd DateEnd Time Data Quality Metric
12/05/1998000004/16/20022359Does not affect quality
more
Subject:
SGP/RUC/X1 - Subsetting RUC-40
DataStreams:sgpallruc40hybrX1.c1, sgpallruc40isobX1.c1
Description:
Users who would like access to subsetted RUC-40 data products similar to those products 
currently available for RUC-20 can use NCO utilities to create subsets from the 
"sgpallruc40" data products.  Below is one method that can be used. This is also mentioned in the 
FAQ on the ARM RUC description page at: http://www.arm.gov/xds/static/ruc.stm
--------------------------------------------------------------

Question: How can I create subsetted RUC 40 data similar to the RUC 20 data currently 
available at the Archive?

Currently, the RUC 40 netCDF data available at the archive are the full area, hourly files 
(sgpallruc40isobX1.c1 and sgpallruc40hybrX1.c1). Using the netCDF Operator (NCO) 
utilities, it is easy to produce subsetted, daily files similar to the RUC 20 subsets available 
(sgpruc20hybrX1.c1 and sgpruc20isobX1.c1).

The NCO utilities can be found at http://nco.sourceforge.net/
Using the ncks (NCO "kitchen sink") command, you can subset the ruc data as follows:

ncks -d nx,, -d ny,,  

Note: xmin,xmax,ymin,ymax are index ranges.

For example to subset around the SGP site use the following index values
for latitudes 34.209 to 38.928 and longitudes -99.798 to -95.
xmin = 71
xmax = 82
ymin = 40
ymax = 53


ncks -d nx,71,82 -d ny,40,53 sgpallruc40isobX1.c1.20000314.130000.cdf 
sgpruc40isobX1.c1.subset.cdf

Here is a sample C-Shell script for subsetting the ruc40 and using the NCO command ncrcat 
to concatenate the hourly subsetted files into a ruc 40 subsetted daily file similar to 
the sgpruc20isobX1.c1 files.

#!/bin/csh
# This script subsets the RUC 40 isobaric files
# and then concatenates hourly files into 1 daily file
# usage: subset_ruc40.csh 
#   where yyyymmdd is the date of the files to subset
#   and concatenate. Ex. 20000314 (yyyy=2000,mm=03, dd=14)
# Example: subset_ruc40.csh 20000314
# xmin,xmax,ymin,ymax are indices for
# lat = 34.209, 38.928, lon = -99.798, -95
set xmin = 71
set xmax = 82
set ymin = 40
set ymax = 53
set date = $1
foreach file (sgpallruc40isob*$date*)
  ncks -d nx,${xmin},${xmax} -d ny,${ymin},${ymax} $file $file.sub
end
ncrcat -h sgpallruc40isob*$date*sub sgpruc40isobX1.c1.$date.000000.cdf
rm *.sub
exit

For more information on the NCO commands ncks and ncrcat see:
http://nco.sourceforge.net/nco.html#ncks-netCDF-Kitchen-Sink
http://nco.sourceforge.net/nco.html#ncrcat-netCDF-Record-Concatenator

Also other commands for subsetting and analysis of netCDF data can be found at 
http://www.arm.gov/data/tools.stm
Suggestions: 
Measurements:sgpallruc40hybrX1.c1:
  • ndensice
  • time_offset
  • precipsubgrid
  • pressure
  • heightss
  • base_time
  • longitude
  • altitude
  • latitude
  • cinhib
  • tempsoilsrfsubsrf
  • velocityw
  • windv
  • windu
  • fluxlwnetsrf
  • pwv
  • rh
  • runoffsrf
  • windutrop
  • snowaccum
  • mxratioliquid
  • heightgp
  • moistsoilvolumesrfsubsrf
  • fluxswnetsrf
  • mxratiosnow
  • mxratiorain
  • fluxevaptranssrf
  • pressuretrop
  • preciprate
  • mxratiograupel
  • temppottrop
  • fluxsensiblesrf
  • evapcanopysrf
  • runoffsubsrf
  • snowdepth
  • moistsoilcontentsrfsubsrf
  • windvtrop
  • snowtemp
  • dropwaterratesrf
  • precipresolved
  • condensewaterratesrf
  • pressuremsl
  • cape
  • fluxlatentsrf
  • temp
  • mxratiovapor
  • mxratioice
  • tketurb
  • evapsoilsrf
  • tempvirtpot
  • forecast_period
  • watercanopy
more
sgpallruc40isobX1.c1:
  • altitude
  • runoffsrfacc
  • rhfrz
  • indexlifted
  • windvwindmax
  • winduwindmax
  • latitude
  • heightequillevel
  • heightgpp
  • cinhib
  • catrain
  • tempdewpt2m
  • pressuresrf
  • windgustspeed
  • catsnow
  • heightcldbase
  • pressuremgrid
  • cape
  • pwv
  • pressurewindmax
  • tempp
  • tempm
  • forecast_period
  • windvm
  • windvp
  • pressurefrztop
  • snowdepth
  • heightpbl
  • altimeter
  • time_offset
  • heightsrf
  • windu10m
  • heightgpfrz
  • indexliftedbest
  • windutrop
  • moistsoilavail
  • visibility
  • stormmotionu
  • stormmotionv
  • temp2m
  • heightcldtop
  • sh2m
  • tempdewptdep2m
  • snowaccum
  • base_time
  • preciprate
  • rhfrztop
  • pressuremsl
  • precipsubgrid3hr
  • precipsubgridacc
  • windvtrop
  • snowdepthwatereq
  • windum
  • catfreezerain
  • windup
  • stormrelhelicity
  • heightcldtopconv
  • precipresolvedacc
  • precipresolved3hr
  • longitude
  • heightgpfrztop
  • runoffsubsrf
  • windv10m
  • caticepellets
  • velocitywm
  • rhp
  • velocitywp
  • rhm
  • rh2m
  • temppottrop
  • temppot2m
  • pressurepgrid
  • pressuretrop
  • tempeqpot
  • pressuretempeqpotmax
  • pressuretend
  • pressurefrz
more

Close this window