The FY3A satellite has AOD product data in HDF format, with a global range of 0.05 degrees resolution. To reset the X/y dimension after reading the data file variable, the data is reversed on the Y axis and needs to be divided by 10000 to get the AOD value.Script Program:#Add Data Filefn ='D:/TEMP/HDF/FY3A_MERSI_GBAL_L3_ASL_MLT_GLL_20140331_AOAM_5000M_MS.HDF'F=AddFile (FN)#Get Data Variablev = f['aerosol_optical_thickness_of_mersi_550nm']#Set x/yx = Arange1 ( -30.0,7200, 0.05) y= Arange1 ( -90.0
This article mainly introduces the example of compiling a Python script to get Google search results. it is also a simple implementation of programming crawlers using Python, if you need it, you can refer to how you have been studying how to capture search engine results using python for a while. you have encountered many problems in the implementation process, I have recorded all the problems I encountered
The LAND3 data in the AMSR-E (http://nsidc.org/data/amsre/index.html) data is HDF-EOS4 format, and the projection is Cylindrical_equal_area. Here the sample reads the data and projects it to the latitude and longitude projection.Script Program:#Add Data Filefn ='AMSR_E_L3_DAILYLAND_V06_20091231.HDF'F= AddFile (Os.path.join ('D:/TEMP/HDF', FN))#vname = ' d_soil_moisture 'VName ='A_tb36.5h_ (res_1)'Data= F[vname][::-1,:]data[data==0] = 9999Data.fill_value=-9999Data= Data * 0.1yn=data.dimlen (0) Xn
specific textfunctionCheckcontent(Responsesource, texttobeverified){var strsource = responsesource.tostring ();if (Strsource.indexof (texttobeverified)! =-1)return wlsuccess;Elsereturn wlminorerror;}//define a function to check if the response content is nullfunction Sourcecheck (Responsesource){if (Responsesource!= "")return wlsuccessElsereturn Wlminorerror}//Define a function a get the test environmentfunction GetEnv (){ //return "Dallas" //return "Uat" return "STG" //return "QA"}//Get th
users user1 to User10, but require that only the user does not exist to addAnswer:#!/bin/bashFor I in ' seq 1 ';d ocut-d:-f1/etc/passwd |grep "user$i" 2>>/tmp/etc.err | | Useradd user$iDoneJob Four: Write a scriptTest whether all hosts between 192.168.0.151 to 192.168.0.254 are online through the ping commandIf online, "IP is Up" appearsIf the line is not present, "IP is Down"Answer: #!/bin/bashFor I in ' SEQ 151 254 ';d OPing-c1-w1 192.168.0. $I >/dev/null echo "192.168.0. $I is up" | | echo
eth0 | grep "TX Pack" | awk ' {print $} 'Sleep 1Done19. Use the list of people in the User.txt file to automatically create the corresponding account and configure the initial password on the computer#!/bin/bash#本脚本执行, you need to prepare a user.txt file in advance that contains several user name informationFor i in ' Cat User.txt 'DoUseradd $iecho "123456" | Passwd‐‐stdin $iDone20. Write bulk modify extension scripts, such as batch to modify TXT file to doc file#!/bin/bash#执行脚本时, you need to a
Shell script example: calculate the time difference in milliseconds and microseconds, and shell microseconds
You can use the time command to calculate the execution duration of a command. Although the time command can be precise to milliseconds, the time command cannot calculate the execution time of a bunch of commands. You can also use the date command to calculate the time difference before and after the
A shell script error often occurs when writing a script: write it in windows and copy it to execute it. However, an error is reported when you test it, the error is amazing. for example, the syntaxerrornearunexpectedtokendo error occurs in my for loop statement. be careful... A shell script error often occurs when writ
Shell script example: Batch compare whether the content of multiple files is the same,
To compare whether the content of the two files is completely consistent, you can simply use the diff command. For example:
diff file1 file2 >/dev/null;echo $?
However, the diff command can only specify two file parameters. Therefore, it is impossible to compare multiple files
Linux/etc/init. d/service script example, etcinit. d
1. Write the script and put it in the/etc/init. d/directory, and set the executable permission chmod + x scriptnamed.
2. The script contains several methods: start, stop, restart, and status,
The/opt/myservice. sh script c
Complete example http://files.cnblogs.com/Hedonister/TimeStamp.rar
Run the background script file used by the instance directly:
1
Create Database t_timestamp
2
Go
3
If
Exists (select
*
From DBO. sysobjects where ID
=
Object_id (n
'
[DBO]. [getdata]
'
) And objectproperty (ID, n
'
Isprocedure
'
)
=
1
)
4
Drop procedure [DBO]. [getdata]
5
Go
6
|Safe}}; //Remember to use safe to filter oh, otherwise you will get an error. //The following code puts each part of the list to the head and tail $('#list'). prepend (list[0]); $('#list'). Append (list[1]); Console.log ('---traverse List Method 1---'); for (varI=List.length- 1; I>= 0; I--){ //right mouse button, audit element, select Console to see the value enteredConsole.log (List[i]); }; Console.log ('---Traverse both the index and the content, using the
Oracle 11g R2 rac rman backup script example
1. Switch RAC to archive Mode
1. Modify the archive mode of the database. Generally, archive is configured and the flash back area is used when RAC is installed. you can skip the steps below if you have configured archive.
SQL> alter system set cluster_database = false scope = spfile sid = '*';
2. Shut down all instances (shutdown on both sides)
SQL> shutdown imm
"server_ip="192.168.88.103"USER="Anonymous"PASS=""FTP=/usr/bin/FTP$FTP-N$SERVER _ip$USERQuote PASS$PASSBinaryget$GET _filenameCD Uploadput$PUT _filenameEOFNote : The FTP username and password are written in clear text in the script, which may be a security risk, separating the user name and password,5. By default, directly with the FTP command and press ENTER will enter the FTP automatic login mode, at this time the FTP command will read the user home
This article mainly introduces the asynchronous Script Loading Method of javascript with callback functions, and analyzes in detail the definition and usage skills of javascript callback functions for asynchronous loading in the form of examples, for more information about how to load javascript asynchronous scripts with callback functions, see the following example. Share it with you for your reference. Th
In the previous two articles, the basic syntax of static arrays and dynamic arrays is briefly introduced, and an example is illustrated in this article for the use of arrays in daily operations.First, the demandIn the customer organization has replaced the antivirus software vendor, need to scan the server or whether the client installed anti-virus software, or whether the installation of excessive anti-virus software.Second, the solution of ideasWe p
FY3A Satellite has AOD product data, HDF format, here is an example to read and display this type of data using the Meteoinfo script program.The script is as follows:#-----------------------------------------------------#Author:yaqiang Wang#date:2015-3-18#purpose:read fy3a AOD hdf5 data#Note:sample#----------------------------------------------------- fromOrg.met
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.