This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Ahmed, > i am using ncdump in my work , but always the variable that i am dealing > with is function in time , latitude and longitude > var(time,lat,lon) ,and i often make the ncdump -v var file.nc > aa and i > wanna to get the values of the variable at certain time step > so i want var(1,lon,lat) , so how can i specify the value of the coordinate > that i am using . There is a sort of clumsy way you can do this with ncdump now, by specifying full annotation of the output ("-fc" or "-ff" for C or Fortran annotation, respectively), and then filter the output with something like grep to show just the coordinates you want. A better tool for this currently is the NCO software, specifically the "ncks" tool: http://www.unidata.ucar.edu/netcdf/software.html#NCO developed and maintained as open source software at the Univeristy of California at Irvine. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: BUL-932095 Department: Support netCDF Priority: Normal Status: Closed