Concatenation of multiple files

From: Nate Mikle <natemikle_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 08 2013 - 09:35:04 MST

Hello NCL users,

I am new to both NCL and writing scripts in general, so I apologize in
advance for simple mistakes and questions.

I am trying to concatenate 12 different files that are temporally adjacent
(monthly) into one file. I want to do this so I can then handle them all
together in order to aggregate time (3 hourly) into a daily time step.

If there are any ideas about how to do this or a better direction for me to
go they would be greatly appreciated. Thanks in advance.

-Nate Mikle

Here is the script I have so far, it gives me a segmentation fault. Does
this mean the files are too large (each is 2200 MiB), if so how do I make
them smaller-delete unnecessary varaibles?

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"

begin

pathi = "/home/mikl6340/MsTMIP_Model/CLM-VIC/2000/"
fili =
(/"BG1_CLM4VIC_v1_3hourly_2000-01","BG1_CLM4VIC_v1_3hourly_2000-02","BG1_CLM4VIC_v1_3hourly_2000-03","BG1_CLM4VIC_v1_3hourly_2000-04","BG1_CLM4VIC_v1_3hourly_2000-05","BG1_CLM4VIC_v1_3hourly_2000-06","BG1_CLM4VIC_v1_3hourly_2000-07","BG1_CLM4VIC_v1_3hourly_2000-08","BG1_CLM4VIC_v1_3hourly_2000-09","BG1_CLM4VIC_v1_3hourly_2000-10","BG1_CLM4VIC_v1_3hourly_2000-11","BG1_CLM4VIC_v1_3hourly_2000-12"/)

f = addfiles(pathi+fili+".nc","r")

ListSetType(f,"cat")
G = f[:]->GPP

printVarSummary(G)

end

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 8 07:35:14 2013

This archive was generated by hypermail 2.1.8 : Wed Mar 13 2013 - 14:19:38 MDT