Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extending existing plugins to open Level 3 data (#13)
* Extend the definition of MODIS_L3 to include monthly files. * Rename the CCI products with a _L2 suffix, to be consistent with the MODIS products. * Minor, pedantic code tidying. * Workaround for badly named variabled in PP files. * Removing warnings from Iris 2.0.0 and pyHDF 0.9.0. * Remove Aeronet from AProduct.get_variable_names() as there are many other suffixes. * Extend the Aeronet routines to read the files from the Version 3 Direct Sun Algorithm, either version of the Spectral Decomposition Algorithm, and the Maritime Aerosol Network. * A useful addition to the HDF_SDS class, returning an OrderedDict of the available dimensions. * Extend the CCI plugin to open Level 3 data. These most inherit from NetCDF_Gridded. * Switch from linecache to islice to obtain a few lines from an Aeronet file. Aeronet now distributes it's all-sites data as a single file, which spans 10s of Gb. linecache opens the entire file, which is rather resource intensive. islice uses minimal resources when the file is only being accessed a few times. * A few bits of tidying/warning elimination forgotten in a previous commit. * Missing values for MAN files were more complicated than originally thought. * get_aeronet_file_variables() returns a unique list of length equal to the data. In some Aeronet versions, only the first Exact_Wavelength field is named. AOD_Empty can be repeated. Each of these are now listed in full, appending .{} to the name. Also, the exact names for the geolocation fields (e.g. date) vary. These are now standardised for ease of reference. * Switch from numpy to pandas to read Aeronet files. Aeronet now distributes it's all-sites data as a single file, which spans 10s of Gb. np.getfromtxt() requires twice that memory to open such a file. pd.read_csv() manages memory more sensibly. Also, update the product definition to include level 1.5 data. * Update the version number and dependencies. * Resolve ambiguity in the depenedency on the iris package. * Move to Python 3.6 in the Travis to satisfy the Iris requirement. * Remove iris from the pip dependencies until they push to V2.1 and remove the matplotlib<1.9 requirement.
- Loading branch information
1 parent
0cf03aa
commit a3d344e
Showing
21 changed files
with
334 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ sudo: false | |
|
||
#python: | ||
# - 2.7 | ||
# - 3.4 | ||
# - 3.6 | ||
|
||
env: | ||
- TEST_TARGET=unit PYTHON_TARGET=2.7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.