Dr. Das, The nccopy command is used on the command line, rather than in your aggregation. You may need to write a wrapper script to perform that aggregation and convert the ncml into a netcdf file. On the command line, you would invoke nccopy like this: java -Xmx1g -classpath netcdfAll-4.3.jar ucar.nc2.dataset.NetcdfDataset -in <fileIn> -out <fileOut> where <fileIn> is just the NcML file you've created with your aggregation, and <fileOut> is the name of the file you want to create. Cheers, Lansing > Hi Lansing Madry, > > Thanks a lot. I actually modified the aggregation ncml script. My two netCDF > files are that I would like aggregate: > > BCSD_0.125deg_tas_Amon_MIROC5_historical_r1i1p1_195001-200512.nc [This > is a monthly netCDF file; data spans over 1/1950 through 12/2005] > BCSD_0.125deg_tas_Amon_MIROC5_rcp26_r1i1p1_200601-210012.nc [This > is a monthly netCDF file; data spans over 1/2006 through 12/2100] > > When I execute the script, it does aggregate two netCDF files. However I > could not find out how I can incorporate "nccopy" function to write the > aggregated netCDF file as a output file. > > Thanks a lot for any suggestion. > > > Best Regards, Tapash > > > > > From: Unidata netCDF Java Support [mailto:address@hidden > Sent: Wednesday, October 02, 2013 8:52 AM > To: Das, Tapash/SDO > Cc: address@hidden; Das, Tapash/SDO > Subject: [netCDFJava #KJD-261977]: NcML Aggregation > > Hello Dr. Das, > > To create a new NetCDF file, you can use the nccopy function as described > here: > > http://www.unidata.ucar.edu/software/thredds/v4.4/netcdf-java/reference/manPages.html > > In this case, the <filein> would be the NcML file you've previously created > through aggregation. > > Let me know if you need any other help! > > Regards, > Lansing Madry > Unidata > Boulder, Colorado > > > Hi Caron, > > > > I am planning to stitch together two netCDF files using "aggExisting.ncml" > > element (Exercise 2) described at: > > > > http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/ncml/ > > v2.2/Aggregation.html > > > > I can see the aggregated variable that joins my netCDF files. However > > unfortunately I do not know how I can save that new netCDF variable in > > a new file for my processing. > > > > Thanks a lot in advance for any suggestions or help. > > > > > > Best Regards, Tapash > > > > > > Tapash Das, Ph.D. > > Technologist Professional | CH2M HILL, Inc. | 402 W. Broadway, Suite > > 1450 | San Diego, CA 92101 | Direct 619.272.7272 > > > > > > > > > Ticket Details > =================== > Ticket ID: KJD-261977 > Department: Support netCDF Java > Priority: Urgent > Status: Open > > Ticket Details =================== Ticket ID: KJD-261977 Department: Support netCDF Java Priority: Emergency Status: Open
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.