Questions tagged [ncl]

NCL is the NCAR Command Language, developed at the National Center for Atmospheric Research for the purpose of climate data analysis.

See the NCL website for more information.

29 questions
4
votes
2 answers

extract data from netcdf file contained within a shapefile's boundaries

I have the following shapefile and netcdf file. I would like to extract data from the netcdf file that are contained within the boundaries of the shapefile. Do you have any suggestion on how I can achieve this? The shapefile corresponds to SREX…
aaaaa
  • 149
  • 2
  • 18
  • 44
3
votes
3 answers

Convert hdf5 to netcdf4 in bash, R, python or NCL?

Is there a quick and simple way to convert HDF5 files to netcdf(4) from the command line in bash? Alternatively a simple script that handle such a conversion automatically in R, NCL or python ?
ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
2
votes
1 answer

Access variables in nested group in netcdf file (file format HDF5)

I'm trying, without success, to access the object 'latitude' in a NETCDF4_CLASSIC file, with python and the netcdf4 library. When I open the file: ncFile = '/path/to/file.nc4' f = netCDF4.Dataset(ncFile, 'r') f I get this…
2
votes
2 answers

How to disaggregate an accumulated netcdf variable in time using ncl, cdo or nco?

I have a 3D nc variable PP = (time, lat, lon) of accumulated precipitation for an entire year and I want to calculate daily values. I want to do something link in the example, but couldn't find any examples. I've tried to do a loop in which the…
11162273
  • 23
  • 3
1
vote
0 answers

dyld: Symbol not found: __ZN3tbb4task13note_affinityEt when installing ncl

Good day, I am trying to install NCL on my MacProbook from so many days but i am getting this linking error: dyld: Symbol not found: __ZN3tbb4task13note_affinityEt Referenced from:…
1
vote
1 answer

Array conforming shape of a given variable

I need to do some calculations with a NetCDF file. So I have two variables with following dimensions and sizes: A [time | 1] x [lev | 12] x [lat | 84] x [lon | 228] B [lev | 12] What I need is to produce a new array, C, that is shaped as…
kiyas
  • 145
  • 10
1
vote
1 answer

How to create a time variable

I have a lot of netCDF files where they created from tif files using python gdal library. I want to merge each of these files in an large nc file, but they don't have a time variable. I tried the method described here but when I'm going to see the…
1
vote
1 answer

conda: packages found to be in conflict, but only ONE package is listed. What does this mean?

I'm trying to install the NCAR command language suite ncl, which has some data processing tools for atmospheric scientists. Every time I get the message: conda create -n ncl -c conda-forge ncl ..... UnsatisfiableError: The following specifications…
Luke Davis
  • 2,548
  • 2
  • 21
  • 43
1
vote
1 answer

Read large netcdf data by ncl

I'm reading a large wrfout data(about 100x100 in space, 30 in vertical, 400 in times) by ncl. fid=addfile("wrfout_d03.nc","r") u=fid->U The variable U is about 500M, so it takes much time, and I also need to read other variables.Is there any way…
jstzysq
  • 13
  • 4
1
vote
2 answers

ncl: /lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found (required by ncl)

This is in reference to running the WRF model in my system. I am trying to run the file plotgrids.ncl to ensure that the domain is in the right location before running geogrid.exe . Running the following command in my terminal(ubuntu) ncl…
1
vote
1 answer

How to make the edges of the plot smooth in NCAR command language ( NCL)?

How to make the edges of the plot created by gsn_csm_contour_map smooth instead of using those blue squares? I have tried different fill mode, none of them helped. Is there a active contour function in ncl? Is is possible to create a contour…
Jibei Zhao
  • 31
  • 5
1
vote
1 answer

What is a segment in NCAR Command Language(NCL)

What is a 'segment' used for in NCL (we can create a segment and it contains names of the data but i don t know it's utility) After years of experience using Java and Php programming. I started using NCL, and I am faced with lack of documentation…
soukaina
  • 49
  • 7
1
vote
2 answers

Why does ncl not find netcdf files?

I use ncl-ncarg 6.1.2-7 from Trusty under Ubuntu 14.04. I created a soft link from usr/share/ncarg to usr/lib and set the environment and path by: export NCARG_ROOT="/usr" export PATH=$NCARG_ROOT/bin:$PATH I have a simple_plot_pr.ncl which create a…
Beata
  • 335
  • 2
  • 10
  • 21
0
votes
1 answer

OS.stat on array dataset returns ValueError: stat: embedded null character in path

I have a big netCDF4 array dataset of which I want to get the basic information (type, attributes and dimensions sizes). In the original NCAR Command Level code (which I am rewriting to Python3) the function printVarSummary() was used to extract…
ElsRi
  • 37
  • 1
  • 5
0
votes
0 answers

Taylor's Diagram with NCL: error relate to variable subscripts

I am trying to use Taylor's diagram with NCL, but I discovered the model variable has 4-time steps (e.g var1(time,le,lon,lat)) while the observation variable has 2-time steps (e.g var2(lon,lat)). I have already computed the mean for the model while…
1
2