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
0
votes
0 answers

95% significance plot with NCL

i want to plot a contour of PBLH difference between 2 wrf-chem simulations. I have the netcdf means (attached files), and i want to draw contour of 95% significance levels, but the script did not work, can you give your suggestions please? "Error:…
0
votes
0 answers

Plotting of contours and shading them

I am plotting contour plots using matplotlib and want to plot contour lines having an accuracy of almost eight digits (this is priority) and between a certain range may be 0.99999999 ≤ |G| ≤ 1.00000001. I have written the following code: khmax =…
Avii
  • 164
  • 12
0
votes
1 answer

Save out put merged nc files on NCL

I have tried to merge multiple nc file using ncl in ubuntu windows 10 platform. i have used the following simple code. fils = systemfunc("ls *.nc") ; checks all files with nc file extensions f1 = addfiles(fils,"r") ; reads the files and assigns them…
Yon Balcha
  • 29
  • 6
0
votes
1 answer

NCL Draw a map without the sourrounding frame

eI'm working with NCL 6.6.2 under Debian and wan't to create some projection images. How can i prevent to draw a frame around the map. I cannot find the right Attribute at the moment. ;================================================; ; …
huckfinn
  • 644
  • 6
  • 23
0
votes
0 answers

Regrid, from 0.5 deg to 0.05deg CDO/NCO

I have two .nc files: zmksrf_lai.nc, and zmksrf_pft.nc. I want to interpolate the 0.5 degree LAI file into 0.05 degree PFT file, so that I have high resolution LAI data. I tried CDO, and also ncremap, but did not work. Your suggestion is highly…
user3652962
  • 453
  • 1
  • 4
  • 13
0
votes
1 answer

Problem with resource files with PyNGL/PyNio

I am trying to translate code from NCL to PyNGL/PyNio. As I have read on the transition guide, the handling of resource files for the plotting routines should work the same way as in NCL. However, in my scripts, python does not include any…
Sile
  • 1
0
votes
1 answer

NCL cannot open scripts from other directories

I'm using NCL scripts that open other NCL scripts. It seems that NCL scripts in the same directory open fine, but if they should be taken from another directory (with the same parent directory), they cannot be opened. It seems that NCL has not the…
0
votes
0 answers

Is there any way we can draw svg path in NCL?

I want to draw the Chinese words in NCL with the TTF font. I have converted the TTF fonts to svg paths. If I can find a way to draw the svg path in NCL, I think we can draw every word for all the languages, without any limitation. The svg path data…
0
votes
1 answer

Problems when i convert Grib2 to Netcdf4

I got some problems when i try to convert some grib files form CFSR. when i use ncl_convert2ncin the unix shell, the nc file information is like this : netcdf flxf01.gdas.197901 { dimensions: ygrid_0 = UNLIMITED ; // (0 currently) …
Yuhang Pan
  • 35
  • 1
  • 1
  • 6
0
votes
1 answer

Recreate NCL bin_avg function in python

I am trying to recreate NCL's bin_avg function in python. The function takes in a list of latitudes, longitudes, and observation values at those points, and calculates the average value of the observations contained within each box in some grid. The…
hm8
  • 1,381
  • 3
  • 21
  • 41
0
votes
2 answers

indices of 2D lat lon data

I am trying to find the equivalent (if there exists one) of an NCL function that returns the indices of two-dimensional latitude/longitude arrays closest to a user-specified latitude/longitude coordinate pair. This is the link to the NCL function…
pwprnt
  • 521
  • 3
  • 9
  • 27
0
votes
1 answer

Using a loop in ncl to sort through files

I have 50 files that I want to run a script on one after the other, and to save the generated graph with a unique name each time. My script to create the graph is fine, but looping through the 50 files is not. I have left out many of the resources…
cohara
  • 111
  • 3
  • 19
-1
votes
1 answer

Converting hdf5 file to nc file using Python

guys I have a list of hdf5 files in my directory and I want to convert hdf5 files to nc files. Is there a way to do this in Python? I tried using bash but encountered a lot of problems in the wsl. So I want to do this in Python. I suppose there's a…
Adib
  • 1
  • 1
-2
votes
1 answer

Are there python functions to grab netcdf indices, counts by value, and etc

I am not experienced in python, and I am converting an NCL script to python, in hopes python will run much faster. Searching around, I am not finding an answer to what I think are the simplest computations in the NCL script. Looking how the tougher…
user2030765
  • 149
  • 14
1
2