[ncl-talk] covariance_query
Kunal Bali
kunal.bali9 at gmail.com
Mon Mar 5 22:51:39 MST 2018
Thanks for the suggestions sir.
To set the coordinates, I tried to use the following from the link
https://www.ncl.ucar.edu/Document/Graphics/error_msg.shtml
such as
line 175 *ccv!0="lat"*
line 176 *ccv!1="lon"*
then the error comes as
fatal:Variable (ccv) has (1) dimensions can not write to dimension (1)
fatal:["Execute.c":8640]:Execute: Error occurred at or near line 176 in
file cod_vs_corr.ncl
if I use
line 178 *ccv&lat at units="degrees_north"*
line 179 *ccv&lon at units="degrees_east"*
then the error comes as
fatal:(lat) is not a named dimension in variable (ccv).
fatal:["Execute.c":8640]:Execute: Error occurred at or near line 178 in
file cod_vs_corr.ncl
---
Kunal Bali
On Sat, Mar 3, 2018 at 11:55 PM, Dennis Shea <shea at ucar.edu> wrote:
> [1] warning:escovc: Non-fatal conditions encountered in series or xstd =
> 0.0
>
> This is a 'warning' that a particular series had all constant values.
> Hence its standard deviation is 0.0.
> --------------------
> [2] All that look like
>
> (0) is_valid_latlon2d_attr: Warning: The 'lat2d' attribute must either
> be ....
>
> are from graphics ... NOT from: ccv = escovc(CoD_final,ccr(:,:,0))
>
> (0) *Error: scalar_field: If the input data is 1-dimensional, you must
> set sfXArray and sfYArray to 1-dimensional arrays of the same length.*
>
> Again from graphics
>
> ------------------------
>
> On Tue, Feb 27, 2018 at 10:55 PM, Kunal Bali <kunal.bali9 at gmail.com>
> wrote:
>
>> Dear NCL users,
>>
>> I am getting some warning and error during covariance calculation.
>> could anyone please let me know how can it be sorted out.
>>
>> The summary is given below.
>>
>> Variable: CoD_final
>> Type: float
>> Total Size: 5076540 bytes
>> 1269135 values
>> Number of Dimensions: 2
>> *Dimensions and sizes: [1185] x [1071]*
>> Coordinates:
>> Number Of Attributes: 1
>> _FillValue : -28672
>> (0) min=0 max=1
>>
>> Variable: ccr
>> Type: float
>> Total Size: 5076540 bytes
>> 1269135 values
>> Number of Dimensions: 3
>> *Dimensions and sizes: [1185] x [1071] x [1]*
>> Coordinates:
>> Number Of Attributes: 1
>> _FillValue : -28672
>>
>>
>> *the I triedccv = escovc(CoD_final,ccr(:,:,0))*
>>
>> But after trying this I got several warning
>>
>> warning:escovc: Non-fatal conditions encountered in series or xstd = 0.0
>> (0) is_valid_latlon2d_attr: Warning: The 'lat2d' attribute must either
>> be
>> (0) the same dimension sizes as the data, or one element larger in
>> both directions.
>> (0) Your data will most likely not be overlaid on the map correctly.
>> (0) check_for_y_lat_coord: Warning: Data either does not contain
>> (0) a valid latitude coordinate array or doesn't contain one at all.
>> (0) A valid latitude coordinate array should have a 'units'
>> (0) attribute equal to one of the following values:
>> (0) 'degrees_north' 'degrees-north' 'degree_north' 'degrees north'
>> 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'
>> (0) is_valid_latlon2d_attr: Warning: The 'lon2d' attribute must either
>> be
>> (0) the same dimension sizes as the data, or one element larger in
>> both directions.
>> (0) Your data will most likely not be overlaid on the map correctly.
>> (0) check_for_lon_coord: Warning: Data either does not contain
>> (0) a valid longitude coordinate array or doesn't contain one at all.
>> (0) A valid longitude coordinate array should have a 'units'
>> (0) attribute equal to one of the following values:
>> (0) 'degrees_east' 'degrees-east' 'degree_east' 'degrees east'
>> 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE' 'deg east'
>> (0) *Error: scalar_field: If the input data is 1-dimensional, you
>> must set sfXArray and sfYArray to 1-dimensional arrays of the same length.*
>> warning:create: Bad HLU id passed to create, ignoring it
>>
>>
>>
>>
>> Thank You
>>
>> ---
>> Kunal Bali
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180306/b36910a9/attachment.html>
More information about the ncl-talk
mailing list