[ncl-talk] Data Extraction
Dennis Shea
shea at ucar.edu
Sat Feb 18 08:57:07 MST 2017
The file you sent has a .rc extension. This is not a recognized file
extension. I changed it to a .nc extension
%> mv TES-Aura_L2-O3-Nadir_Megacity_v006_Litev08.rc
TES-Aura_L2-O3-Nadir_Megacity_v006_Litev08.nc
Then, I used
%> ncdump -h TES-Aura_L2-O3-Nadir_Megacity_v006_Litev08.nc >&!
out_630.TES_Nadir
The output (out_630.TES_Nadir) is attached.
====================================
NCL 6.3.0
%> ncl_filedump TES-Aura_L2-O3-Nadir_Megacity_v006_Litev08.nc | less
NCL reads the file just fine. However, by netCDF rule, the _FillValue
associated with a variable should match the type of the variable with which
it is associated.
variable (float); _FillValue (float)
variable (byte); _FillValue (byte)
...etc...
This file sometimes has a mismatch so ncl_filedump (unlike ncdump -h) will
issue a warning message like
warning:NetOpenFile: MissingToFillValue option set True, but missing_value
attribute and data variable (city) types differ: not adding virtual
_FillValue attribute
Actually, this is valuable information. You should be aware of this. The
TES file is technically not a good netCDF file.
===
In an NCL script, you can turn off the warning messages via:
*setfileoption*("nc","*MissingToFillValue*", False)
f = addfile("TES-Aura_L2-O3-Nadir_Megacity_v006_Litev08.nc", "r")
https://www.ncl.ucar.edu/Document/Functions/Built-in/setfileoption.shtmn
<https://www.ncl.ucar.edu/Document/Functions/Built-in/setfileoption.shtml>
On Fri, Feb 17, 2017 at 12:53 AM, Najib Yusuf <najibgal at yahoo.com> wrote:
> Hello Denish,
>
> [1] TES-Aura_L2-O3-Nadir_Megacity_v006_Litev08
>
> [2] I tried opening the data "ncdump" it has open but not in readable
> format.
>
> [3] NCL version 6.3.0
>
>
> Najib
>
>
>
> On Thursday, February 16, 2017 4:01 PM, Dennis Shea <shea at ucar.edu> wrote:
>
>
> re: " ... but I am having trouble extracting a parameter from TES data."
>
> [1] What type of file: L1B (Nadir), L2 (Nadir and Ancillary), and L3
> (Gridded)?
> [2] Can you please show what you have tried?
> [3] What version of NCL are you using?
> %> ncl -V
>
>
>
>
>
>
> On Thu, Feb 16, 2017 at 1:54 AM, Najib Yusuf <najibgal at yahoo.com> wrote:
>
> Dear all,
> I want to compare TES data with model output using NCL but I am having
> trouble extracting a parameter from TES data.
> Kindly assist me on how to achieve this.
>
> Thank you.
>
>
> Najib Yusuf
> Centre for Atmospheric Research
> Anyigba. Nigeria.
> +234 80 371 4158
>
> ______________________________ _________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/ mailman/listinfo/ncl-talk
> <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170218/0caf3510/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out_630.TES_Nadir
Type: application/octet-stream
Size: 25564 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170218/0caf3510/attachment.obj
More information about the ncl-talk
mailing list