By Unidata-netCDF definition a "coordinate variable is a
one dimensional monotonically {in/de}creasing array".
It *must* be numeric. You have
> season: [ond..ond]
> component: [rain..tsfc]
> ens: [..]
> mdl: [cfsv2_jun_init..DePreSys_UKMO_aug_init]
These are NCL strings. They are not numeric. They can not created by:
> multidata&ens = ens
> multidata&mdl = mdl
The & means you are assigning a coordinate (numeric) variable.
---
Also, netCDF3 does not allow variables of type string.
You would hace to create variables of type 'character'
(eg: "tochar")
On 06/06/2011 01:11 AM, gibies george wrote:
> Dear NCL users,
>
> Somebody please suggest a way to eliminate the following warning messages.
>
> I was trying to write my dataset to an nc file.
>
> Thanking you in davance.
>
> *_______________________________________
> ________________Script__________________
> _______________________________________*
> -------------------------
> -----------------------
> ----------------------------
> ---------------------
> --------------------------
>
> multidata@dataset = mdl@analdset + "_" + predef@anal_start_year
> + "_to_" + predef@anal_end_year
> multidata@datavar = datavar
> print("---------------Multimodel Ensemble-------------------")
> print("_____________________________________________________")
> printVarSummary(multidata)
> print("_____________________________________________________")
>
> syout= systemfunc("rm " + mdl@analdset+"_multimodel_data.nc
> <http://multimodel_data.nc>")
> outfile = addfile(mdl@analdset+"_multimodel_data.nc
> <http://multimodel_data.nc>","c")
> outfile->multi_model_data = multidata
>
> return(multidata)
> end ;;; End of function definition get_multimodel_data() ;;;
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> *_______________________________________*
>
> *_________________________________
> ___________ Output _______________
> _________________________________*
>
>
> (0) ---------------Multimodel Ensemble-------------------
> (0) _____________________________________________________
>
>
> Variable: multidata
> Type: float
> Total Size: 272160000 bytes
> 68040000 values
> Number of Dimensions: 7
> Dimensions and sizes: [time | 25] x [lat | 280] x [lon | 360] x
> [season | 1] x [component | 3] x [ens | 1] x [mdl | 9]
> Coordinates:
> time: [1981..2005]
> lat: [-35..35]
> lon: [30..120]
> season: [ond..ond]
> component: [rain..tsfc]
> ens: [..]
> mdl: [cfsv2_jun_init..DePreSys_UKMO_aug_init]
> Number Of Attributes: 18
> unit : ( mm/day, hPa, degC )
> units : ( mm/day, hPa, degC )
> region : indotropic
> ssnend : 12
> ssnbegin : 10
> dataset : ond_skill_1981_to_2005
> datavar : _rain_mslp_tsfc
> anal_start_year : 1981
> anal_end_year : 2005
> latsouth : -35
> latnorth : 35
> lonwest : 30
> loneast : 120
> mpCenterLonF : 75
> novctr : 0
> nosclr : 3
> long_name : _rain_mslp_tsfc
> _FillValue : -9.96921e+36
> (0) _____________________________________________________
> fatal:Attempting to write variable (season) of type (string) which is
> not representable in the format of file (ond_skill_multimodel_data.nc
> <http://ond_skill_multimodel_data.nc>)
> fatal:Trying using a type conversion function
> warning:FileWriteVarVar: Could not write coordinate variable (season) to
> file (ond_skill_multimodel_data), continuing anyway
> fatal:Attempting to write variable (component) of type (string) which is
> not representable in the format of file (ond_skill_multimodel_data.nc
> <http://ond_skill_multimodel_data.nc>)
> fatal:Trying using a type conversion function
> warning:FileWriteVarVar: Could not write coordinate variable (component)
> to file (ond_skill_multimodel_data), continuing anyway
> fatal:Attempting to write variable (ens) of type (string) which is not
> representable in the format of file (ond_skill_multimodel_data.nc
> <http://ond_skill_multimodel_data.nc>)
> fatal:Trying using a type conversion function
> warning:FileWriteVarVar: Could not write coordinate variable (ens) to
> file (ond_skill_multimodel_data), continuing anyway
> fatal:Attempting to write variable (mdl) of type (string) which is not
> representable in the format of file (ond_skill_multimodel_data.nc
> <http://ond_skill_multimodel_data.nc>)
> fatal:Trying using a type conversion function
> warning:FileWriteVarVar: Could not write coordinate variable (mdl) to
> file (ond_skill_multimodel_data), continuing anyway
> warning:Execute: Error occurred at or near line 3188 in file
> /home/gibies/ncl/mylib/lib_gibies_read_data_module.ncl
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jun 6 10:20:43 2011
This archive was generated by hypermail 2.1.8 : Thu Jun 09 2011 - 14:56:48 MDT