; --------------------------------------------------------------------------- ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Program Name: get_nc.ncl ; ; ; ; National Water Model (NWM) WRF-hydro forcing engine is developed by ; ; National Center for Atmospheric Research (NCAR), under the sponsorship ; ; of National Water Center (NWC). ; ; ; ; Team Members: ; ; NCAR Staff: Linlin Pan, Wei Yu, and David Gochis ; ; NWC/OWP Staff: Brian Cosgrove, Zhengtao Cui, Cham Pham, and James Taft ; ; ; ; This is a ncl program to get T2 and rainrate. ; ; ; ; Input: source file, output file ; ; ; ; Output: temperature and rainfall in outfile ; ; ; ; For non-fatal errors output is witten to $DATA/logs ; ; ; ; Author(s)/Contact(s): Linlin Pan, lpan@ucar.edu ; ; Origination Sept., 2015 ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; begin cfsFile = getenv("cfsFile") ; u wind data tpFile = getenv("tpFile") ; out data fcfs = addfile(cfsFile + ".nc","r") system("rm -f "+tpFile) fout = addfile(tpFile,"c") fout->T2D = fcfs->T2D fout->RAINRATE = fcfs->RAINRATE fout->ProjectionCoordinateSystem = fcfs->ProjectionCoordinateSystem fout->reference_time = fcfs->reference_time ; fout->time_bounds = fcfs->time_bounds fout@model_output_valid_time = fcfs@model_output_valid_time fout@model_initialization_time = fcfs@model_initialization_time fout@model_output_type=fcfs@model_output_type fout@model_configuration=fcfs@model_configuration fout@model_total_valid_times=fcfs@model_total_valid_times fout@NWM_version_number=fcfs@NWM_version_number end