# HG changeset patch # User ulalume3 # Date 1349777657 -7200 # Node ID f3ab222acc38d8ec7bafd89636c5f2be4bd4794f # Parent 86a5a05f6305985fdc27b03eb85f0d1faee29b61 Yet some more changes to readme diff -r 86a5a05f6305 -r f3ab222acc38 .hgignore --- a/.hgignore Tue Oct 09 12:09:52 2012 +0200 +++ b/.hgignore Tue Oct 09 12:14:17 2012 +0200 @@ -2,3 +2,4 @@ *.pyc *.py~ *.rst~ +re:^readme\.md~$ diff -r 86a5a05f6305 -r f3ab222acc38 readme.md --- a/readme.md Tue Oct 09 12:09:52 2012 +0200 +++ b/readme.md Tue Oct 09 12:14:17 2012 +0200 @@ -28,7 +28,7 @@ Using the class ------------- -Once you have made the above setup you can start using it. The best way to understand how it works is through an interactive shell (I suggest ipython(http://ipython.org/)). In the following example I use the cf_raymetrics setup: +Once you have made the above setup you can start using it. The best way to understand how it works is through an interactive shell (I suggest [ipython](http://ipython.org/)). In the following example I use the cf_raymetrics setup: :::python import glob # This is needed to read a list of filenames @@ -38,7 +38,7 @@ cd /path/to/lidar/files # Read the filenames - files = glob.glob('*') # The * reads all the files in the folder. + files = glob.glob("*") # The * reads all the files in the folder. #Read the files my_measurement = cf_raymetrics.CfLidarMeasurement(files) @@ -54,25 +54,25 @@ Converting to SCC format --------------------- -There are some extra info you need to put in before converting to SCC format, 'Measurement_ID', 'Temperature', 'Pressure': +There are some extra info you need to put in before converting to SCC format, "Measurement_ID", "Temperature", "Pressure": :::python - my_measurement.info['Measurement_ID'] = “20101229op00” - my_measurement.info['Temperature'] = “14” - my_measurement.info['Pressure'] = “1010” + my_measurement.info["Measurement_ID"] = "20101229op00" + my_measurement.info["Temperature"] = "14" + my_measurement.info["Pressure"] = "1010" You can use standard values of temperature and pressure by just calling: :::python my_measurement.get_PT() -The standard values can be changed in generic.py. Search the get_PT method and change of what is appropriate for your station. If you have an external source of temperature and pressure information (a meteorological station) you can automate this by overriding the get_PT method in your system's class (in our example in the cf_raymetrics.py file). +The standard values can be changed in generic.py. Search the get_PT method and change of what is appropriate for your station. If you have an external source of temperature and pressure information (a meteorological station) you can automate this by overriding the get_PT method in your system"s class (in our example in the cf_raymetrics.py file). After you have used this extra input, you save the file using this command: :::python - my_measurement.save_as_netcdf(“filename”) + my_measurement.save_as_netcdf("filename") where you change the filename to the filename you want to use.