[ncl-talk] SST plot with strange range

Guilherme Martins jgmsantos at gmail.com
Thu Nov 12 09:24:14 MST 2015


Or try

line 12:

 oisst   = *short2flt(*in_oisst_f->sst*)*

Guilherme



Em qui, 12 de nov de 2015 às 14:20, Arne Melsom <arne.melsom at met.no>
escreveu:

> So, simply replace the line
>  oisst          = in_oisst_f->sst
> by
>  scale  = in_oisst_f->sst at scale_factor
>  offset = in_oisst_f->sst at add_offset
>  oisst  = scale*in_oisst_f->sst + offset
>
>
> ----- Original Message -----
> > Sorry, I didn't look at your attachments and now that I have, the data
> > are definitely packed in shorts:
> >
> >       short sst(time, lat, lon) ;
> >               sst:standard_name = "sea_surface_temperature" ;
> >               sst:long_name = "Monthly Mean of Sea Surface Temperature" ;
> >               sst:units = "degC" ;
> >               sst:add_offset = 0.f ;
> >               sst:scale_factor = 0.01f ;
> >               sst:_FillValue = 32767s ;
> >               sst:missing_value = 32767s ;
> >               sst:unpacked_valid_range = -5.f, 40.f ;
> >               sst:actual_range = -1.8f, 35.31f ;
> >               sst:precision = 2s ;
> >               sst:least_significant_digit = 2s ;
> >               sst:var_desc = "Sea Surface Temperature" ;
> >               sst:dataset = "NOAA Optimum Interpolation (OI) SST V2" ;
> >               sst:level_desc = "Surface" ;
> >               sst:statistic = "Mean" ;
> >               sst:parent_stat = "Weekly Mean" ;
> >               sst:cell_methods = "time: mean (monthly from weekly values
> > interpolated to daily)" ;
> >
> > In your script, call:
> >
> > oisst         = short2flt(in_oisst_f->sst)
> >
> > when you read in the data.  Ferret must automatically apply the
> > scale/offset - NCL doesn't.
> >
> > Don
> >
> > On 11/12/15 9:07 AM, Izidine Pinto wrote:
> > > Dear NCL users,
> > >
> > > I was wondering if anyone can help me solving my problem. It might be
> > > simple but I'm missing something.
> > > When I plot it in NCL I get big numbers of SSTs but when I plot in
> > > ferret I get what I expect (temperature range -2:34 degC)
> > > Please see attached the working example and the figure.
> > >
> > >
> > > Thank you
> > > Izidine
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > ncl-talk mailing list
> > > ncl-talk at ucar.edu
> > > List instructions, subscriber options, unsubscribe:
> > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> > >
> >
> > --
> > Don Murray
> > NOAA/ESRL/PSD and CU-CIRES
> > 303-497-3596
> > http://www.esrl.noaa.gov/psd/people/don.murray/
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk at ucar.edu
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-- 
------------------------------------------------------------------------------------------
Guilherme Martins
Instituto Nacional de Pesquisas Espaciais (INPE)
Centro de Ciência do Sistema Terrestre (CCST) - Prédio CES
Grupo de Superfície-Biosfera-Atmosfera (GSBA)
Telefone (INPE/CP): +55 12 3186-9520  ||  Celular (TIM): +55 12 98152-8580
E-mail: guilherme.martins at inpe.br  ||  jgmsantos at gmail.com
Skype: guilherme.martins.
Homepage: https://sites.google.com/site/jgmsantos
Currículo Lattes: http://lattes.cnpq.br/5997657584785803
------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151112/e003d92a/attachment.html 


More information about the ncl-talk mailing list