[ncl-talk] How to combine many nc files from different folders

Setareh Rahimi setareh.rahimi at gmail.com
Thu Sep 19 10:35:12 MDT 2019


Dear all,
Thank you for your suggestions. However, the problem still exists. I
checked the files individually and found out nothing wrong with them. I run
the script for each year separately and did not get the warnings, but once
run the script for all the years together the warnings appear. I attached
the output from tests that Dave has suggested.
NCL version: 6.6.2
Computer system: macOS Mojave, version 10.14
Best wishes,


On Wed, Sep 18, 2019 at 3:16 AM Dave Allured - NOAA Affiliate <
dave.allured at noaa.gov> wrote:

> Recently there are some known conditions that can cause unknown format and
> corrupted file messages for valid netcdf files.  I recommend diagnosing
> individual files, not using NCL, before dismissing an entire file set as
> corrupted.  Try this black magic first and see if NCL can then read the
> files:
>
>     Bash:       HDF5_USE_FILE_LOCKING=FALSE
>     C-shell:    setenv HDF5_USE_FILE_LOCKING FALSE
>
> If that does not work, then try these tests.  The first two are guaranteed
> to work on all file types.
>
>     file data.nc
>     od -c -N16 data.nc
>     h5dump -BH data.nc
>     ncdump -k data.nc
>     ncdump -sh data.nc
>
> If the problem has not become obvious, then post output from these tests
> to this mailing list.  If more than 40 lines long, put all output into a
> text file with name ending in .txt, and send as a file attachment to your
> message.  Please do not send any screen shots.
>
> Also send your NCL version number and type of computer system.
>
> --Dave
>
>
> On Tue, Sep 17, 2019 at 3:27 PM Dennis Shea via ncl-talk <
> ncl-talk at ucar.edu> wrote:
>
>> As the message states, the file is "*corrupted*".  This is not an NCL
>> issue.
>>
>> [1] delete the file[s] and try reacquiring them
>> [2] Possibly, the source files are corrupted.
>> ---
>> FYI: There are some Persiann examples.
>> *https://www.ncl.ucar.edu/Applications/HiResPrc.shtml*
>> <https://www.ncl.ucar.edu/Applications/HiResPrc.shtml>
>>
>>
>> On Tue, Sep 17, 2019 at 12:15 PM Setareh Rahimi <setareh.rahimi at gmail.com>
>> wrote:
>>
>>> Dear Adam, and Dennis,
>>> Thanks for your help. hopefully I could combine those files together,
>>> but NCL tells there is something wrong with some files (attached image). In
>>> order to check what could be wrong, I redownload 1983 files again and got
>>> many warning for the second time. Any suggestion to remove those warning,
>>> please?
>>> Best wishes,
>>>
>>

-- 
S.Rahimi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190919/e5f12e94/attachment.html>
-------------- next part --------------
file PERSIANN-CDR_v01r01_19830101_c20140523.nc
PERSIANN-CDR_v01r01_19830101_c20140523.nc: Hierarchical Data Format (version 5) data
========================================================================================

od -c -N16 PERSIANN-CDR_v01r01_19830101_c20140523.nc
0000000 211   H   D   F  \r  \n 032  \n 002  \b  \b  \0  \0  \0  \0  \0
0000020
========================================================================================


 h5dump -BH  PERSIANN-CDR_v01r01_19830101_c20140523.nc
HDF5 "PERSIANN-CDR_v01r01_19830101_c20140523.nc" {
SUPER_BLOCK {
   SUPERBLOCK_VERSION 2
   FREELIST_VERSION 0
   SYMBOLTABLE_VERSION 0
   OBJECTHEADER_VERSION 0
   OFFSET_SIZE 8
   LENGTH_SIZE 8
   BTREE_RANK 16
   BTREE_LEAF 4
   ISTORE_K 32
   USER_BLOCK {
      USERBLOCK_SIZE 0
   }
}
GROUP "/" {
   ATTRIBUTE "Conventions" {
      DATATYPE  H5T_STRING {
         STRSIZE 6;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "Metadata_Conventions" {
      DATATYPE  H5T_STRING {
         STRSIZE 62;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "cdm_data_type" {
      DATATYPE  H5T_STRING {
         STRSIZE 4;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "cdr_program" {
      DATATYPE  H5T_STRING {
         STRSIZE 32;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "cdr_variable" {
      DATATYPE  H5T_STRING {
         STRSIZE 13;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "comment" {
      DATATYPE  H5T_STRING {
         STRSIZE 100;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "contributor_name" {
      DATATYPE  H5T_STRING {
         STRSIZE 62;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "contributor_role" {
      DATATYPE  H5T_STRING {
         STRSIZE 48;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "creator_email" {
      DATATYPE  H5T_STRING {
         STRSIZE 16;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "creator_name" {
      DATATYPE  H5T_STRING {
         STRSIZE 15;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "creator_url" {
      DATATYPE  H5T_STRING {
         STRSIZE 28;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "date_created" {
      DATATYPE  H5T_STRING {
         STRSIZE 20;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "datetime" {
      DATATYPE  H5T_STRING {
         STRSIZE 10;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "geospatial_lat_max" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
   }
   ATTRIBUTE "geospatial_lat_min" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
   }
   ATTRIBUTE "geospatial_lat_resolution" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
   }
   ATTRIBUTE "geospatial_lat_units" {
      DATATYPE  H5T_STRING {
         STRSIZE 13;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "geospatial_lon_max" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
   }
   ATTRIBUTE "geospatial_lon_min" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
   }
   ATTRIBUTE "geospatial_lon_resolution" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
   }
   ATTRIBUTE "geospatial_lon_units" {
      DATATYPE  H5T_STRING {
         STRSIZE 12;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "id" {
      DATATYPE  H5T_STRING {
         STRSIZE 41;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "institution" {
      DATATYPE  H5T_STRING {
         STRSIZE 96;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "keywords" {
      DATATYPE  H5T_STRING {
         STRSIZE 42;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "keywords_vocabulary" {
      DATATYPE  H5T_STRING {
         STRSIZE 32;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "license" {
      DATATYPE  H5T_STRING {
         STRSIZE 37;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "metadata_link" {
      DATATYPE  H5T_STRING {
         STRSIZE 20;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "naming_authority" {
      DATATYPE  H5T_STRING {
         STRSIZE 13;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "product_version" {
      DATATYPE  H5T_STRING {
         STRSIZE 6;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "project" {
      DATATYPE  H5T_STRING {
         STRSIZE 97;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "source" {
      DATATYPE  H5T_STRING {
         STRSIZE 294;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "spatial_resolution" {
      DATATYPE  H5T_STRING {
         STRSIZE 12;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "standard_name_vocabulary" {
      DATATYPE  H5T_STRING {
         STRSIZE 46;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "summary" {
      DATATYPE  H5T_STRING {
         STRSIZE 116;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "time_coverage_end" {
      DATATYPE  H5T_STRING {
         STRSIZE 17;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "time_coverage_start" {
      DATATYPE  H5T_STRING {
         STRSIZE 17;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   ATTRIBUTE "title" {
      DATATYPE  H5T_STRING {
         STRSIZE 161;
         STRPAD H5T_STR_NULLTERM;
         CSET H5T_CSET_ASCII;
         CTYPE H5T_C_S1;
      }
      DATASPACE  SCALAR
   }
   DATASET "lat" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 480 ) / ( 480 ) }
      ATTRIBUTE "CLASS" {
         DATATYPE  H5T_STRING {
            STRSIZE 16;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "NAME" {
         DATATYPE  H5T_STRING {
            STRSIZE 4;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "REFERENCE_LIST" {
         DATATYPE  H5T_COMPOUND {
            H5T_REFERENCE { H5T_STD_REF_OBJECT } "dataset";
            H5T_STD_I32LE "dimension";
         }
         DATASPACE  SIMPLE { ( 2 ) / ( 2 ) }
      }
      ATTRIBUTE "bounds" {
         DATATYPE  H5T_STRING {
            STRSIZE 8;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "long_name" {
         DATATYPE  H5T_STRING {
            STRSIZE 8;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "standard_name" {
         DATATYPE  H5T_STRING {
            STRSIZE 8;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "units" {
         DATATYPE  H5T_STRING {
            STRSIZE 13;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "valid_max" {
         DATATYPE  H5T_IEEE_F32LE
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
      }
      ATTRIBUTE "valid_min" {
         DATATYPE  H5T_IEEE_F32LE
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
      }
   }
   DATASET "lat_bnds" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 480, 2 ) / ( 480, 2 ) }
      ATTRIBUTE "DIMENSION_LIST" {
         DATATYPE  H5T_VLEN { H5T_REFERENCE { H5T_STD_REF_OBJECT }}
         DATASPACE  SIMPLE { ( 2 ) / ( 2 ) }
      }
   }
   DATASET "lon" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 1440 ) / ( 1440 ) }
      ATTRIBUTE "CLASS" {
         DATATYPE  H5T_STRING {
            STRSIZE 16;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "NAME" {
         DATATYPE  H5T_STRING {
            STRSIZE 4;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "REFERENCE_LIST" {
         DATATYPE  H5T_COMPOUND {
            H5T_REFERENCE { H5T_STD_REF_OBJECT } "dataset";
            H5T_STD_I32LE "dimension";
         }
         DATASPACE  SIMPLE { ( 2 ) / ( 2 ) }
      }
      ATTRIBUTE "bounds" {
         DATATYPE  H5T_STRING {
            STRSIZE 8;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "long_name" {
         DATATYPE  H5T_STRING {
            STRSIZE 9;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "standard_name" {
         DATATYPE  H5T_STRING {
            STRSIZE 9;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "units" {
         DATATYPE  H5T_STRING {
            STRSIZE 12;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "valid_max" {
         DATATYPE  H5T_IEEE_F32LE
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
      }
      ATTRIBUTE "valid_min" {
         DATATYPE  H5T_IEEE_F32LE
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
      }
   }
   DATASET "lon_bnds" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 1440, 2 ) / ( 1440, 2 ) }
      ATTRIBUTE "DIMENSION_LIST" {
         DATATYPE  H5T_VLEN { H5T_REFERENCE { H5T_STD_REF_OBJECT }}
         DATASPACE  SIMPLE { ( 2 ) / ( 2 ) }
      }
   }
   DATASET "nv" {
      DATATYPE  H5T_IEEE_F32BE
      DATASPACE  SIMPLE { ( 2 ) / ( 2 ) }
      ATTRIBUTE "CLASS" {
         DATATYPE  H5T_STRING {
            STRSIZE 16;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "NAME" {
         DATATYPE  H5T_STRING {
            STRSIZE 64;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "REFERENCE_LIST" {
         DATATYPE  H5T_COMPOUND {
            H5T_REFERENCE { H5T_STD_REF_OBJECT } "dataset";
            H5T_STD_I32LE "dimension";
         }
         DATASPACE  SIMPLE { ( 2 ) / ( 2 ) }
      }
   }
   DATASET "precipitation" {
      DATATYPE  H5T_IEEE_F32LE
      DATASPACE  SIMPLE { ( 1, 1440, 480 ) / ( 1, 1440, 480 ) }
      ATTRIBUTE "DIMENSION_LIST" {
         DATATYPE  H5T_VLEN { H5T_REFERENCE { H5T_STD_REF_OBJECT }}
         DATASPACE  SIMPLE { ( 3 ) / ( 3 ) }
      }
      ATTRIBUTE "_FillValue" {
         DATATYPE  H5T_IEEE_F32LE
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
      }
      ATTRIBUTE "cell_method" {
         DATATYPE  H5T_STRING {
            STRSIZE 3;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "long_name" {
         DATATYPE  H5T_STRING {
            STRSIZE 60;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "missing_value" {
         DATATYPE  H5T_IEEE_F32LE
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
      }
      ATTRIBUTE "standard_name" {
         DATATYPE  H5T_STRING {
            STRSIZE 20;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "units" {
         DATATYPE  H5T_STRING {
            STRSIZE 2;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "valid_max" {
         DATATYPE  H5T_IEEE_F32LE
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
      }
      ATTRIBUTE "valid_min" {
         DATATYPE  H5T_IEEE_F32LE
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
      }
   }
   DATASET "time" {
      DATATYPE  H5T_STD_I32LE
      DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
      ATTRIBUTE "CLASS" {
         DATATYPE  H5T_STRING {
            STRSIZE 16;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "NAME" {
         DATATYPE  H5T_STRING {
            STRSIZE 5;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "REFERENCE_LIST" {
         DATATYPE  H5T_COMPOUND {
            H5T_REFERENCE { H5T_STD_REF_OBJECT } "dataset";
            H5T_STD_I32LE "dimension";
         }
         DATASPACE  SIMPLE { ( 1 ) / ( 1 ) }
      }
      ATTRIBUTE "long_name" {
         DATATYPE  H5T_STRING {
            STRSIZE 4;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "standard_name" {
         DATATYPE  H5T_STRING {
            STRSIZE 4;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
      ATTRIBUTE "units" {
         DATATYPE  H5T_STRING {
            STRSIZE 27;
            STRPAD H5T_STR_NULLTERM;
            CSET H5T_CSET_ASCII;
            CTYPE H5T_C_S1;
         }
         DATASPACE  SCALAR
      }
   }
}
}
=======================================================================================

 ncdump -k PERSIANN-CDR_v01r01_19830101_c20140523.nc 
netCDF-4
========================================================================================


ncdump -sh PERSIANN-CDR_v01r01_19830101_c20140523.nc
netcdf PERSIANN-CDR_v01r01_19830101_c20140523 {
dimensions:
	time = 1 ;
	lat = 480 ;
	lon = 1440 ;
	nv = 2 ;
variables:
	int time(time) ;
		time:standard_name = "time" ;
		time:long_name = "time" ;
		time:units = "days since 1979-01-01 0:0:0" ;
		time:_Storage = "contiguous" ;
		time:_Endianness = "little" ;
	float lat(lat) ;
		lat:standard_name = "latitude" ;
		lat:long_name = "latitude" ;
		lat:units = "degrees_north" ;
		lat:valid_max = 60.f ;
		lat:valid_min = -60.f ;
		lat:bounds = "lat_bnds" ;
		lat:_Storage = "contiguous" ;
	float lon(lon) ;
		lon:standard_name = "longitude" ;
		lon:long_name = "longitude" ;
		lon:units = "degrees_east" ;
		lon:valid_max = 360.f ;
		lon:valid_min = 0.f ;
		lon:bounds = "lon_bnds" ;
		lon:_Storage = "contiguous" ;
	float lon_bnds(lon, nv) ;
		lon_bnds:_Storage = "contiguous" ;
	float lat_bnds(lat, nv) ;
		lat_bnds:_Storage = "contiguous" ;
	float precipitation(time, lon, lat) ;
		precipitation:missing_value = -9999.f ;
		precipitation:standard_name = "precipitation_amount" ;
		precipitation:long_name = "NOAA Climate Data Record of PERSIANN-CDR daily precipitation" ;
		precipitation:units = "mm" ;
		precipitation:valid_max = 999999.f ;
		precipitation:valid_min = 0.f ;
		precipitation:cell_method = "sum" ;
		precipitation:_FillValue = -1.f ;
		precipitation:_Storage = "chunked" ;
		precipitation:_ChunkSizes = 1, 1440, 480 ;
		precipitation:_DeflateLevel = 4 ;

// global attributes:
		:datetime = "1983-01-01" ;
		:Conventions = "CF-1.6" ;
		:title = "NOAA Climate Data Record (CDR) of Precipitation Estimation from Remotely Sensed Information using Artificial Neural Networks (PERSIANN-CDR), Version 1 Revision 1" ;
		:comment = "Daily PERSIANN-CDR precipitation estimates for long-term data record. [NOTE: v01r01 replaces v01r00]" ;
		:source = "GRIDSAT-B1.1983.01.01.00.v02r01.nc,GRIDSAT-B1.1983.01.01.03.v02r01.nc,GRIDSAT-B1.1983.01.01.06.v02r01.nc,GRIDSAT-B1.1983.01.01.09.v02r01.nc,GRIDSAT-B1.1983.01.01.12.v02r01.nc,GRIDSAT-B1.1983.01.01.15.v02r01.nc,GRIDSAT-B1.1983.01.01.18.v02r01.nc,GRIDSAT-B1.1983.01.01.21.v02r01.nc,gpcp_m8301.bin" ;
		:Metadata_Conventions = "CF-1.6,Unidata Dataset Discovery v1.0, NOAA CDR v1.0, GDS v2.0" ;
		:standard_name_vocabulary = "CF Standard Name Table (v26, 08 November 2013)" ;
		:id = "PERSIANN-CDR_v01r01_19830101_c20140523.nc" ;
		:naming_authority = "gov.noaa.ncdc" ;
		:date_created = "2014-05-23T02:41:51Z" ;
		:license = "No constraints on data access or use." ;
		:summary = "Daily near global precipitation estimates at 0.25 deg resolution over 30-year record. [NOTE: v01r01 replaces v01r00]" ;
		:keywords = "EARTH SCIENCE > ATMOSPHERE > PRECIPITATION" ;
		:keywords_vocabulary = "GCMD Keywords, Version 8.0.0.0.0" ;
		:cdm_data_type = "Grid" ;
		:project = "Satellite Data Support for Hydrologic and Water Resources Planning and Management.  Sponsor: NOAA" ;
		:creator_name = "Dan Braithwaite" ;
		:creator_email = "dbraithw at uci.edu" ;
		:creator_url = "http://www.chrs.web.uci.edu/" ;
		:institution = "UC-IRVINE/CHRS, Center for Hydrometeorology and Remote Sensing, University of California, Irvine" ;
		:geospatial_lat_min = -60.f ;
		:geospatial_lat_max = 60.f ;
		:geospatial_lon_min = 0.f ;
		:geospatial_lon_max = 360.f ;
		:geospatial_lat_units = "degrees_north" ;
		:geospatial_lat_resolution = 0.25f ;
		:geospatial_lon_units = "degrees_east" ;
		:geospatial_lon_resolution = 0.25f ;
		:time_coverage_start = "1983-01-01T00:00Z" ;
		:time_coverage_end = "1983-01-01T23:59Z" ;
		:contributor_name = "Soroosh Sorooshian, Kuolin Hsu, Hamed Ashouri, Dan Braithwaite" ;
		:contributor_role = "PrincipalInvestigator, Professor, Author, Author" ;
		:cdr_program = "NOAA Climate Data Record Program" ;
		:cdr_variable = "precipitation" ;
		:metadata_link = "gov.noaa.ncdc:C00854" ;
		:product_version = "v01r01" ;
		:spatial_resolution = "0.25 degrees" ;
		:_Format = "netCDF-4" ;











More information about the ncl-talk mailing list