Commit b4c43c20 authored by libes's avatar libes
Browse files

modif dans function Control_Attribute_Var : liste des att obligatoires

parent 4e6e5e0c
......@@ -292,11 +292,15 @@ def Control_Header_Columns():
##
def Control_Attributes_Var(indexdrop):
print("index du fichier ",indexdrop)
if ('unites' in indexdrop) and ('dimension' in indexdrop) and ('standard_name' in indexdrop) and ('long_name' in indexdrop):
cprint('Control Attributs variable OK', color='green', attrs=['bold'])
else:
cprint("Control failed!\nIl manque un des index unites|dimension|standard_name|long_name dans le ficher:"+fic, color='red', attrs=['bold'])
sys.exit(0)
attributs_obligatoires=['unites','dimension','standard_name','long_name']
for att in attributs_obligatoires:
if att not in indexdrop:
cprint("Control failed!\nIl manque l\'attribut \'"+att+"\' dans le ficher : "+fic, color='red', attrs=['bold'])
sys.exit(0)
cprint('Control Attributs variable OK', color='green', attrs=['bold'])
return 1
##
......@@ -351,10 +355,10 @@ if __name__ == "__main__":
cprint("Aucun fichier CSV *.csv a traiter dans "+InputPath,color='red',attrs=['bold'])
cprint("=> Placer les fichiers CSV *.csv a traiter dans le répertoire "+InputPath,color='yellow',attrs=['bold'])
sys.exit()
allfiles = os.listdir(InputPath)
firstcols=[]; nbfic=0
for fic in allfiles:
for fic in ficcsv:
fic=os.path.basename(fic)
if fic.endswith(".csv"):
cprint("\n Traitement fichier "+fic, color='blue', attrs=['bold'])
......
rfa=If you use these data in publications or presentation, please acknowledge the xxxxxxxxxxxxxxxxx of MIO/OSU Pytheas. Also, we would appreciate receiving a preprint and/or reprint of publications using the data for inclusion in our bibliography. Relevant publications should be sent to: xxxxxxxxx Rxxxxxx xxxx Project MIO UMR 7294 CNRS, Campus de Luminy 13288 Marseille cedex9
title= titre du projet (NetCDF files)
Institution=OSU Pytheas, UMS3470 CNRS
source= methodology The method of production of the original data. If it was model-generated, source should name the model and its version, as specifically as could be useful. If it is observational, source should characterize it (e.g., "surface observation" or "radiosonde").
history= history du projet, Provides an audit trail for modifications to the original data. Well-behaved generic netCDF filters will automatically append their name and the parameters with which they were invoked to the global history attribute of an input netCDF file. We recommend that each line begin with a timestamp indicating the date and time of day that the program was executed.
references=Published or web-based references that describe the data or methods used to produce it.
comment= commentaire Miscellaneous information about the data or methods used to produce it.
rfa=If you use these data in publications or presentation, please acknowledge the xxxxxxxxxxxxxxxxx of OSU Pytheas. Also, we would appreciate receiving a preprint and/or reprint of publications using the data for inclusion in our bibliography. Relevant publications should be sent to: xxxxxxxxx Rxxxxxx xxxx Project MIO UMR 7294 CNRS, Campus de Luminy 13288 Marseille cedex9
license=The data may be used and redistributed for free but is not intended for legal use. These are raw and uncorrected data and may contain inaccuracies. Neither the data Contributor, XXX, OSU Pytheas, CNRS, nor the French Government, nor any of their employees or contractors, makes any warranty, express or implied, including warranties of merchantability and fitness for a particular purpose, or assumes any legal liability for the accuracy, completeness, or usefulness, of this information.
summary= resume du projet
lineage= methode methodology
project= nom du projet
description= description du projet
title= titre du projet (NetCDF files)
keywords=MIO, OSU Pytheas, CNRS, Observatory, France, Sea Regions, Mediterranean Sea, environmental data
comment= commentaire
history= history du projet
keywords=OSU Pytheas, CNRS, Observatory, France, Sea Regions, Mediterranean Sea, environmental data
featuretype=timeseries
cdm_data_type=timeseries
cdm_timeseries_variables=depth,latitude,longitude
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment