[ncl-talk] Dados_Modis

Dennis Shea shea at ucar.edu
Fri Nov 18 15:14:25 MST 2016


Did you look at your data file?

netcdf AQUA {
dimensions:
        Cell_Across_Swath_mod04 = 135 ;
        Cell_Along_Swath_mod04 = 203 ;
variables:
        short
Deep_Blue_Aerosol_Optical_Depth_550_Land(Cell_Along_Swath_mod04,
Cell_Across_Swath_mod04) ;
                Deep_Blue_Aerosol_Optical_Depth_550_Land:long_name = "AOT
at 0.55 micron for land with all quality data (Quality flag=1,2,3)" ;
                Deep_Blue_Aerosol_Optical_Depth_550_Land:units = "None" ;
                Deep_Blue_Aerosol_Optical_Depth_550_Land:add_offset = 0.f ;
                Deep_Blue_Aerosol_Optical_Depth_550_Land:scale_factor =
0.001f ;
                Deep_Blue_Aerosol_Optical_Depth_550_Land:_FillValue =
-9999s ;
                Deep_Blue_Aerosol_Optical_Depth_550_Land:missing_value =
-9999s ;
                Deep_Blue_Aerosol_Optical_Depth_550_Land:hdf_name =
"Deep_Blue_Aerosol_Optical_Depth_550_Land" ;

Deep_Blue_Aerosol_Optical_Depth_550_Land:Geolocation_Pointer = "Internal
geolocation arrays" ;

Deep_Blue_Aerosol_Optical_Depth_550_Land:Cell_Across_Swath_Sampling = 5,
1345, 10 ;

Deep_Blue_Aerosol_Optical_Depth_550_Land:Cell_Along_Swath_Sampling = 5,
2025, 10 ;
                Deep_Blue_Aerosol_Optical_Depth_550_Land:Parameter_Type =
"Output" ;
                Deep_Blue_Aerosol_Optical_Depth_550_Land:coordinates =
"nav_lon nav_lat" ;

This last attribute is telling you that the variable coordinates are
variables named: nav_lon & nav_lat. These variables are not on the file.
Ideally, the file should be recreated with the appropriate lat/lon arrays.

These are *swath* data. Likely, they would be dimensions:
nav_lat(Cell_Along_Swath_mod04,Cell_Across_Swath_mod04)
nav_lon(Cell_Along_Swath_mod04,Cell_Across_Swath_mod04)


===

*Maybe* you could create needed data. The files contains

      GROUP                  = GRINGPOINT
        CLASS                = "1"

        OBJECT                 = GRINGPOINTLONGITUDE
          NUM_VAL              = 4
          CLASS                = "1"
          VALUE                = (-83.3803843568985, -117.115256681383,
-118.339826728981, -92.6683760072062)
        END_OBJECT             = GRINGPOINTLONGITUDE

        OBJECT                 = GRINGPOINTLATITUDE
          NUM_VAL              = 4
          CLASS                = "1"
          VALUE                = (-48.4201205951382, -53.2247750652399,
-34.9912599825019, -31.5645095179126)
        END_OBJECT             = GRINGPOINTLATITUDE

===
This would be your responsibility.

Good Luck







On Fri, Nov 18, 2016 at 12:58 PM, Mateus Dias Nunes <
nunes.mateusdias at gmail.com> wrote:

> Hello,
>
> I have a problem that seems simple, but I can not solve it.
>
> I have a satellite data from Modis https://www.dropbox.com/
> s/gklux3ia2kqklum/AQUA.nc?dl=0
>
> But every time I try to plot it it presents the following error:
>
> (0) check_for_y_lat_coord: Warning: Data does not contain a valid latitude
> coordinate array or does not contain one at all.
> (0) A valid latitude coordinate array should have a 'units' attribute
> equal to one of the following values:
> (0) 'degrees_north' 'degrees-north' 'degree_north' 'degrees north'
> 'degrees_N' 'Degrees_north' 'degree_N' 'degreesN' 'degreesN' 'deg north'
> (0) check_for_lon_coord: Warning: Data does not contain a valid longitude
> coordinate array or does not contain one at all.
> (0) A valid longitude coordinate array should have a 'units' attribute
> equal to one of the following values:
> (0) 'degrees_east' 'degrees-east' 'degrees_east' 'degrees east'
> 'degrees_E' 'Degrees_east' 'degree_E' 'degreesE' 'degreesE' 'deg east'
> Warning: ContourPlotInitialize: no valid values ​​in scalar field;
> ContourPlot not possible: [errno = 1101]
>
> Below the script link.
>
> https://www.dropbox.com/s/6ezzfy12974veek/abrirdadoMODIS.ncl?dl=0
> I've tried to use the suggestions proposed on the ncl website, but I did
> not succeed. I think it's because it does not have a coordinate associated
> with lat and lon.
>
> Thank you for your help.
> ____________________________________________________________
> ________________
>
> MATEUS DIAS NUNES
> MESTRANDO DO PROGRAMA DE PÓS-GRADUAÇÃO EM METEOROLOGIA - PPGMET
> GRUPO DE ESTUDOS EM POLUIÇÃO ATMOSFÉRICA - GEPA
> UNIVERSIDADE FEDERAL DE PELOTAS - UFPEL
> TELEFONE: +55 (53) 8112-5154
> SKYPE: mateus.diasnunes
> ____________________________________________________________
> ________________
>
>
>
>  Sent with Mailtrack
> <https://mailtrack.io/install?source=signature&lang=en&referral=nunes.mateusdias@gmail.com&idSignature=22>
>
> _______________________________________________
> 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/20161118/3699b89c/attachment.html 


More information about the ncl-talk mailing list