[Thread Prev][Thread Next][Index]

Re: [ferret_users] Spatial regridding



I suspect the variable definition is overshadowing the variable of the same name in the new dataset. After saving cg to c96.nc, cancel the variable cg ("cancel var cg"), then open ("use") the c96.nc dataset.

Karl

On Tue, Jul 18, 2017 at 6:23 AM, Stephy Ann Libera <stephyann.libera23@xxxxxxxxx> wrote:
Hello Sir
I am trying to regrid data of different resolutions to one single type,
from the code I got, I was trying it and encounters error. The terminal script is attached. What changes should I make?

yes? use chl96_12.nc
*** NOTE: Axis coordinates are decreasing-ordered. Reversing ordering for axis lat
*** NOTE: Ignored modulo length exceeding axis length: lon
*** NOTE: Internal err: unknown data type
yes? sh da
currently SET data sets:
1> ./chl96_12.nc (default)
name title I J K L M N
CHLOR_A Chlorophyll Concentration, OCI 1:4320 1:2160 ... ... ... ...
PALETTE 1:256 1:3 ... ... ... ...

yes? sh grid chlor_a
GRID GJT1
name axis # pts start end subset
LON LONGITUDE 4320 r 179.96W(-179.96) 179.96E(179.96) full
LAT LATITUDE 2160 r 89.958S 89.958N full
normal Z
normal T
normal E
normal F

yes? fill chlor_a
yes? def axis/x=-180:180:0.25/units=degrees lon
Replacing definition of axis LON
*** NOTE: grid GJT1 used by data set chl96_12
*** NOTE: Redefinition may alter apparent contents of data set
yes? def axis/y=-70:-50:0.25/units=degrees lat
Replacing definition of axis LAT
*** NOTE: grid GJT1 used by data set chl96_12
*** NOTE: Redefinition may alter apparent contents of data set
yes? def grid/x=lon/y=lat chl1
yes? let cg=chlor_a[g=chl1@ave]
yes? save/file=c96.nc/clobber cg
LISTing to file c96.nc
yes? use c96.nc
yes? fill cg
**ERROR: variable unknown or not in data set: CHLOR_A[G=CHL1@AVE]




--
Karl M. Smith, Ph.D.
JISAO Univ. Wash. and PMEL NOAA
"The contents of this message are mine personally and do
not necessarily reflect any position of the Government
or the National Oceanic and Atmospheric Administration."

[Thread Prev][Thread Next][Index]